Internal Server Error After Updating to 22

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): 22.0.0.11
Operating system and version (eg, Ubuntu 20.04): Raspbian GNU/Linux 10 (buster)
Apache or nginx version (eg, Apache 2.4.25): 2.4.38
PHP version (eg, 7.4): 7.3.29-1

The issue you are facing:

Unable to access Nextcloud instance via web interface after updating. I can access my instance via the desktop app as well as the android app and my files are still accessible.

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

When accessing it via localhost or via my internal or external IP I get:

Internal Server Error
The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details
Remote Address: ::1
Request ID: 0YsbP9v39IH1qs68siYA

The output of your Nextcloud log in Admin > Logging:

Can't login to access log file. Log file at /var/www/nextcloud/data/nextcloud.log is empty

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


<?php
$CONFIG = array (
  'instanceid' => '',
  'passwordsalt' => '',
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => '',
    1 => '',
    2 => '',
  ),
  'datadirectory' => '/media/data/nextcloud',
  'dbtype' => 'mysql',
  'version' => '22.0.0.11',
  'overwrite.cli.url' =>
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 
  'dbpassword' => 
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'defaultapp' => 'files',
  'default_phone_region' => 'US',
  'app_install_overwrite' => 
  array (
    0 => 'epubreader',
  ),
  'has_rebuilt_cache' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'updater.secret' =>
  'updater.release.channel' => 'beta',
  'allow_local_remote_servers' => true,
);

The output of your Apache/nginx/system log in /var/log/____:

[Wed Jul 07 09:46:06.312552 2021] [ssl:warn] [pid 4394] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 07 09:46:06.418357 2021] [ssl:warn] [pid 4395] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 07 09:46:06.436400 2021] [mpm_prefork:notice] [pid 4395] AH00163: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d configured -- resuming normal operations
[Wed Jul 07 09:46:06.436733 2021] [core:notice] [pid 4395] AH00094: Command line: '/usr/sbin/apache2'

Changed the log output directory and now I am getting this.

