crazy-max / docker-nextcloud

Nextcloud Docker image
MIT License
245 stars 47 forks source link

Cron change directory error preventing start #110

Closed pageb018 closed 1 year ago

pageb018 commented 1 year ago

Behaviour

Steps to reproduce this issue

  1. Try starting the stack by running docker-compose up -d
  2. Tail the logs and notice cron errors
  3. Nextcloud will not start

Expected behaviour

Nextcloud should start as normal.

Actual behaviour

containers exit with various exit codes

Configuration

I should not that the stack had been running correctly for months without issue. This was new after a reboot.

Container logs (set LOG_LEVEL to debug if applicable)

nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_previewgen  | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
nextcloud_cron        | crond: can't change directory to '/var/spool/cron/crontabs': No such file or directory
crazy-max commented 1 year ago

I can't repro on my side. This folder is created on startup: https://github.com/crazy-max/docker-nextcloud/blob/5f70a17b702268d223560d577ab7f9d9cf94758d/rootfs/etc/cont-init.d/05-svc-cron.sh#L18 So not sure how it happens.

Would need repro to help if you still have this issue (compose file).