Support Forum

Cron job not running or unable to run on Nginx

BA Banana
Banana
Member

Since migrating to Nginx i no longer see the stats update.

Here is 1 the errors:

[error] 18643#0: *164406 rewrite or internal redirection cycle while internally redirecting to “/index.html”, client: 127.0.0.1, server: localhost, request: “POST /wp-cron.php?doing_wp_cron=1349408277.9499759674072265625000 HTTP/1.0”

 

Any idea?

6 Answers

New Answer

MP Mr Papa
Mr Papa
Member

that is a wp file and a wp issue…  have you looked at the wp.org forum for support on the cron?

if the wp cron is not running, obviously our stats wont update since they are dependent on the cron… 

is that a one time error or frequent?

BA Banana
Banana
Member

It’s a dns problem. bots are visiting my ip (which points to the forum) instead of the hostname causing it to redirect to index.html and so my site is trying to run http://_/wp-cron.php?*** instead (_is a blank hostname).  I fixed it by deny or forward the ip visits to another url.

But cron job is still not working properly which is not related to the above..  i will dig and report later. Thanks.

MP Mr Papa
Mr Papa
Member

okay, let us know… once you get wp cron working, you may need to take some action to get the sp cron jobs restarted (deactivate sp and then reactivate again)…  we can look at the cron inspector in toolbox to see if ours are running…

BA Banana
Banana
Member

sorry i made a mistake i should have posted the cron job reply here. embarassed

i tried and still the same dates/time after deactivate – reactivate

* you can delete my other posts in the other thread. 

BA Banana
Banana
Member

I thought it is weird. I just woke up after 8 hrs of sleep and found the next run date for the cron all updated. it seems the timestamp of the cron is not following the time of my server.  Then i went into the settings of wp and found the timezone i left as default is UTC+0. Ok all sorted.. my bad. embarassed