Dear NC community,
I ran into problems I cannot resolve by trying to enable full text search.
Tried multiple different config options already, tried to find a solution on the internet without success.
I wonder if the problem is related to the currently existing bug with the “group folders” app.
As an additional note, my instance is running on a bare metal server with 8GB RAM behind my home router (AVM Fritz!Box).
I would be happy if anybody could provide a solution.
Thank you in advance!
Error report:
Nextcloud version (eg, 20.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): Debian 12
Apache or nginx version (eg, Apache 2.4.25): 1.25.1
PHP version (eg, 7.4): 8.2
The issue I am facing:
I am trying to implement Fulltextsearch into my instance. I already installed and configured elasticsearch, following the documentation (tried both versions 8.x and 7.x, as the fulltextsearch-elasticsearch documentation says itś only compatible with elasticsearch 7.x).
Immediately after activating the app with admin account, NC (not nginx) displays internal server error (w. ID for error tracking).
Is this the first time I have seen this error?
N
Steps to replicate it:
- install elasticsearch w. PDF plugin
- install and enable fulltextsearch, fulltextsearch-elasticsearch via WebUI
- reload WebUI
The output of my Nextcloud log in Admin > Logging:
[index] Error: TypeError: OC\App\AppManager::checkAppForUser(): Argument #2 ($user) must be of type ?OCP\IUser, string given, called in /var/www/nextcloud/lib/private/App/AppManager.php on line 307 at <<closure>>
0. /var/www/nextcloud/lib/private/App/AppManager.php line 307
OC\App\AppManager->checkAppForUser()
1. /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php line 103
OC\App\AppManager->isEnabledForUser()
2. <<closure>>
OCA\Files_FullTextSearch\Service\GroupFoldersService->__construct()
3. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
ReflectionClass->newInstanceArgs()
4. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
OC\AppFramework\Utility\SimpleContainer->buildClass()
5. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve()
6. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
OC\AppFramework\Utility\SimpleContainer->query()
7. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
8. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
OC\AppFramework\DependencyInjection\DIContainer->query()
9. <<closure>>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
10. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
array_map()
11. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
OC\AppFramework\Utility\SimpleContainer->buildClass()
12. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve()
13. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
OC\AppFramework\Utility\SimpleContainer->query()
14. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 466
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
15. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 97
OC\AppFramework\DependencyInjection\DIContainer->query()
16. <<closure>>
OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensitive parameters replaced ***")
17. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 84
array_map()
18. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 124
OC\AppFramework\Utility\SimpleContainer->buildClass()
19. /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php line 142
OC\AppFramework\Utility\SimpleContainer->resolve()
20. /var/www/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php line 494
OC\AppFramework\Utility\SimpleContainer->query()
21. /var/www/nextcloud/lib/private/ServerContainer.php line 155
OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
22. /var/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php line 122
OC\ServerContainer->query()
23. /var/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php line 311
OCA\FullTextSearch\Service\ProviderService->loadProvider()
24. /var/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php line 282
OCA\FullTextSearch\Service\ProviderService->loadProvidersFromList()
25. /var/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php line 102
OCA\FullTextSearch\Service\ProviderService->loadProvidersFromApp()
26. /var/www/nextcloud/apps/fulltextsearch/lib/Service/ProviderService.php line 156
OCA\FullTextSearch\Service\ProviderService->loadProviders()
27. /var/www/nextcloud/apps/fulltextsearch/lib/Capabilities.php line 80
OCA\FullTextSearch\Service\ProviderService->getConfiguredProviders()
28. /var/www/nextcloud/lib/private/CapabilitiesManager.php line 74
OCA\FullTextSearch\Capabilities->getCapabilities()
29. /var/www/nextcloud/lib/private/Template/JSConfigHelper.php line 166
OC\CapabilitiesManager->getCapabilities()
30. /var/www/nextcloud/lib/private/TemplateLayout.php line 240
OC\Template\JSConfigHelper->getConfig()
31. /var/www/nextcloud/lib/private/legacy/OC_Template.php line 182
OC\TemplateLayout->__construct()
32. /var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php line 213
OC_Template->fetchPage()
33. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 182
OCP\AppFramework\Http\TemplateResponse->render()
34. /var/www/nextcloud/lib/private/AppFramework/App.php line 183
OC\AppFramework\Http\Dispatcher->dispatch()
35. /var/www/nextcloud/lib/private/Route/Router.php line 315
OC\AppFramework\App::main()
36. /var/www/nextcloud/lib/base.php line 1071
OC\Route\Router->match()
37. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /settings/apps/disabled/fulltextsearch
from REMOVED by admin at 2023-07-22T15:22:48+02:00
The output of my config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
$CONFIG = array (
'passwordsalt' => 'REMOVED',
'secret' => 'REMOVED',
'trusted_domains' =>
array (
0 => 'REMOVED',
1 => 'REMOVED',
2 => '192.168.178.201',
),
'datadirectory' => '/media/raiddev/ncdata',
'dbtype' => 'mysql',
'version' => '27.0.1.2',
'overwrite.cli.url' => 'REMOVED',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'default_language' => 'de',
'enable_previews' => true,
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'dbhost',
'dbpassword' => 'REMOVED',
'installed' => true,
'instanceid' => 'REMOVED',
'overwritehost' => 'REMOVED',
'activity_expire_days' => 14,
'allow_local_remote_servers' => true,
'auth.bruteforce.protection.enabled' => true,
'blacklisted_files' =>
array (
0 => '.htaccess',
1 => 'Thumbs.db',
2 => 'thumbs.db',
),
'cron_log' => true,
'default_phone_region' => 'DE',
'enabledPreviewProviders' =>
array (
0 => 'OC\\Preview\\PNG',
1 => 'OC\\Preview\\JPEG',
2 => 'OC\\Preview\\GIF',
3 => 'OC\\Preview\\BMP',
4 => 'OC\\Preview\\XBitmap',
5 => 'OC\\Preview\\Movie',
6 => 'OC\\Preview\\PDF',
7 => 'OC\\Preview\\MP3',
8 => 'OC\\Preview\\TXT',
9 => 'OC\\Preview\\MarkDown',
),
'filesystem_check_changes' => 0,
'filelocking.enabled' => 'true',
'htaccess.RewriteBase' => '/',
'integrity.check.disabled' => false,
'knowledgebaseenabled' => false,
'log_rotate_size' => '104857600',
'logfile' => '/var/log/nextcloud/nextcloud.log',
'loglevel' => 2,
'logtimezone' => 'Europe/Berlin',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'overwriteprotocol' => 'https',
'preview_max_x' => 1024,
'preview_max_y' => 768,
'preview_max_scale_factor' => 1,
'profile.enabled' => false,
'redis' =>
array (
'host' => '/var/run/redis/redis-server.sock',
'port' => 0,
'password' => 'REMOVED',
'timeout' => 0.5,
'dbindex' => 1,
),
'quota_include_external_storage' => false,
'share_folder' => '/share',
'skeletondirectory' => '/var/www/nextcloud/core/skeleton',
'trashbin_retention_obligation' => 'auto, 7',
'mail_smtpmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'system',
'mail_domain' => 'REMOVED',
'mail_smtphost' => 'smtp.ionos.de',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpname' => 'REMOVED',
'mail_smtppassword' => 'REMOVED',
'simpleSignUpLink.shown' => false,
'maintenance' => false,
'default_locale' => 'de_DE',
'data-fingerprint' => 'REMOVED',
);
The output of my Apache/nginx/system log in /var/log/____
:
2023/07/22 13:26:13 [error] 821#821: *64 stat() "/etc/nginx/html/basic_status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /basic_status HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *68 open() "/etc/nginx/html/status/format/json" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status/format/json HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *69 open() "/etc/nginx/html/admin/api.php" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /admin/api.php?auth=&version=true HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *74 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *75 "/etc/nginx/html/api/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/ HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *78 open() "/etc/nginx/html/us" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /us HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:13 [error] 821#821: *81 open() "/etc/nginx/html/server-status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /server-status?auto HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:26:16 [error] 821#821: *99 open() "/etc/nginx/html/status" failed (2: No such file or directory), client: 127.0.0.1, server: 127.0.0.1, request: "GET /status?full&json HTTP/1.1", host: "127.0.0.1"
2023/07/22 13:28:58 [warn] 821#821: *82 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/2/00/0000000002 while reading upstream, client: REMOVED, server: microserver, request: "GET /apps/theming/image/background?v=13 HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "REMOVED", referrer: "https://REMOVED/core/css/guest.css?v=4e22cbc7-13"
2023/07/22 14:28:46 [warn] 821#821: *2171 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/3/00/0000000003 while reading upstream, client: REMOVED, server: microserver, request: "GET /settings/apps/list HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "REMOVED"
2023/07/22 14:32:45 [warn] 821#821: *3139 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/4/00/0000000004 while reading upstream, client: REMOVED, server: microserver, request: "GET /settings/apps/list HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "REMOVED"
2023/07/22 14:33:01 [warn] 821#821: *3139 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/5/00/0000000005 while reading upstream, client: REMOVED, server: microserver, request: "GET /settings/apps/list HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "REMOVED"
2023/07/22 15:22:36 [warn] 821#821: *3712 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/6/00/0000000006 while reading upstream, client: REMOVED, server: microserver, request: "GET /settings/apps/list HTTP/2.0", upstream: "fastcgi://unix:/run/php/php8.2-fpm.sock:", host: "REMOVED"