My nextcloud container stopped working after an update, returned an internal server error.
Logging in to its console I found that the date of the container is completely wrong, it is still in 1970.
A could not find a way to sync it, so deleted it, deleted its config folder to start a brand new instance, but error messages show up during start about wrong date issues:
tar: lib/private/Migration/ConsoleOutput.php: time stamp 2021-01-14 10:35:08 is 1520090935 s in the future
Again, I’ve tried to set the date manually, there seems to be a permission issue:
root@7d5feb950823:/# date
Thu Jan 1 01:00:00 CET 1970
root@7d5feb950823:/# date -s "23 JAN 2021 09:35:30"
date: cannot set date: Operation not permitted
Sat Jan 23 09:35:30 CET 2021
root@7d5feb950823:/# sudo date -s "23 JAN 2021 09:35:30"
date: cannot set date: Operation not permitted
Sat Jan 23 09:35:30 CET 2021
All my other linuxserver.oi containers seem to work, their date is correct.
This is my startup command, worked well for about a week ago:
docker run \
--name nextcloud \
\
-p 7080:80 \
-p 7443:443 \
\
-e PUID=1000 \
-e PGID=1001 \
-e TZ=Europe/Budapest \
\
-v /home/pi/docker-data/nextcloud/config:/config \
-v /home/pi/docker-data/nextcloud/data:/data \
\
-v /home:/home \
-v /mnt/nas:/mnt/nas \
\
--cpu-shares 256 \
\
-d \
--restart unless-stopped \
\
linuxserver/nextcloud
Running on a Raspberry Pi 4, 4GB, without an issue for more than a year. (Raspbian GNU/Linux 10 (buster))
Thanks for the help!
Gabor