Skip to content

[BUG] Cron not working (Docker) #24

@vidalpascual

Description

@vidalpascual

Describe the bug
It's suppose that cron runs every 5 minutes, but it isn't.

To Reproduce
The problem is that the route to the update script it's wrong in the cron:

root@CronDNS:/var/www/crondns# more /etc/cron.d/crondns 
*/5 * * * * www-data php /var/www/crondns/src/lib/dyn_dns_update.php >> /var/www/crondns/data/cron.log 2>&1


root@CronDNS:/var/www/crondns# php /var/www/crondns/src/lib/dyn_dns_update.php
Could not open input file: /var/www/crondns/src/lib/dyn_dns_update.php


root@CronDNS:/var/www/crondns# php /var/www/crondns/lib/dyn_dns_update.php
[2025-11-14 11:46:52] [INFO] [dyn_dns_update.php:21 info()] Current external IP: MYIP
[2025-11-14 11:46:52] [INFO] [dyn_dns_update.php:25 info()] Updating DOMAIN (cloudflare) ...

[2025-11-14 11:46:52] [INFO] [dyn_dns_update.php:28 info()] Domain DOMAIN already has IP MYIP → skipping

[2025-11-14 11:46:52] [INFO] [dyn_dns_update.php:55 info()] DynDNS update completed.

root@CronDNS:/var/www/crondns# 

No src folder exists.

Metadata

Metadata

Assignees

Labels

DockerAll Docker-related thingsbugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions