I had a perfectly working Nextcloudpi installation on my Pi 3, but I realized a few weeks ago that Nextcloud wasn’t working anymore. As I didn’t notice immediately, I could’nt say what was the cause of the issue.
When I try to get to the Nextcloud web panel I get:
This version of Nextcloud is not compatible with PHP 7.2.
You are currently running 7.2.12-1+0~20181112102304.11+stretch~1.gbp55f215.
I ran ncp-update without problem. I then tried to update Nextcloud from ncp-config and nc-update-nextcloud but I only get:
Launching nc-info
Gathering information...
NextCloudPi version v0.66.4
NextCloudPi image NextCloudPi_12-04-17
distribution Raspbian GNU/Linux 9 \n \l
automount yes
USB devices sda
datadir /media/gus/ncdata
data in SD no
data filesystem btrfs
data disk usage 733G/932G
rootfs usage 3.4G/30G
swapfile /var/swap
dbdir /media/gus/ncdatabase
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service down
Redis service up
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 192.168.1.49
gateway 192.168.1.254
interface eth0
certificates none
NAT loopback no
uptime 1day
You should enable dnsmasq to use your domain inside home
You should run Lets Encrypt for trusted encrypted access
The drive is properly mounted as I use Kodi to watch movies that are on it.
I tried nc-update-nextcloud after restarting the DB server and I got the same error message.
Here’s the output of nc-info:
Launching nc-info
Gathering information...
NextCloudPi version v0.66.4
NextCloudPi image NextCloudPi_12-04-17
distribution Raspbian GNU/Linux 9 \n \l
automount yes
USB devices sda
datadir /media/gus/ncdata
data in SD no
data filesystem btrfs
data disk usage 733G/932G
rootfs usage 3.4G/30G
swapfile /var/swap
dbdir /media/gus/ncdatabase
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check ok
port check 80 open
port check 443 open
IP 192.168.1.49
gateway 192.168.1.254
interface eth0
certificates none
NAT loopback no
uptime 1day
You should enable dnsmasq to use your domain inside home
You should run Lets Encrypt for trusted encrypted access
That’s strange, the line with Nextcloud version is missing from nc-info.
Maybe someone can tell us how that is possible?
It’s probably got to do with your version being too old and left without updating for too long.
Use the backup facilities to backup your db, config and data files. Then use a fresh install using the latest image and use the restore tools from ncp-config.
I also thought about doing fresh install but I would rather avoid this option if possible as I have other things installed on my Rpi that I would prefer not to have to reinstall.