fulltextsearch_elasticsearch icon indicating copy to clipboard operation
fulltextsearch_elasticsearch copied to clipboard

Bookmark App Index error

Open Ark74 opened this issue 6 years ago • 0 comments

System Details,

  • Nextcluoud: 15.0.5.2
  • PHP 7.3.2
  • ElastichSearch: 6.6.1

Apps:

  • Full text search: 1.2.4
  • Full text search - Bookmarks: 1.2.0
  • Full text search - Elasticsearch Platform: 1.2.3
  • Full text search - Files: 1.2.5

Hi! Today when updating the FTS engine, ES, I got the following error when running,

~/occ fulltextsearch:index

An unhandled exception has been thrown:
TypeError: Argument 1 passed to OCA\Bookmarks_FullTextSearch\Model\BookmarksDocument::__construct() must be of the type string, int given, called in ~/nextcloud/apps/bookmarks_fulltextsearch/lib/Service/BookmarksService.php on line 176 and defined in ~/nextcloud/apps/bookmarks_fulltextsearch/lib/Model/BookmarksDocument.php:41
Stack trace:
#0 ~/nextcloud/apps/bookmarks_fulltextsearch/lib/Service/BookmarksService.php(176): OCA\Bookmarks_FullTextSearch\Model\BookmarksDocument->__construct(2)
#1 ~/nextcloud/apps/bookmarks_fulltextsearch/lib/Service/BookmarksService.php(92): OCA\Bookmarks_FullTextSearch\Service\BookmarksService->generateBookmarksDocumentFromBookmark(Array, 'User')
#2 ~/nextcloud/apps/bookmarks_fulltextsearch/lib/Provider/BookmarksProvider.php(273): OCA\Bookmarks_FullTextSearch\Service\BookmarksService->getBookmarksFromUser('User')
#3 ~/nextcloud/apps/fulltextsearch/lib/Service/IndexService.php(179): OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider->generateIndexableDocuments('User')
#4 ~/nextcloud/apps/fulltextsearch/lib/Command/Index.php(407): OCA\FullTextSearch\Service\IndexService->indexProviderContentFromUser(Object(OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform), Object(OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider), 'User', Object(OCA\FullTextSearch\Model\IndexOptions))
#5 ~/nextcloud/apps/fulltextsearch/lib/Command/Index.php(271): OCA\FullTextSearch\Command\Index->indexProvider(Object(OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider), Object(OCA\FullTextSearch\Model\IndexOptions))
#6 ~/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\FullTextSearch\Command\Index->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 ~/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 ~/nextcloud/3rdparty/symfony/console/Application.php(946): OC\Core\Command\Base->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 ~/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\FullTextSearch\Command\Index), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 ~/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 ~/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 ~/nextcloud/console.php(96): OC\Console\Application->run()
#13 ~/nextcloud/occ(11): require_once('~/nextcloud/...')
#14 {main}root@system:~# sudo -u www-data php ~/nextcloud/occ fulltextsearch:index

(path has been fixed to ~/nextcloud/ if you wonder)

The only change from the last update was that I have enabled the nextcloud Bookmarks app (the fts bookmarks one was already on the system). After disabling it again, the index when through.

Let me know of if any further info is needed. Cheers!

Ark74 avatar Feb 27 '19 23:02 Ark74