Open Ark74 opened 3 years ago
I also get this. No idea why: ES 20.0.0 and NC 20.0.7
nextcloud:/var/www/html# sudo -u www-data php nextcloud.gg/occ fulltextsearch:test -vvv
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. fail
In PlatformService.php line 207:
[OCA\FullTextSearch\Exceptions\PlatformDoesNotExistException]
FullTextSearchPlatform OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform is not available
Exception trace:
at /var/www/html/nextcloud.gg/apps/fulltextsearch/lib/Service/PlatformService.php:207
OCA\FullTextSearch\Service\PlatformService->getSelectedPlatform() at /var/www/html/nextcloud.gg/apps/fulltextsearch/lib/Service/PlatformService.php:172
OCA\FullTextSearch\Service\PlatformService->loadPlatform() at /var/www/html/nextcloud.gg/apps/fulltextsearch/lib/Service/PlatformService.php:97
OCA\FullTextSearch\Service\PlatformService->getPlatform() at /var/www/html/nextcloud.gg/apps/fulltextsearch/lib/Command/Test.php:296
OCA\FullTextSearch\Command\Test->testLoadingPlatform() at /var/www/html/nextcloud.gg/apps/fulltextsearch/lib/Command/Test.php:158
OCA\FullTextSearch\Command\Test->execute() at /var/www/html/nextcloud.gg/3rdparty/symfony/console/Command/Command.php:255
Symfony\Component\Console\Command\Command->run() at /var/www/html/nextcloud.gg/core/Command/Base.php:169
OC\Core\Command\Base->run() at /var/www/html/nextcloud.gg/3rdparty/symfony/console/Application.php:1000
Symfony\Component\Console\Application->doRunCommand() at /var/www/html/nextcloud.gg/3rdparty/symfony/console/Application.php:271
Symfony\Component\Console\Application->doRun() at /var/www/html/nextcloud.gg/3rdparty/symfony/console/Application.php:147
Symfony\Component\Console\Application->run() at /var/www/html/nextcloud.gg/lib/private/Console/Application.php:215
OC\Console\Application->run() at /var/www/html/nextcloud.gg/console.php:100
require_once() at /var/www/html/nextcloud.gg/occ:11
same here.
systemctl status elasticsearch.service ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/elasticsearch.service.d └─override.conf Active: active (running) since Wed 2021-03-17 15:01:56 CET; 4min 14s ago Docs: http://www.elastic.co Main PID: 16185 (java) Tasks: 56 (limit: 4915) Memory: 2.3G CGroup: /system.slice/elasticsearch.service ├─16185 /usr/bin/java -Xms2G -Xmx2G -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress └─16392 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
systemd[1]: Started Elasticsearch. elasticsearch[16185]: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME
sudo -u www-data php /var/www/nextcloud/occ fulltextsearch:test
.Testing your current setup:
Creating mocked content provider. ok
Testing mocked provider: get indexable documents. (2 items) ok
Loading search platform. fail
In PlatformService.php line 207:
FullTextSearchPlatform OCA\FullTextSearch_ElasticSearch\Platform\ElasticSearchPlatform is not available
fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
I'm a little emberassed to say but just want to add the solution here in case it helps anybody: Go to your nextcloud website, "options - full text search" . For me, it was just disabled. When I clicked the "plattform" selector and chose "Elasticsearch", it did remember my old settings and immediately, it worked.
Hi @IFM-Ulm , somebody in https://help.nextcloud.com/t/fulltextsearch-does-not-work-after-update-to-nextcloud-20/95569/9 found out that the spelling of the platform name changed from ElasticSearch to Elasticsearch. Maybe the migration path did not consider this change.
Hi, happy 2021,
Today I just upgraded and found out that using,
It has issues detecting Elastic Search for some reason, the error occurs on https://github.com/nextcloud/fulltextsearch/blob/master/lib/Service/PlatformService.php which is not part of fulltextsearch_elasticsearch, @daita should I move this somewhere else?