by
goetsch » Thu Mar 08, 2018 12:57 pm
Another cron job, another fail...
Every day at 12:31pm I copy the previous day's webserver access log for a Sonic-hosted domain to a folder in my home directory. Today's error was for a file not found. This server log should live at
Code: Select all
/var/log/httpd/[user name]/[hosted domain name]/access_log
When I ssh into sh.sonic.net and start walking down the directory tree, I find that there is no
httpd directory under
/var/log
Code: Select all
$ ls /var
account cache cvs empty gopher lib lock mail opt run tmp
adm crash db games kerberos local log nis preserve spool yp
Code: Select all
$ ls /var/log
anaconda btmp denyhosts-20180203 mail messages-20180304 secure-20180225 wtmp
audit btmp-20180301 denyhosts-20180220 maillog munin-node secure-20180304 wtmp-20180304
boot.log chrony denyhosts-20180301 maillog-20180211 none shell yum.log
boot.log-20180302 cron denyhosts-20180307 maillog-20180218 ntpstats spooler yum.log-20180101
boot.log-20180303 cron-20180211 dmesg maillog-20180225 ppp spooler-20180211
boot.log-20180304 cron-20180218 dmesg.old maillog-20180304 rhsm spooler-20180218
boot.log-20180305 cron-20180225 grubby messages sa spooler-20180225
boot.log-20180306 cron-20180304 grubby_prune_debug messages-20180211 secure spooler-20180304
boot.log-20180307 custweb iptraf-ng messages-20180218 secure-20180211 tallylog
boot.log-20180308 denyhosts lastlog messages-20180225 secure-20180218 tuned
Code: Select all
$ ls /var/log/httpd
ls: cannot access /var/log/httpd: No such file or directory
I'm running the same cron jobs on bolt, so the copy is taking place (I'm getting my file), but no thanks to sh.sonic.net.