Skip to content
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

Error with Full Text Search on occ fulltextsearch:index #22

Closed
KaraokeStu opened this issue Nov 20, 2018 · 11 comments
Closed

Error with Full Text Search on occ fulltextsearch:index #22

KaraokeStu opened this issue Nov 20, 2018 · 11 comments

Comments

@KaraokeStu
Copy link

Running:

  • Nextcloud 15 Beta 2 via Docker
  • Elastic Search (2 node cluster) via Docker

Plugins Installed:

  • Full text search 1.2.0
  • Full text search - Elasticsearch Platform 1.2.0
  • Full text search - Files 1.2.0

Problem:

The following error comes up when attempting to "occ fulltextsearch:index":

An unhandled exception has been thrown: TypeError: Argument 1 passed to OCA\Files_FullTextSearch\Model\FilesDocument::setOwnerId() must be of the type string , boolean given, called in /apps2/files_fulltextsearch/lib/Service/FilesService.php on line 289 and defined in /apps2 /files_fulltextsearch/lib/Model/FilesDocument.php:69 Stack trace: #0 /apps2/files_fulltextsearch/lib/Service/FilesService.php(289): OCA\Files_FullTextSearch\Model\FilesDocument->setOw nerId(false) #1 /apps2/files_fulltextsearch/lib/Service/FilesService.php(247): OCA\Files_FullTextSearch\Service\FilesService->gene rateFilesDocumentFromFile('admin', Object(OC\Files\Node\Folder)) #2 /apps2/files_fulltextsearch/lib/Service/FilesService.php(188): OCA\Files_FullTextSearch\Service\FilesService->getF ilesFromDirectory('admin', Object(OC\Files\Node\Folder)) #3 /apps2/files_fulltextsearch/lib/Provider/FilesProvider.php(228): OCA\Files_FullTextSearch\Service\FilesService->ge tFilesFromUser('admin', Object(OCA\FullTextSearch\Model\IndexOptions)) #4 /apps2/fulltextsearch/lib/Service/IndexService.php(179): OCA\Files_FullTextSearch\Provider\FilesProvider->generate IndexableDocuments('admin') #5 /apps2/fulltextsearch/lib/Command/Index.php(407): OCA\FullTextSearch\Service\IndexService->indexProviderContentFro mUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Files_FullTextSearch\Provid er\FilesProvider), 'admin', Object(OCA\FullTextSearch\Model\IndexOptions)) #6 /apps2/fulltextsearch/lib/Command/Index.php(271): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Files _FullTextSearch\Provider\FilesProvider), Object(OCA\FullTextSearch\Model\IndexOptions)) #7 /nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Sym fony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #8 /nextcloud/core/Command/Base.php(166): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Con sole\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #9 /nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Conso le\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #10 /nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Obj ect(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Co nsole\Output\ConsoleOutput)) #11 /nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Sym fony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #12 /nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Co mponent\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) #13 /nextcloud/console.php(96): OC\Console\Application->run() #14 /nextcloud/occ(11): require_once('/nextcloud/cons...')

@amd-64
Copy link

amd-64 commented Dec 10, 2018

Exactly my situation.

@d235j
Copy link

d235j commented Dec 12, 2018

I got this error as well.

@lhurt
Copy link

lhurt commented Dec 12, 2018

me too

1 similar comment
@prolibre
Copy link

me too

@amd-64
Copy link

amd-64 commented Dec 15, 2018

Resolved in FTS 1.2.1. Can be closed. Thanks

@prolibre
Copy link

Hello @amd-64

the last commit (Dec 14, 2018 > 1.2.1) cannot solve the problem (9 small additions and 2 deletions). It's strange that it works for you ???

@d235j
Copy link

d235j commented Dec 15, 2018

It doesn't seem resolved for me.

@amd-64
Copy link

amd-64 commented Dec 19, 2018

The index ran fine for me. Could be becasue I have no external folders to be indexed and no group folders. I used ES 6.5.3.

@pfaelzerchen
Copy link

I had the same problem. With Release 1.2.3 the index also ran fine for me (Nextcloud 15, ES 6.5.3) - with external folders and group folders.

@solracsf
Copy link
Member

Can you please confirm this still hapens with both latest versions of Nexcloud and files_fulltextsearch apps?

@joshtrichards
Copy link
Member

It's been 2+ years with no follow-up info suggesting this is ongoing so closing. If someone disagrees feel free to provide evidence and version info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants