Skip to content

[BUG] crontab: can't open '/config/crontabs/abc': Permission denied #345

@yarez0

Description

@yarez0

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

upgrading image breaks the container
while creating a new container from scratch while cleaning folders, got this error and it did not goes up

Expected Behavior

all works before upgrade (past year version)

Steps To Reproduce

create new container from scratch several times
no .ini files in dns-conf folder
previous ovh.ini file backed up and past to the folder

Environment

- OS: synology DSM 7.1.1-42962 Update 4
- How docker service was installed: from synology package

CPU architecture

x86-64

Docker creation

docker create --name letsencrypt --cap-add=NET_ADMIN -e PUID=1000 -e GUID=1000 -e TZ=Europe/Paris -e URL=<URL> -e SUBDOMAINS=wildcard -e VALIDATION=dns -e DNSPLUGIN=ovh -e EMAIL=<MAIL> -e DHLEVEL=4096 -v /volume1/Docker/Wildcard/:/config --restart unless-stopped linuxserver/swag:latest

Container logs

[migrations] started
[migrations] 01-nginx-site-confs-default: executing...
[migrations] 01-nginx-site-confs-default: succeeded
[migrations] done
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    911
-------------------------------------
Setting resolver to  1.1.1.1
Setting worker_processes to 4
generating self-signed keys in /config/keys, you can replace these with your own keys if required
.+......+.+...+......+.....+.+...+.........+..+..........+...+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*....+.+......+......+..............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.+.+...........+...+...+.......+..+......+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
......+.......+..+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*......+.....+.+..+...............+..........+...+.....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*.....+................+...+.....+...+.......+...........+.......+.....+...............+.............+..+....+.....+.........+.+.....+.+..............+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-----
# do daily/weekly/monthly maintenance
# min   hour    day     month   weekday command
*/15    *       *       *       *       run-parts /etc/periodic/15min
0       *       *       *       *       run-parts /etc/periodic/hourly
0       2       *       *       *       run-parts /etc/periodic/daily
0       3       *       *       6       run-parts /etc/periodic/weekly
0       5       1       *       *       run-parts /etc/periodic/monthly
# renew letsencrypt certs
8       2       *       *       *       /app/le-renew.sh >> /config/log/letsencrypt/letsencrypt.log 2>&1
crontab: can't open '/config/crontabs/abc': Permission denied
s6-rc: warning: unable to start service init-crontabs-config: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
prog: fatal: stopping the container.
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] done
usermod: no changes
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Certbot: https://supporters.eff.org/donate/support-work-on-certbot
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    911
-------------------------------------
using keys found in /config/keys
crontab: can't open '/config/crontabs/abc': Permission denied
s6-rc: warning: unable to start service init-crontabs-config: command exited 1
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
prog: fatal: stopping the container.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions