joer80 Posted October 3, 2014 Share Posted October 3, 2014 I created a process wire template for a processwire page called cron. I then created a cron job that loads that page using curl. The weird thing is, sometimes it works fine, and sometimes it doesnt.. I can see the same thing when I view the page as well. If when I view it, and it doesnt work, it shows my template with this message in the content area: The page you were looking for is not found.Please use our search engine or navigation above to find the page. If it works, it loads like normal. Anyone know why you would get a 404 page can not be found sometimes but not all the time? There is a lot of processing. Could processwire be timing out and giving up on it? Thanks! Link to comment Share on other sites More sharing options...
netcarver Posted October 3, 2014 Share Posted October 3, 2014 @joer80 How much processing is going on? How long does it take? What timeout are you telling curl to use? Link to comment Share on other sites More sharing options...
joer80 Posted October 3, 2014 Author Share Posted October 3, 2014 Well, I was wrong. Instead of curl, I went with wget for the cron. This is the command: wget -O nocache http://www.url.com/cron/ We are probably looking at 5 to 8 minutes of commands in that file. Mostly database work. Link to comment Share on other sites More sharing options...
netcarver Posted October 3, 2014 Share Posted October 3, 2014 That's a long command - wouldn't be surprised if something is timing out. How long does it take from submitting the url to seeing the problem message - between 5-8 minutes or does it appear sooner? Link to comment Share on other sites More sharing options...
joer80 Posted October 3, 2014 Author Share Posted October 3, 2014 I may do a second cron and break it in half and see... It does like 4 things. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now