Update to Version 14 failed NextcloudPI under Debian Stretch

Although web updater seemed to run and it completed when trying to log back in I get this


Internal Server Error

The server was unable to complete your request.

If this happens again, please send the technical details below to the server administrator.

More details can be found in the server log.

Technical details

  • Remote Address: 192.168.1.193
  • Request ID: W65jfH8AAQEAAAO9DjEAAAAB

any suggestions? Do I need to wipe and reload everything? I can get to the NextcloudPI panel however many of the options are now in what appears to be German. However I can not see an easy ā€œroll backā€ command.

Further info from NextcloudPI Panel

NextCloudPi version v0.60.8
distribution Debian GNU/Linux 9 \n \l
automount no
USB devices none
datadir /var/www/nextcloud/data
data in SD yes
data filesystem ext2/ext3
data disk usage 145G/913G
rootfs usage 145G/913G
swapfile /dev/sda5
dbdir /var/lib/mysql
Nextcloud check ok
Nextcloud version 14.0.1.1
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check ok
port check 80 closed
port check 443 open
IP 192.168.1.73
gateway 192.168.1.1
interface enp0s25
certificates xxxxxxxxx.xxxxxxxxx.com
NAT loopback no
uptime 3:16

and

Nextcloud configuration

passwordsalt xxxxxxxxxxxxxxxxx
secret xxxxxxxxxxxxxxxx
trusted_domains 0 localhost


1 192.168.1.73
5 nextcloudpi.local
4 xxxxxxxxx.xxxxxxxx.com
2 xxxxxxxxx.xxxxxxxx.com
datadirectory /var/www/nextcloud/data
overwrite.cli.url https://xxxxxxxxx.xxxxxxxx.com
dbtype mysql
version 13.0.6.1
dbname nextcloud
dbhost localhost
dbport
dbtableprefix oc_
mysql.utf8mb4 1
dbuser ncadmin
dbpassword xxxxxxxxxxxxx
installed 1
instanceid ocsgk0my5yvk
memcache.local \OC\Memcache\Redis
memcache.locking \OC\Memcache\Redis
redis host /var/run/redis/redis.sock


port 0
timeout 0
password xxxxxxxxxxxxxxxx

further info when trying to take into account

[ nc-fix-permissions ]
fixing permissions in Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
/var/www/nextcloud/dataā€¦ chown: cannot access ā€˜Nextcloud or one of the apps require upgrade - only a limited number of commands are availableā€™$ā€™\nā€™ā€˜You may use your browser or the occ upgrade command to do the upgradeā€™$ā€™\nā€™ā€™/var/www/nextcloud/data//filesā€™: No such file or directory
chmod: cannot access ā€˜Nextcloud or one of the apps require upgrade - only a limited number of commands are availableā€™$ā€™\nā€™ā€˜You may use your browser or the occ upgrade command to do the upgradeā€™$ā€™\nā€™ā€™/var/www/nextcloud/data/
/filesā€™: No such file or directory
done

I also had problems to update to NC14 via built-in web updater. It seems that the upgrade failed somewhere and you still using 13.0.6.1. Do you see some errors in [NC_DIR]/data/updater.log ?

I would recommend to retry the update with the Command-Line Updater.

First I had to delete the the following file: [NC_DIR]/data/updater-[INSTANCE_ID]/.step*
and following folder: [NC_DIR]/data/updater-[INSTANCE_ID]/backups/nextcloud-13.0.6.1
Then retry update with command line tool.

If you used ncp-web to update (not Nextcloud, ncp-web) then you can roll back to the latest backup, but it seems like you didnā€™t.

This is the recommended way. Right now it seems like your update didnā€™t complete.

Also it is best to just turn on autoupdates for nextcloud in ncp-web and this way youā€™ll get the upgrade automatically once it has been tested by us.

See here