Update of nextcloudpi container failed

Hello,

today I tried to update my nextcloud running in a container on a raspberry pi. Originally I created the container calling

docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /data/nextcloud/ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf

Today I wanted to update the container so I stoped and removed the container, updated the image and created it again as explained at https://github.com/nextcloud/docker#update-to-a-newer-version. I created the container again with the same command as above.

fermat@web:~ $ docker stop nextcloudpi
nextcloudpi
fermat@web:~ $ docker rm nextcloudpi
nextcloudpi
fermat@web:~ $ docker pull ownyourbits/nextcloudpi-armhf
Using default tag: latest
latest: Pulling from ownyourbits/nextcloudpi-armhf
Digest: sha256:876943feeab9c716708be94bef426ed09ebb1b3b6ddd31afdc9941e53df65c25
Status: Image is up to date for ownyourbits/nextcloudpi-armhf:latest
fermat@web:~ $ docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /data/nextcloud/ncdata:/data --name nextcloudpi --restart always ownyourbits/nextcloudpi-armhf
749b4b6dffa6e87ef06fcad8bec065a64dc8330852f5753344b5f779a6694095

But now I do not get any web gui anymore. I opened a shell in the container calling docker exec -i -t nextcloudpi /bin/bash and I do not see a webserver running:

fermat@web:~ $ docker exec -i -t nextcloudpi /bin/bash
root@749b4b6dffa6:/# ps -efa
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 11:33 ?        00:00:00 /bin/bash /run-parts.sh wattpira
redis       77     1  0 11:33 ?        00:00:00 redis-server 127.0.0.1:0
root        81     1  0 11:33 ?        00:00:00 cron
root       174     1  0 11:33 ?        00:00:00 /usr/lib/postfix/sbin/master -w
postfix    175   174  0 11:33 ?        00:00:00 pickup -l -t unix -u -c
postfix    176   174  0 11:33 ?        00:00:00 qmgr -l -t unix -u
root       239     0  0 11:33 pts/0    00:00:00 /bin/bash
root       255     1  0 11:33 ?        00:00:00 sleep 0.5
root       256   239  0 11:33 pts/0    00:00:00 ps -efa
root@749b4b6dffa6:/#

Can someone give me a hint what is going wrong?

bests

Sascha

New images have not been generated yet.
Check https://ownyourbits.com/downloads/
and they usually get announced.
The notification about Buster coming available is for regular ncp users. They can update, but will be warned to create backups, before proceeding, as upgrading to Buster is potentially dangerous.

docker logs nextcloudpi ?

Hi,

seems mysqld is not started:

fermat@web:~/docker $ docker logs nextcloudpi
Making /usr/local/bin persistent ...
mv: failed to access '/data/bin': Too many levels of symbolic links
Starting PHP-fpm
/etc/services-enabled.d/010lamp: line 22: php-fpm: command not found
Starting Redis
Starting Cron
Starting Postfix
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
Init done
fermat@web:~/docker $

I looked into the container in /var/log/mysql/ but the directory is empty. According the configuration of mariadb it should write log files there. So, I think the container does not even try to start the database server?!?

bests

Sascha

this is already odd.
something’s wrong with your volume -v /data/nextcloud/ncdata:/data

You are right. insight the container the link points to itself… Can you (or anybody) give me a hint what should be inside? I have no idea where it comes from…

Anyway, I removed the link and the container and created it again. This time php-fpm seems to be missing:

fermat@web:/data/nextcloud/ncdata $ docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /data/nextcloud/ncdata:/data --name nextcloudpi ownyourbits/nextcloudpi-armhf
ea8c410fa959dcb96022d0e5b60e41cd6af58d2813d1178349c458909e999f59
fermat@web:/data/nextcloud/ncdata $ docker logs nextcloudpi
Making /usr/local/bin persistent ...
Starting PHP-fpm
/etc/services-enabled.d/010lamp: line 22: php-fpm: command not found
Starting Redis
Starting Cron
Starting Postfix
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
Init done
fermat@web:/data/nextcloud/ncdata $

So, I logged into the container. There is only php-fpm7.2, so I created a link and stoped again the container, removed the link and started it again:

fermat@web:/data/nextcloud/ncdata $ docker logs nextcloudpi
Starting PHP-fpm
/etc/services-enabled.d/010lamp: line 22: php-fpm: command not found
Starting Redis
Starting Cron
Starting Postfix
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2 "No such file or directory")
Init done
stopping Cron...
stopping Redis...
stopping Postfix...
stopping logs...
tail: no process found
Stopping apache
httpd (no pid file) not running
Stopping PHP-fpm
Making /usr/local/bin persistent ...
Making /usr/local/bin persistent ...
mv: failed to access '/data/bin': Too many levels of symbolic links
Starting PHP-fpm
Starting Apache
Starting mariaDB
2019-07-19 15:23:17 1996045104 [Note] mysqld (mysqld 10.1.37-MariaDB-0+deb9u1) starting as process 80 ...
Starting Redis
Starting Cron
Starting Postfix
/etc/services-enabled.d/020nextcloud: line 62: ncc: command not found
Init done
fermat@web:/data/nextcloud/ncdata $

This time I got the nextcloudpi config webgui accessing https://localhost:4443. It brought me to the wizard but I get no options to config anything. I just get following web gui:

bests

Sascha