nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

Everything borken after update to FullTextSearch_ElasticSearch v22.0.1 #168

Open redRolf opened 3 years ago

redRolf commented 3 years ago

After updating the FullTextSearch app to version 22.0.1 through the web UI, I can no longer access the WebUI.

The occ command-line interface does not work either.

I get the following error:

u# docker exec -u www-data nextcloud php occ app:list
PHP Fatal error:  Trait 'daita\MySmallPhpTools\Traits\TArrayTools' not found in /var/www/html/custom_apps/fulltextsearch/lib/Db/IndexesRequestBuilder.php on line 44

(The same error can be seen in the logs when trying to access the web UI)

While googling this issue, I came across the following issue: https://github.com/nextcloud/fulltextsearch/issues/522

This leads me to believe that there is an issue with the build available on the nextcloud app store.

redRolf commented 3 years ago

I was able to fix the by moving the following folders out of of the dir /var/www/html/custom_app:

after that, the web UI came back. Then it was possible to install the fulltextsearch app again through the app store.

Then I was able to move the fulltextsearch_elasticsearch and the files_fulltextsearch back into the /var/www/html/custom_app folder. After that everything came back. The bookmarks_fulltextsearch remained brocken, with the following message:

NOTICE: PHP message: PHP Fatal error: Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::generateIndexableDocuments(string $userId): array must be compatible with OCP\FullTextSearch\IFullTextSearchProvider::generateIndexableDocuments(string $userId, string $chunk): array in /var/www/html/custom_apps/bookmarks_fulltextsearch/lib/Provider/BookmarksProvider.php on line 272
oberator commented 2 years ago

Exactly the same behavior here. (NC 23.0.0 / PHP 7.4.3)

My error-message in /var/log/apache2/error.log:

PHP Fatal error: Declaration of OCA\Bookmarks_FullTextSearch\Provider\BookmarksProvider::generateIndexableDocuments(string $userId): array must be compatible w>

I helped myself with disabling the fulltextsearch-bookmarks with sudo -u www-data php occ app:disable bookmarks_fulltextsearch

Now everything works fine.

riverofjanuary commented 10 months ago

Helpful thread, almost 2 years later. It seems with the latest version of fulltext search, you do NOT need the bookmarks_fulltextsearch app on top of it; it throws an error but the fulltext search on its own still searches your bookmarks.