-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated to Nextcloud 16 An unhandled exception has been thrown: #492
Comments
I just tried to install elasticsearch on NC16 and got bitten by the same error ... latest versions of all NC apps + Elasticsearch 6.7.1 |
It is the deck app that causes this. Disabling it will make indexing work. |
@Omaha2002 Thanks for the hint! I can confirm that it is working if Deck is disabled. |
Well, for me it still crashed at the end of indexing: x:first result ## c/v:prec/next result ## b:last resultf:first error ## h/j:prec/next error ## d:delete error ## l:last errorq:quit ## p:pauseAn unhandled exception has been thrown: |
@Omaha2002 I will need some time till I come to this point; at least I could start it here ... |
Same issue here. Disabling Deck fixes the issue. The problem is I need both Deck and FTS. Didn't this Deck/FTS conflict happen a month ago as well? |
Anyone willing to test this fix on Deck ? : nextcloud/deck#1049 |
I'll give it a shot. |
for me it doesn't, Deck 0.6.2: sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:test -> OK An unhandled exception has been thrown: |
@Omaha2002 did you apply the patch ? |
@Omaha2002 I used the Deck patch provided by @daita. Can you post the contents of your file here? /var/www/nextcloud/apps/deck/lib/Service/FullTextSearchService.php |
I'm sorry guys, I didn't use the patch, I thought the updated deck would fix the problems. I'll try later this weekend. |
I can confirm that the patch is working; I changed the two lines manually and now Deck is activated and fulltextsearch index is running |
I can confirm that the patch works too regarding Deck. Changed lines manually too and with Deck activated fulltextsearch index is running but exits with an error. I think it's another app that causes it: ┌─ Errors ──── x:first result ## c/v:prec/next result ## b:last resultf:first error ## h/j:prec/next error ## d:delete error ## l:last errorq:quit ## p:pauseAn unhandled exception has been thrown: |
I get this error (Call to a member function getUID() on null in /var/www/nextcloud/lib/private/Share20/Manag er.php:1433) as soon as indexing hits the first document shared to the user whose files are being indexed. When I revoke that share and restart indexing (occ fulltextsearch:stop; occ fulltextsearch:index), indexing can go further, that is, until the next (incoming) shared document is reached. Maybe this helps finding the source of the error? |
After updating Nextcloud 15.0.7 to 16.0 I found out that results from one groupfolder didn't show up anymore so I decided to reset and reindex database.
sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:reset > OK
sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:test > OK
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:
Updating documents access. ok
Pausing 3 seconds 1 2 3 ok
Searching with group access rights:
Searching with share rights:
Removing test. ok
Unlocking process ok
sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:index > ERROR
An unhandled exception has been thrown:
TypeError: Argument 1 passed to OC\FullTextSearch\Model\IndexDocument::setContent() must be of the type string, null given, called in /var/www/nextcloud/apps/deck/lib/Service/FullTextSearchService.php on line
Stack trace:
#0 /var/www/nextcloud/apps/deck/lib/Service/FullTextSearchService.php(182): OC\FullTextSearch\Model\IndexDocument->setContent(NULL)
#1 /var/www/nextcloud/apps/deck/lib/Provider/DeckProvider.php(187): OCA\Deck\Service\FullTextSearchService->fillIndexDocument(Object(OC\FullTextSearch\Model\IndexDocument))
#2 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(325): OCA\Deck\Provider\DeckProvider->fillIndexDocument(Object(OC\FullTextSearch\Model\IndexDocument))
#3 /var/www/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(205): OCA\FullTextSearch\Service\IndexService->indexDocuments(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Obj
#4 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(409): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatforns))
#5 /var/www/nextcloud/apps/fulltextsearch/lib/Command/Index.php(273): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Deck\Provider\DeckProvider), Object(OCA\FullTextSearch\Model\IndexOptions))
#6 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\Con
#7 /var/www/nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /var/www/nextcloud/3rdparty/symfony/console/Application.php(901): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(262): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInp
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(145): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\Con
#11 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOut
#12 /var/www/nextcloud/console.php(97): OC\Console\Application->run()
#13 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
Elasticsearch 6.7.1
PHP 7.3-FPM
NGINX
Full text search 1.3.1
Full text search - Elasticsearch Platform 1.3.0
Full text search - Files 1.3.0
The text was updated successfully, but these errors were encountered: