Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6025

Python & Django web app - auto emails not sending - troubleshooting Cron

$
0
0

I have a webapp running on an ubunti vps.Cron is scheduled to run a task evry sunday morning, however, I found it ran once and not again the next week. I have been reading about cron and how to troubleshoot but need help understanding what is shown when I run sudo systemctl status cron.

Please describe what the lines below are telling me.Is there a reason it only ran my script once?

sudo systemctl status cron● cron.service - Regular background program processing daemon     Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)     Active: active (running) since Thu 2024-04-04 19:50:25 UTC; 2 days ago       Docs: man:cron(8)   Main PID: 605 (cron)      Tasks: 1 (limit: 4647)     Memory: 1016.0K        CPU: 3.943s     CGroup: /system.slice/cron.service└─605 /usr/sbin/cron -f -PApr 07 11:17:01 Software CRON[12453]: pam_unix(cron:session): session closed for user rootApr 07 12:00:01 Software CRON[12521]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)Apr 07 12:00:01 Software CRON[12522]: (root) CMD (test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(43200))'&& certbot -q r>Apr 07 12:00:01 Software CRON[12521]: pam_unix(cron:session): session closed for user rootApr 07 12:17:01 Software CRON[12528]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)Apr 07 12:17:01 Software CRON[12529]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)Apr 07 12:17:01 Software CRON[12528]: pam_unix(cron:session): session closed for user rootApr 07 13:17:01 Software CRON[12626]: pam_unix(cron:session): session opened for user root(uid=0) by (uid=0)Apr 07 13:17:01 Software CRON[12627]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)Apr 07 13:17:01 Software CRON[12626]: pam_unix(cron:session): session closed for user rootlines 1-21/21 (END)

Viewing all articles
Browse latest Browse all 6025

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>