Nextcloud version (eg, 18.0.2): 13.0.2 → 14.0.14
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.04
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 7.1): multiple, selected 7.2
The issue you are facing:
I ran the command line upgrad and this happened:
php7.2 /var/www/xxx/cloud/updater/updater.phar Nextcloud Updater - version: v13.0.0beta1 Current version is 13.0.2. Update to Nextcloud 14.0.14 available. (channel: "stable") Following file will be downloaded automatically: https://download.nextcloud.com/server/releases/nextcloud-14.0.14.zip Steps that will be executed: [ ] Check for expected files [ ] Check for write permissions [ ] Enable maintenance mode [ ] Create backup [ ] Downloading [ ] Verify integrity [ ] Extracting [ ] Replace entry points [ ] Delete old files [ ] Move new files in place [ ] Done Start 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 [✔] Enable maintenance mode [✔] Create backup [✔] Downloading [✔] Verify integrity [✔] Extracting [✔] 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] This version of Nextcloud is not compatible with > PHP 7.3.<br/>You are currently running 7.4.13. Keep maintenance mode active? [y/N]
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it: See terminal output above
The output of your Nextcloud log in Admin > Logging:
Internal Server Error
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
<?php $CONFIG = array ( 'passwordsalt' => '***', 'secret' => '***', 'trusted_domains' => array ( 0 => '***', ), 'datadirectory' => '/var/www/xxx/cloud_data', 'overwrite.cli.url' => 'https://***/', 'htaccess.RewriteBase' => '/', 'dbtype' => 'pgsql', 'version' => '22.214.171.124', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'dbuser' => '***', 'dbpassword' => '***', 'installed' => true, 'instanceid' => '***', 'mail_domain' => '***', 'mail_smtpmode' => 'php', 'mail_smtpauthtype' => 'LOGIN', 'mail_from_address' => 'noreply', 'memcache.local' => '\\OC\\Memcache\\APCu', 'maintenance' => true, 'theme' => '', 'loglevel' => 2, );
The output of your Apache/nginx/system log in
I understand that Nextcloud only supports a very limited range of PHP versions. I only had access to PHP 7.0 until the recent server upgrade. Now I can select the version to use. I’ve currently selected 7.2 for that virtual host and everything worked fine. Now I’m trying to upgrade Nextcloud to a current version. For the upgrade, I selected php7.2 (see terminal output above). The first step seems to work but then it breaks halfway with a wrong error message. I’m running PHP 7.2, not 7.4.
So, what is the current state of my installation (aside from being unusable) and what should I do to complete it now?
If this upgrade is lost, what is the suggested procedure to reinstall a current version and restore all previous data? (I have a backup of the nextcloud and data directories as well as the Postgres database as SQL dump.) Though it would be very unfortunate if upgrading never worked reliably and a full reinstallation would be required each time instead.