Cron - Permission Denied
-
Hello All,
I've got some weird things going on with permissions on cron jobs. Permissions are showing as "permission denied" in the logs. I've gone through and verified that the permissions on the files are www-data and have restarted the app a few times but the issue seems to persist. Any help with this would be greatly appreciated!Feb 14 09:05:40 /bin/sh: 1: /app/data/software-name/crons/cron.php: Permission denied
5 * * * * /app/data/software-name/crons/cron.php 5 * * * * /app/data/software-name/mail-pipe.php
-
N nebulon marked this topic as a question on
-
Can you ensure that the file is executable? You can ensure that with
chmod +x /app/data/software-name/crons/cron.php
-
@nebulon said in Cron - Permission Denied:
ls -l /app/data/software-name/crons
/app/code# ls -l /app/data/software-name/crons
total 184
-rw-r--r-- 1 www-data www-data 8283 Nov 29 12:08 bootstrap.php
-rw-r--r-- 1 www-data www-data 787 Nov 29 12:08 config.php
-rwxr-xr-x 1 www-data www-data 30920 Nov 29 12:08 cron.php
-rw-r--r-- 1 www-data www-data 11926 Nov 29 12:08 functions.php
-rw-r--r-- 1 www-data www-data 40 Nov 29 12:08 index.php
-rwxr-xr-x 1 www-data www-data 40693 Nov 29 12:08 pipe.php
-rw-r--r-- 1 www-data www-data 72201 Nov 29 12:08 pop.php -
Seems fine, not sure what the root cause is then. You could give us remote SSH access to take a direct look https://docs.cloudron.io/support/#remote-support and send us a mail to support@cloudron.io with your dashboard domain.
-