Cannot open lockfile /var/spool/cron/atjobs/.SEQ

921 Views Asked by At

I currently made a feature that makes use of the ATD service in a php 7.3 image with the Debian 10 operating system.

ATD works fine in development, but when I upload the image to the rancher and try to schedule the job with ATD using apache (www-data) it gives me this error Cannot open lockfile /var/spool/cron /atjobs/.SEQ

I searched the internet about this problem, but none of them solve my problem.

Note:

The user www-data is inside at.allow

The .SEQ file is already owned by deamon:daemon

2

There are 2 best solutions below

1
Jenson On

Added full permission to cron folder under a /var/spool. it is working fine.

/var/spool# chmod 777 cron/

0
Georges Guinchard On

I had a similar problem after deleting an .SEQ file in the spool directory. What helped me was to change file permission to 777 and then stop and start the ATD Service.