Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 22.2.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04.3 LTS
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41
PHP version (eg, 7.4): 8.0.15
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Yes
Steps I remind I have done:
- Start Web based Updater and let it do all steps include “Move new files in place”
- Do not continue the update. Instead just disable maintenance mode
- Restart server
- Try now to start the Update from the beginning as usual
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'xxx',
'passwordsalt' => 'xxx',
'secret' => 'xxxxxx',
'trusted_domains' =>
array (
0 => 'localhost',
1 => 'LOCAL_IP',
2 => 'PUBLIC_IP',
3 => 'www.PUBLIC_IP',
),
'trusted_proxies' =>
array (
0 => 'PROXY_IP',
),
'datadirectory' => '/mnt/nextcloud/',
'dbtype' => 'mysql',
'version' => '22.2.4.3',
'overwrite.cli.url' => 'http://localhost',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'xxx',
'dbpassword' => 'xxx',
'installed' => true,
'default_phone_region' => 'DE',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_from_address' => 'cloud',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'MAIL_DOMAIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'SMTP_SERVER',
'mail_smtpport' => '465',
'mail_smtpname' => 'SMTP_USER',
'mail_smtppassword' => 'SMTP_PWD',
'mail_smtpsecure' => 'ssl',
'maintenance' => false,
'loglevel' => 3,
'twofactor_enforced' => 'true',
'twofactor_enforced_groups' =>
array (
0 => 'User',
1 => 'admin',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'updater.release.channel' => 'stable',
'updater.secret' => 'xxx',
);
Here is what I get, when trying to update:
user@nextcloud:/var/www/nextcloud$ sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 22.2.4.
Update to Nextcloud 22.2.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.5.zip
Open changelog ↗
Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Continue update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is already latest version
Keep maintenance mode active? [y/N] n
Maintenance mode already disabled
Maintenance mode is disabled
As soon as I start the command, all hooks are set instantly.
If I start the maintenance mode before execute the code I get:
user@nextcloud:/var/www/nextcloud$ sudo -u www-data php /var/www/nextcloud/updater/updater.phar
Nextcloud Updater - version: v20.0.0beta4-11-g68fa0d4
Current version is 22.2.4.
Update to Nextcloud 22.2.5 available. (channel: "stable")
Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-22.2.5.zip
Open changelog ↗
Steps that will be executed:
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Continue update? [y/N] y
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[✔] Check for expected files
[✔] Check for write permissions
[✔] Create backup
[✔] Downloading
[✔] Verify integrity
[✔] Extracting
[✔] Enable maintenance mode
[✔] Replace entry points
[✔] Delete old files
[✔] Move new files in place
[✔] Done
Update of code successful.
Should the "occ upgrade" command be executed? [Y/n] y
Nextcloud is in maintenance mode - no apps have been loaded
Nextcloud is in maintenance mode
Maybe an upgrade is already in process. Please check the logfile (data/nextcloud.log). If you want to re-run the upgrade procedure, remove the "maintenance mode" from config.php and call this script again.
Keep maintenance mode active? [y/N] n
Maintenance mode disabled
Maintenance mode is disabled
Remove the line “maintenance mode” from config doesn’t help