Closed dumblob closed 2 years ago
I would investigate backups. At 3:00am, the management/daily_tasks.sh script is executed, which performs a backup first, then certificate provisioning second. And before backing up, php-fpm is terminated and maintenance mode turned on. Since you're starting those manually every day, there's a good chance the backup.py script hasn't finished backing up files yet, for whatever reason. You could run management/backup.py directly from the command line and see if there are any messages or errors. Also look in the system process list for daily_task.sh and/or backup.py processes.
stale - closing
Yeah, believe it or not but I did not find enough time to investigate it further. If this'll happen again, I'll reopen.
Thanks for the suggestion of how to debug it!
I've started to experience regular FPM service stops at exactly 03:00 in the morning every day some months ago (but didn't have enough time to document all the behavior until now). I'm running
cloudinabox
on Ubuntu 18.04.5 LTS.I have to restart FPM systemd service manually every day, then restart nginx and then
cd /usr/local/nextcloud/; sudo -u www-data php occ maintenance:mode --off
because NC switches itself into maintenance on its own. See the following logs and information.This is what NC web page then shows:
Then after FPM service restart:
NextCloud page then shows:
Then everything works for few hours until 03:00 in the morning :cry:.
Note that after some time, the automatically requested Let's Encrypt certificate did not renew and NC is thus anyway not accessible. I didn't have time to look into this, but I suspect it's related to the issue above and I'd thus rather first solved the issue above and then got back to Let's Encrypt.
Any thoughts what could be the issue and how to debug it?