Internal Server Error The server encountered an internal error and was unable to complete your request

Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04): not sure
Apache or nginx version (eg, Apache 2.4.25): not sure
PHP version (eg, 7.4): 7.4

The issue you are facing:
After attempting update
"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

Steps to replicate it:

  1. trying to go to login page returns that error

The output of your Nextcloud log in Admin > Logging:


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

$CONFIG = array (
‘instanceid’ => ‘oXXXXXc’,
‘passwordsalt’ => ‘XXXXXXX’,
‘secret’ => ‘XXXXXXX’,
‘trusted_domains’ =>
array (
0 => ‘’,
‘datadirectory’ => ‘/homepages/10/d272960124/htdocs/john/nc/data’,
‘dbtype’ => ‘sqlite3’,
‘version’ => ‘’,
‘overwrite.cli.url’ => XXXXXXXX/nc’,
‘installed’ => true,
‘maintenance’ => false,
‘theme’ => ‘’,
‘loglevel’ => 2,
‘twofactor_enforced’ => ‘true’,
‘twofactor_enforced_groups’ =>
array (
‘twofactor_enforced_excluded_groups’ =>
array (
‘updater.secret’ => ‘XXXXXXXXXXXXX’,

output of updater.log

2021-12-30T20:29:08-0500 aon1dV2Pyk [info] getChangelogURL()
2021-12-30T20:29:08-0500 aon1dV2Pyk [info] end of checkForUpdate() Update to Nextcloud 21.0.7 available. (channel: “stable”)
Following file will be downloaded automatically:
Open changelog ↗
2021-12-30T20:29:10-0500 ASYlml0UrG [info] request to updater
2021-12-30T20:29:10-0500 ASYlml0UrG [info] currentStep()
2021-12-30T20:29:10-0500 ASYlml0UrG [info] POST request for step “1”
2021-12-30T20:29:10-0500 ASYlml0UrG [info] startStep(“1”)
2021-12-30T20:29:10-0500 ASYlml0UrG [error] POST request failed with other exception
2021-12-30T20:29:10-0500 ASYlml0UrG [error] Exception: Exception
Message: Could not create .step
#0 /homepages/10/d272960124/htdocs/john/nc/updater/index.php(1154): Updater->writeStep(‘start’, 1)
#1 /homepages/10/d272960124/htdocs/john/nc/updater/index.php(1358): Updater->startStep(1)
#2 {main}

2021-12-30T20:29:10-0500 ASYlml0UrG [info] rollbackChanges(“1”)
2021-12-30T20:29:10-0500 ASYlml0UrG [info] end of rollbackChanges()

I solved this. My webhost limits the number of files I can have to 262,144. I exceeded it.