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

Solution for Cannot open lockfile /var/spool/cron/atjobs/.SEQ
is Given Below:

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