Upgrade from NC12 to NC13 - issues


Im having some issues upgrading from NC12 to NC13.
Ubuntu 16.04 (will be inplace upgraded til 18.04 at some point)
NC 12.0.5
Installed using snap

Ive followed this guide.

First of all - the upgrade button / section is not present at the admin panel:

Ive then tried using the CLI update method, and CDed into “/snap/nextcloud/current” folder.
Then ran the “sudo -u www-data php ./occ upgrade” command.
The command state that “php: command not found”, so ive changed directory into php folder under the current folder.
This gave me the same error code.

I would like to provide more logfiles, but im fairly new to Linux, and not really sure there is any logfiles, since the upgrade isnt breaking at nay point?

Thx in advance :slight_smile:

sudo -u www-data php /var/www/your-nextcloud-installation-folder/occ upgrade


Thx for the reply, but i dont have an /var/www folder.

Ive tried different commands at the /snap/nextcloud/current folder now, but cant seem to get it working :confused:

sudo -u www-data /snap/nextcloud/curren t/bin/php /snap/nextcloud/current/bin/occ upgrade
/snap/nextcloud/current/bin/php: error while loading shared libraries: libmcrypt .so.4: cannot open shared object file: No such file or directory

occ is in the root directory of your Nextcloud installation.

in my case it’s here: /usr/lib/libmcrypt.so.4
So i guess you are missing a php module.

apt install php-mcrypt or similar may help

there is no upgrade button because version 13 isn’t released ‘stable version’ for snap

but you can upgrade it if you want to candidate channel.


Thx for the reply!
Ive totally missed that part :confused:
Thx for the help - will try again in a few weeks :slight_smile: