Internal Server Error after upgrade 26.0.3 over 26.0.4 to 27.0.1

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 27.0.1
Operating system and version (eg, Ubuntu 20.04): ubuntu-server 22.04
Apache or nginx version (eg, Apache 2.4.25): NGinx
PHP version (eg, 7.4): 8.2

The issue you are facing:
After Upgrade 26.0.3 to 26.0.4 everything was ok so far.
NC offered me to further upgrade to 27.0.1 after this - trouble began.
WebDAV (Client Apps) were running, redis and notify_push (HPB) were reachable and running.
WebUI (NGinx) said “Internal server error …” (no Login Screen)

Error log of nextcloud does not give hints to me…

Is this the first time you’ve seen this error? (Y/N): y

Steps to replicate it:

  1. have files_fulltextsearch (version 27.0.0) installed and active next to elasticsearch
  2. update a NC 26.x.x to 27.x.x
  3. see what happened to your WebUI ( Logon Screen)
  4. temporarily disable files_fulltextsearch by occ app:xxxxx commands
  5. occ maintenance:repair
  6. re-install and enable files_fulltextsearch again
  7. see that your NC WebUI again reports “Internal Server error …”

The output of your Nextcloud log in Admin > Logging:

see 2nd post ...

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'ID',
  'passwordsalt' => 'pass',
  'secret' => 'my_secret',
  'trusted_domains' => 
  array (
    0 => 'LOCAL-IP-OF-NC-VM',
    1 => 'FQDN',
  ),
  'activity_expire_days' => 14,
  'auth.bruteforce.protection.enabled' => true,
  'blacklisted_files' => 
  array (
    0 => '.htaccess',
    1 => 'Thumbs.db',
    2 => 'thumbs.db',
  ),
  'trusted_proxies' => 
  array (
    0 => 'IP-OF-REVERSE-PROXY',
  ),
  'overwritehost' => 'FQDN',
  'overwriteconaddr' => '^IP-OF-REVERSE-PROXY$',
  'overwriteprotocol' => 'https',
  'forward_for_headers' => 
  array (
    0 => 'X_FORWARDED_FOR',
    1 => 'HTTP_X_FORWARDED_FOR',
  ),
  'datadirectory' => '/media/cloud/data',
  'overwrite.cli.url' => 'https://domain',
  'dbtype' => 'pgsql',
  'version' => '27.0.1.2',
  'dbname' => 'DB_NAME',
  'dbhost' => '/run/postgresql',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'DB_USER',
  'dbpassword' => '',
  'htaccess.RewriteBase' => '/',
  'logtimezone' => 'Europe/Berlin',
  'default_phone_region' => 'DE',
  'logfile' => '/media/cloud/data/nextcloud.log',
  'log_rotate_size' => 10485760,
  'cron_log' => true,
  'installed' => true,
  'filesystem_check_changes' => 0,
  'quota_include_external_storage' => false,
  'skeletondirectory' => '',
  'share_folder' => '/Freigaben',
  'knowledgebaseenabled' => false,
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => '\\OCA\\User_LDAP\\LDAPProviderFactory',
  'ldapUserCleanupInterval' => 20,
  'bulkupload.enabled' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'dbindex' => 0,
    'timeout' => 1.5,
  ),
  'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'sender',
  'mail_domain' => 'domain',
  'mail_smtphost' => 'smtp_host',
  'mail_smtpport' => '465',
  'mail_smtptimeout' => 10,
  'mail_smtpauth' => 0,
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpname' => '',
  'mail_smtppassword' => '',
  'maintenance' => false,
  'integrity.check.disabled' => false,
  'updater.release.channel' => 'stable',
  'enable_previews' => true,
  'preview_Movie_path' => '/usr/bin/ffmpeg',
  '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',
    10 => 'OC\\Preview\\HEIC',
    11 => 'OC\\Preview\\OpenDocument',
    12 => 'OC\\Preview\\MSOffice2003',
    13 => 'OC\\Preview\\MSOfficeDoc',
    14 => 'OC\\Preview\\Image',
    15 => 'OC\\Preview\\Photoshop',
    16 => 'OC\\Preview\\SVG',
    17 => 'OC\\Preview\\Font',
    18 => 'OC\\Preview\\MKV',
    19 => 'OC\\Preview\\MP4',
    20 => 'OC\\Preview\\AVI',
    21 => 'OC\\Preview\\Movie',
    22 => 'OC\\Preview\\TIFF',
  ),
  'preview_max_x' => 2048,
  'preview_max_y' => 2048,
  'preview_max_memory' => 4096,
  'preview_max_filesize_image' => 256,
  'preview_max_scale_factor' => 1,
  'trashbin_retention_obligation' => 'auto, 2',
  'loglevel' => 3,
  'mail_sendmailmode' => 'smtp',
  'data-fingerprint' => 'my_fingerprint',
  'onlyoffice' => 
  array (
    'verify_peer_off' => true,
    'jwt_header' => 'Authorization',
    'jwt_secret' => 'my_pass',
  ),
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'defaultapp' => 'dashboard',
  'theme' => '',
  'allow_local_remote_servers' => true,
  'files_external_allow_create_new_local' => true,
  'app_install_overwrite' => 
  array (
    0 => 'fulltextsearch',
    1 => 'fulltextsearch_elasticsearch',
    2 => 'files_fulltextsearch',
    3 => 'theming_customcss',
  ),
  'memories.exiftool' => '/var/www/nextcloud/apps/memories/exiftool-bin/exiftool-amd64-glibc',
  'memories.vod.path' => '/var/www/nextcloud/apps/memories/exiftool-bin/go-vod-amd64',
  'memories.vod.ffmpeg' => '/usr/bin/ffmpeg',
  'memories.vod.ffprobe' => '/usr/bin/ffprobe',
  'memories.gis_type' => 2,
  'memories.vod.vaapi' => true,
  'memories.exiftool_no_local' => true,
);

It is reproducable that the files_fulltextsearch app in version 27.0.0 (latest stable i think) damages my NC instance so that the WebUI is unusable any longer. All other services (webdav, notify_push, etc.) remains working!!

I have another app that has been disabled during upgrade because auf incompatible version for the moment - "Activities for shared file downloads - but i think that’s not the game changer here.
This app remains disabled until another update will make it compatible with NC 27 again.

First think was that the groupfolders app could have something to do with the “Internal server error…” but this seems not to be the fact.
I re-enabled it and all is working incl. WebUI

Any ideas what goes on with the files_fulltextsearch app? or the combination?

1 Like

found something in the log after re-disable the files_fulltextsearch app

[index] Fehler: ArgumentCountError: Too few arguments to function OCA\GroupFolders\Folder\FolderManager::__construct(), 1 passed in /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php on line 105 and exactly 4 expected at <>

  1. /var/www/nextcloud/apps/files_fulltextsearch/lib/Service/GroupFoldersService.php line 105
    OCA\GroupFolders\Folder\FolderManager->__construct()
  2. <>
    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. <>
    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. <>
    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 /login
from local-IP at 2023-07-25T08:12:29+02:00

Hi Nextcloud, same problem here after upgrading from 27.0.0 to 27.0.1 … internal server error on login page. To recover from error I restored the database and file system backup.