Internal Server Error on Asustor running 22.2.3.0, appears to be a post-update error

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.2.3.0
Operating system and version (eg, Ubuntu 20.04): Asustor NAS 4.0.0.RMD2
Apache or nginx version (eg, Apache 2.4.25): 2.4.43.r4
PHP version (eg, 7.4): 7.3.12.r121

The issue you are facing:
Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

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

The output of your Nextcloud log in Admin > Logging:

{"reqId":"eNiK8itOVUDJhzXv7ZI6","level":1,"time":"2021-12-03T22:32:08+00:00","remoteAddr":"192.168.1.1","user":"--","app":"updater","method":"GET","url":"/nextcloud16/core/ajax/update.php?requesttoken=CKnE6MzwD%2FFkfa3UTWi5xmsHPjHYpIZkZ02Z2nmITPE%3D%3AbcKxjoa9frwJFJSsKwuNqll9eHiJxtcIPwTBjDzFP5U%3D","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"21.0.7.0"}
{"reqId":"eNiK8itOVUDJhzXv7ZI6","level":1,"time":"2021-12-03T22:33:07+00:00","remoteAddr":"192.168.1.1","user":"--","app":"updater","method":"GET","url":"/nextcloud16/core/ajax/update.php?requesttoken=CKnE6MzwD%2FFkfa3UTWi5xmsHPjHYpIZkZ02Z2nmITPE%3D%3AbcKxjoa9frwJFJSsKwuNqll9eHiJxtcIPwTBjDzFP5U%3D","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"21.0.7.0"}
{"reqId":"eNiK8itOVUDJhzXv7ZI6","level":1,"time":"2021-12-03T22:33:07+00:00","remoteAddr":"192.168.1.1","user":"--","app":"updater","method":"GET","url":"/nextcloud16/core/ajax/update.php?requesttoken=CKnE6MzwD%2FFkfa3UTWi5xmsHPjHYpIZkZ02Z2nmITPE%3D%3AbcKxjoa9frwJFJSsKwuNqll9eHiJxtcIPwTBjDzFP5U%3D","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"22.2.3.0"}
{"reqId":"eNiK8itOVUDJhzXv7ZI6","level":1,"time":"2021-12-03T22:33:07+00:00","remoteAddr":"192.168.1.1","user":"--","app":"updater","method":"GET","url":"/nextcloud16/core/ajax/update.php?requesttoken=CKnE6MzwD%2FFkfa3UTWi5xmsHPjHYpIZkZ02Z2nmITPE%3D%3AbcKxjoa9frwJFJSsKwuNqll9eHiJxtcIPwTBjDzFP5U%3D","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"22.2.3.0"}
{"reqId":"eNiK8itOVUDJhzXv7ZI6","level":1,"time":"2021-12-03T22:33:07+00:00","remoteAddr":"192.168.1.1","user":"--","app":"updater","method":"GET","url":"/nextcloud16/core/ajax/update.php?requesttoken=CKnE6MzwD%2FFkfa3UTWi5xmsHPjHYpIZkZ02Z2nmITPE%3D%3AbcKxjoa9frwJFJSsKwuNqll9eHiJxtcIPwTBjDzFP5U%3D","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"22.2.3.0"}

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

$ more config/config.php
<?php
$CONFIG = array (
  'instanceid' => 'removed',
  'passwordsalt' => 'removed',
  'secret' => 'removed',
  'trusted_domains' =>
  array (
    0 => '192.168.1.151',
    1 => 'removed',
  ),
  'datadirectory' => '/volume1/Web/nextcloud16/data',
  'dbtype' => 'mysql',
  'version' => '22.2.3.0',
  'overwrite.cli.url' => 'http://192.168.1.151/nextcloud16',
  'dbname' => 'NextCloud01',
  'dbhost' => 'localhost:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => 'removed',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
  'default_phone_region' => 'US',
  'mysql.utf8mb4' => true,
);

Not sure where to dig further to figure out what’s going on. I’ve tried restarting my apache service which did not improve the situation.

attempting occ command to change the maintenance mode (just to see what errors I get) provided me the clue that my sql server had crashed. Starting that back up got everything going.