StatCan / aaw

Documentation for the Advanced Analytics Workspace Platform
https://statcan.github.io/aaw/
Other
68 stars 12 forks source link

Ubuntu VMs: Users cannot start cron daemon #1215

Closed Adib-Chisty closed 2 years ago

Adib-Chisty commented 2 years ago

I created a Ubuntu VM which has cron installed by default Verified using dpkg -l cron and also by the fact that the user level commands crontab -e is working. As per the manpages for cron, user level cron jobs are executed on the user level and does not need rootaccess. I am able to write and install my own cronfile using crontab -e however the background daemon does not seem to be active. Verified using pgrep cron and ps -ef(no PIDs) Further verified using:

(base) jovyan@survey-scraper-0:/$ service cron status 
* cron is not running

Attempting to activate it using both systemctl start cron and service cron start results in errors...

(base) jovyan@survey-scraper-0:/$ systemctl start crond 
System has not been booted with systemd as init system (PID 1).
 Can't operate. Failed to connect to bus: Host is down

(^ this issue in particular is happening due to PID 1 being the process to start the VM) also,

(base) jovyan@survey-scraper-0:/$ service cron start * Starting periodic command scheduler cron  
cron: can't open or create /var/run/crond.pid: Permission denied

So I guess my question is, how is one supposed to use the user level cronfile as the user if they cannot activate the daemon?

Adib-Chisty commented 2 years ago

duplicate