I've installed Spotweb on my Raspberry Pi 3 running OSMC as per the guide on this website. Most of the process went well (Spotweb was installed, I can retrieve headers and Sonarr and Couchpotato can pull NZBS from it) but I can't get the cronjob to get to work for the life of me. As I am pretty much a beginner when it comes to Linux, I am not sure what to look for to troubleshoot the issue. I have tried restarting crontab, adding 'root' and 'www-data' as users at the beginning of the cronjob (before 'php') and removing the logging part of the cronjob. However, retrieve.php is never run and no log is created.
This is the current output of crontab -l:
This is the output of sudo service cron status:
Is it related to the 'No MTA installed' message? Maybe a user permission issue? I'll be happy to post more output if necessary. Thanks in advance for the help!
This is the current output of crontab -l:
PHP Code:
*/30 * * * * php /var/www/spotweb/retrieve.php > /var/www/spotweb/retrieve.log
PHP Code:
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled)
Active: active (running) since wo 2016-05-04 20:47:21 EEST; 9h ago
Docs: man:cron(8)
Main PID: 10319 (cron)
CGroup: /system.slice/cron.service
└─10319 /usr/sbin/cron -f
mei 05 06:17:01 osmc CRON[25678]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
mei 05 06:17:01 osmc CRON[25677]: pam_unix(cron:session): session closed for user root
mei 05 06:25:01 osmc CRON[25873]: pam_unix(cron:session): session opened for user root by (uid=0)
mei 05 06:25:01 osmc CRON[25874]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /et...ily ))
mei 05 06:30:01 osmc CRON[26093]: pam_unix(cron:session): session opened for user osmc by (uid=0)
mei 05 06:30:01 osmc CRON[26094]: (osmc) CMD (php /var/www/spotweb/retrieve.php > /var/www/spotweb/retrieve.log)
mei 05 06:30:01 osmc CRON[26093]: (CRON) info (No MTA installed, discarding output)
mei 05 06:39:01 osmc CRON[26420]: pam_unix(cron:session): session opened for user root by (uid=0)
mei 05 06:39:01 osmc CRON[26421]: (root) CMD ( [ -x /usr/lib/php5/sessionclean ] && /usr/lib/php5/sessionclean)
mei 05 06:39:01 osmc CRON[26420]: pam_unix(cron:session): session closed for user root