Ros Posted September 17, 2008 Share Posted September 17, 2008 I installed WHMCS on my dedicated server approx 12 months ago and set the cron job as the GET method as the other method sent errors and wouldn't work, for quite a while the cron job was set to run once a day at 9am and everything was going fine. Then I changed my logo and changed the cron job to run at 10am daily. Ever since then the cron job has been running twice a day yet it's only set up in my cpanel to run at 10am. The odd part is the first cron job which runs at 9am is using my old logo and when an account is due an invoice is generated using a previously used invoice number which has already been sent and paid for by another client so there is no way to cancel it and it doesn't show up anywhere as a new invoice, it also generates the overdue invoice notices for that invoice number, it also generates invoices for 2 clients who are no longer in the system, it's very frustrating. The 10am cron job runs as it should with no issues. I changed the cron job yesterday to 9am to see if that resolved the problem, it didn't so now I have 2 jobs running at 9am. Any ideas on why I am having this issue? Thanks in advance Ros 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 17, 2008 Share Posted September 17, 2008 grep (cronfilename) /var/spool/cron/* and do a crontab -e check you dont have it twice in a spool cron file or also under root 0 Quote Link to comment Share on other sites More sharing options...
Ros Posted September 18, 2008 Author Share Posted September 18, 2008 grep (cronfilename) /var/spool/cron/*and do a crontab -e check you dont have it twice in a spool cron file or also under root Thanks for your reply. How/where would I locate a spool cron file? Cheers Ros 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 18, 2008 Share Posted September 18, 2008 that would be the bit ... /var/spool/cron/ 0 Quote Link to comment Share on other sites More sharing options...
Ros Posted September 18, 2008 Author Share Posted September 18, 2008 Thanks again Did a search in cpanel and no matches found for /var/spool/cron/ 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 18, 2008 Share Posted September 18, 2008 also try grep (cronfilename) /etc/cron* grep (cronfilename) /etc/cron*/* 0 Quote Link to comment Share on other sites More sharing options...
Adam Posted September 19, 2008 Share Posted September 19, 2008 Hey, Could just do (which will show all your cronjobs) cat /var/spool/cron/cPaneluser or cat /var/spool/cron/cPaneluser | grep "GET whmcsurl" (does the same as othellotech grep command) Thanks, Adam 0 Quote Link to comment Share on other sites More sharing options...
KuJoe Posted September 20, 2008 Share Posted September 20, 2008 Anybody have any luck with this? I opened up a support ticket with WHMCS but so far nothing. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted September 20, 2008 Share Posted September 20, 2008 Anybody have any luck with this everything in the OP indicates there are two scheduled jobs being run - this is an install problem not a whmcs one, and something any sysadmin should be able to diagnose and rectify 0 Quote Link to comment Share on other sites More sharing options...
KuJoe Posted September 20, 2008 Share Posted September 20, 2008 Actually I just noticed that I replied to the wrong thread. 0 Quote Link to comment Share on other sites More sharing options...
Ros Posted October 13, 2008 Author Share Posted October 13, 2008 Issue is now sorted, turns out that the cron jobs were still running on my old server. Thanks for all the help. Cheers Ros 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.