Jump to content

Could timeout cause processwire to throw 404 sometimes but not others?


Recommended Posts

Posted

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!

Posted

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.

Posted

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?

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...