Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04): Unsure, as this is a shared hosting;
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
The issue you are facing:
After successively upgrading from NextCloud 19.x to 22.2.3, alternating between point-release upgrades and full versions, after the last upgrade, trying to load the NextCloud homepage yields an error 500:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable >to complete your request.
Please contact the server administrator at email@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Upgrade from NextCloud 19 to latest 19.x point release
- Upgrade from 19.x to 20 [Repeat, until you reach the current 22.2.3 version]
- Upgrade all apps from outside NextCloud, as should be done after a core upgrade
- Try to open homepage
The output of your Nextcloud log in Admin > Logging:
´Not available as GUI inaccessible.
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'instanceid' => 'Instance_id', 'passwordsalt' => 'salt', 'secret' => 'another_long_secret', 'trusted_domains' => array ( 0 => 'nc.domain.tld', ), 'datadirectory' => '/home/domain/nc_data', 'dbtype' => 'mysql', 'version' => '188.8.131.52', 'overwrite.cli.url' => 'https://nc.domain.tld', 'dbname' => 'dbname_nc', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => 'dbuser_nc', 'dbpassword' => 'db_password', 'installed' => true, 'maintenance' => false, 'theme' => '', 'loglevel' => 0, 'twofactor_enforced' => 'true', 'twofactor_enforced_groups' => array ( 0 => 'tfa', ), 'twofactor_enforced_excluded_groups' => array ( 0 => 'admin', ), 'app_install_overwrite' => array ( 0 => 'radio', 1 => 'files_external_gdrive', 2 => 'files_external_onedrive', 3 => 'files_ebookreader', 4 => 'dropit', 5 => 'files_frommail', 6 => 'ownbackup', 7 => 'ocr', ), 'updater.secret' => 'this_is_a_long_secret_string', 'has_rebuilt_cache' => true, 'encryption.legacy_format_support' => true, 'encryption.key_storage_migrated' => false, );
The output of your Apache/nginx/system log in
Not sure, on a shared hosting these files are usually unavailable. However, ther’s a “Latest web server error log messages” accessible through cPanel
[Thu Nov 25 10:12:19.561858 2021] [access_compat:error] [pid 118042:tid 47026625881856] [client 184.108.40.206:50358] AH01797: client denied by server configuration: /home/domain/public_html/nc.domain.tld/config [Thu Nov 25 10:11:47.581807 2021] [access_compat:error] [pid 117752:tid 47026627983104] [client 220.127.116.11:50302] AH01797: client denied by server configuration: /home/domain/public_html/nc.domain.tld/config [Thu Nov 25 10:10:54.605172 2021] [access_compat:error] [pid 117752:tid 47026627983104] [client 18.104.22.168:50284] AH01797: client denied by server configuration: /home/domain/public_html/nc.domain.tld/config