{"reqId":"bVpzcEcovW1JW1HEtKNW","level":0,"time":"2021-07-07T18:39:37+00:00","remoteAddr":"192.168.0.136","user":"--","app":"files_sharing","method":"GET","url":"/index.php/login","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","version":"22.0.0.11"}
{"reqId":"bVpzcEcovW1JW1HEtKNW","level":0,"time":"2021-07-07T18:39:37+00:00","remoteAddr":"192.168.0.136","user":"--","app":"epubreader","method":"GET","url":"/index.php/login","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","version":"22.0.0.11"}
{"reqId":"bVpzcEcovW1JW1HEtKNW","level":3,"time":"2021-07-07T18:39:38+00:00","remoteAddr":"192.168.0.136","user":"--","app":"index","method":"GET","url":"/index.php/login","message":"Class 'OCP\\User' not found","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36","version":"22.0.0.11","exception":{"Exception":"Error","Message":"Class 'OCP\\User' not found","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/epubreader/lib/Hooks.php","line":41,"function":"get","class":"OCA\\Epubreader\\Config","type":"::","args":["epub_enable","true"]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Hook.php","line":106,"function":"announce_settings","class":"OCA\\Epubreader\\Hooks","type":"::","args":[{"array":{"_oc_debug":"false","_oc_isadmin":"false","backendAllowsPasswordConfirmation":"true","oc_dataURL":"false","_oc_webroot":"\"\"","_oc_appswebroots":"{\"accessibility\":\"/apps/accessibility\",\"activity\":\"/apps/activity\",\"bruteforcesettings\":\"/apps/bruteforcesettings\",\"circles\":\"/apps/circles\",\"cloud_federation_api\":\"/apps/cloud_federation_api\",\"comments\":\"/apps/comments\",\"contactsinteraction\":\"/apps/contactsinteraction\",\"dav\":\"/apps/dav\",\"epubreader\":\"/apps/epubreader\",\"federatedfilesharing\":\"/apps/federatedfilesharing\",\"federation\":\"/apps/federation\",\"files\":\"/apps/files\",\"files_pdfviewer\":\"/apps/files_pdfviewer\",\"files_rightclick\":\"/apps/files_rightclick\",\"files_sharing\":\"/apps/files_sharing\",\"files_trashbin\":\"/apps/files_trashbin\",\"files_versions\":\"/apps/files_versions\",\"files_videoplayer\":\"/apps/files_videoplayer\",\"firstrunwizard\":\"/apps/firstrunwizard\",\"logreader\":\"/apps/logreader\",\"lookup_server_connector\":\"/apps/lookup_server_connector\",\"nextcloud_announcements\":\"/apps/nextcloud_announcements\",\"notes\":\"/apps/notes\",\"notifications\":\"/apps/notifications\",\"oauth2\":\"/apps/oauth2\",\"password_policy\":\"/apps/password_policy\",\"privacy\":\"/apps/privacy\",\"provisioning_api\":\"/apps/provisioning_api\",\"recommendations\":\"/apps/recommendations\",\"serverinfo\":\"/apps/serverinfo\",\"settings\":\"/apps/settings\",\"sharebymail\":\"/apps/sharebymail\",\"support\":\"/apps/support\",\"survey_client\":\"/apps/survey_client\",\"systemtags\":\"/apps/systemtags\",\"text\":\"/apps/text\",\"theming\":\"/apps/theming\",\"twofactor_backupcodes\":\"/apps/twofactor_backupcodes\",\"updatenotification\":\"/apps/updatenotification\",\"user_status\":\"/apps/user_status\",\"viewer\":\"/apps/viewer\",\"weather_status\":\"/apps/weather_status\",\"workflowengine\":\"/apps/workflowengine\"}","datepickerFormatDate":"\"M\\/d\\/yy\"","nc_lastLogin":0,"nc_pageLoad":1625683178,"dayNames":"[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]","dayNamesShort":"[\"Sun.\",\"Mon.\",\"Tue.\",\"Wed.\",\"Thu.\",\"Fri.\",\"Sat.\"]","dayNamesMin":"[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]","monthNames":"[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]","monthNamesShort":"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"May.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Oct.\",\"Nov.\",\"Dec.\"]","firstDay":"0","_oc_config":"{\"session_lifetime\":1440,\"session_keepalive\":true,\"auto_logout\":false,\"version\":\"22.0.0.11\",\"versionstring\":\"22.0.0\",\"enable_avatars\":true,\"lost_password_link\":null,\"modRewriteWorking\":false,\"sharing.maxAutocompleteResults\":25,\"sharing.minSearchStringLength\":0,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\"}","oc_appconfig":"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\/\\/docs.nextcloud.com\\/server\\/22\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true,\"defaultInternalExpireDateEnabled\":false,\"defaultInternalExpireDate\":null,\"defaultInternalExpireDateEnforced\":null,\"defaultRemoteExpireDateEnabled\":false,\"defaultRemoteExpireDate\":null,\"defaultRemoteExpireDateEnforced\":null},\"files\":{\"max_chunk_size\":10485760}}","_theme":"{\"entity\":\"Nextcloud\",\"name\":\"Nextcloud\",\"productName\":\"Nextcloud\",\"title\":\"Nextcloud\",\"baseUrl\":\"https:\\/\\/nextcloud.com\",\"syncClientUrl\":\"https:\\/\\/nextcloud.com\\/install\\/#install-clients\",\"docBaseUrl\":\"https:\\/\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\/\\/docs.nextcloud.com\\/server\\/22\\/go.php?to=PLACEHOLDER\",\"slogan\":\"a safe home for all your data\",\"logoClaim\":\"\",\"shortFooter\":\"<a href=\\\"https:\\/\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\/a> \\u2013 a safe home for all your data\",\"longFooter\":\"<a href=\\\"https:\\/\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\/a> \\u2013 a safe home for all your data\",\"folder\":\"\"}"}}]},{"file":"/var/www/nextcloud/lib/private/Template/JSConfigHelper.php","line":323,"function":"emit","class":"OC_Hook","type":"::","args":["\\OCP\\Config","js",{"array":{"_oc_debug":"false","_oc_isadmin":"false","backendAllowsPasswordConfirmation":"true","oc_dataURL":"false","_oc_webroot":"\"\"","_oc_appswebroots":"{\"accessibility\":\"/apps/accessibility\",\"activity\":\"/apps/activity\",\"bruteforcesettings\":\"/apps/bruteforcesettings\",\"circles\":\"/apps/circles\",\"cloud_federation_api\":\"/apps/cloud_federation_api\",\"comments\":\"/apps/comments\",\"contactsinteraction\":\"/apps/contactsinteraction\",\"dav\":\"/apps/dav\",\"epubreader\":\"/apps/epubreader\",\"federatedfilesharing\":\"/apps/federatedfilesharing\",\"federation\":\"/apps/federation\",\"files\":\"/apps/files\",\"files_pdfviewer\":\"/apps/files_pdfviewer\",\"files_rightclick\":\"/apps/files_rightclick\",\"files_sharing\":\"/apps/files_sharing\",\"files_trashbin\":\"/apps/files_trashbin\",\"files_versions\":\"/apps/files_versions\",\"files_videoplayer\":\"/apps/files_videoplayer\",\"firstrunwizard\":\"/apps/firstrunwizard\",\"logreader\":\"/apps/logreader\",\"lookup_server_connector\":\"/apps/lookup_server_connector\",\"nextcloud_announcements\":\"/apps/nextcloud_announcements\",\"notes\":\"/apps/notes\",\"notifications\":\"/apps/notifications\",\"oauth2\":\"/apps/oauth2\",\"password_policy\":\"/apps/password_policy\",\"privacy\":\"/apps/privacy\",\"provisioning_api\":\"/apps/provisioning_api\",\"recommendations\":\"/apps/recommendations\",\"serverinfo\":\"/apps/serverinfo\",\"settings\":\"/apps/settings\",\"sharebymail\":\"/apps/sharebymail\",\"support\":\"/apps/support\",\"survey_client\":\"/apps/survey_client\",\"systemtags\":\"/apps/systemtags\",\"text\":\"/apps/text\",\"theming\":\"/apps/theming\",\"twofactor_backupcodes\":\"/apps/twofactor_backupcodes\",\"updatenotification\":\"/apps/updatenotification\",\"user_status\":\"/apps/user_status\",\"viewer\":\"/apps/viewer\",\"weather_status\":\"/apps/weather_status\",\"workflowengine\":\"/apps/workflowengine\"}","datepickerFormatDate":"\"M\\/d\\/yy\"","nc_lastLogin":0,"nc_pageLoad":1625683178,"dayNames":"[\"Sunday\",\"Monday\",\"Tuesday\",\"Wednesday\",\"Thursday\",\"Friday\",\"Saturday\"]","dayNamesShort":"[\"Sun.\",\"Mon.\",\"Tue.\",\"Wed.\",\"Thu.\",\"Fri.\",\"Sat.\"]","dayNamesMin":"[\"Su\",\"Mo\",\"Tu\",\"We\",\"Th\",\"Fr\",\"Sa\"]","monthNames":"[\"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\"]","monthNamesShort":"[\"Jan.\",\"Feb.\",\"Mar.\",\"Apr.\",\"May.\",\"Jun.\",\"Jul.\",\"Aug.\",\"Sep.\",\"Oct.\",\"Nov.\",\"Dec.\"]","firstDay":"0","_oc_config":"{\"session_lifetime\":1440,\"session_keepalive\":true,\"auto_logout\":false,\"version\":\"22.0.0.11\",\"versionstring\":\"22.0.0\",\"enable_avatars\":true,\"lost_password_link\":null,\"modRewriteWorking\":false,\"sharing.maxAutocompleteResults\":25,\"sharing.minSearchStringLength\":0,\"blacklist_files_regex\":\"\\\\.(part|filepart)$\"}","oc_appconfig":"{\"core\":{\"defaultExpireDateEnabled\":false,\"defaultExpireDate\":null,\"defaultExpireDateEnforced\":null,\"enforcePasswordForPublicLink\":false,\"enableLinkPasswordByDefault\":false,\"sharingDisabledForUser\":false,\"resharingAllowed\":true,\"remoteShareAllowed\":true,\"federatedCloudShareDoc\":\"https:\\/\\/docs.nextcloud.com\\/server\\/22\\/go.php?to=user-sharing-federated\",\"allowGroupSharing\":true,\"defaultInternalExpireDateEnabled\":false,\"defaultInternalExpireDate\":null,\"defaultInternalExpireDateEnforced\":null,\"defaultRemoteExpireDateEnabled\":false,\"defaultRemoteExpireDate\":null,\"defaultRemoteExpireDateEnforced\":null},\"files\":{\"max_chunk_size\":10485760}}","_theme":"{\"entity\":\"Nextcloud\",\"name\":\"Nextcloud\",\"productName\":\"Nextcloud\",\"title\":\"Nextcloud\",\"baseUrl\":\"https:\\/\\/nextcloud.com\",\"syncClientUrl\":\"https:\\/\\/nextcloud.com\\/install\\/#install-clients\",\"docBaseUrl\":\"https:\\/\\/docs.nextcloud.com\",\"docPlaceholderUrl\":\"https:\\/\\/docs.nextcloud.com\\/server\\/22\\/go.php?to=PLACEHOLDER\",\"slogan\":\"a safe home for all your data\",\"logoClaim\":\"\",\"shortFooter\":\"<a href=\\\"https:\\/\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\/a> \\u2013 a safe home for all your data\",\"longFooter\":\"<a href=\\\"https:\\/\\/nextcloud.com\\\" target=\\\"_blank\\\" rel=\\\"noreferrer noopener\\\" class=\\\"entity-name\\\">Nextcloud<\\/a> \\u2013 a safe home for all your data\",\"folder\":\"\"}"}}]},{"file":"/var/www/nextcloud/lib/private/TemplateLayout.php","line":220,"function":"getConfig","class":"OC\\Template\\JSConfigHelper","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest","core"]},{"file":"/var/www/nextcloud/lib/public/AppFramework/Http/TemplateResponse.php","line":204,"function":"fetchPage","class":"OC_Template","type":"->","args":[{"alt_login":[]}]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":171,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":156,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Core\\Controller\\LoginController"},"showLoginForm"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":301,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Core\\Controller\\LoginController","showLoginForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"core.login.showLoginForm"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1000,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/login"]},{"file":"/var/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/epubreader/lib/config.php","Line":28,"CustomMessage":"--"}}
{

I tried sudo -u www-data php occ app:disable epubreader but I get

An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

php -m | grep apc outputs
apc
apcu

Not sure where to go from here.

Got this resolved. Disabled APCu and then I was able to remove epubreader.
After getting logged back in I was able to reconfigure APCu.

1 Like