• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 Sitemap Generation

Mike

XenForo developer
Staff member
#7
To clarify, are you checking the ACP error log? If so, do you have error logging turning on in PHP? Does your web server log if PHP crashes for any reason?

Try rebuilding the sitemap via rebuild caches. What happens?
 

Mike

XenForo developer
Staff member
#9
The times would have to correspond with when the cron runs, which is 5:37 AM GMT, so you'll need to look around that vicinity.

If rebuilding manually works fine, that makes troubleshooting decidedly more difficult and it might point to environment variations as the cause. You can manually trigger the cron and then wait a little while to see if it finishes. You'll want to start using the sitemap options to remove all the content types and then add them back one by one to see when it stops building successfully. The last entry enabled is likely the cause.
 
#11
Morning. Still got a problem. It worked fine on Friday but failed this morning. Nothing in the server PHP log inside XenForo and onto the server. Any ideas? Screenshot 2016-07-25 08.43.20.png
 

Mike

XenForo developer
Staff member
#12
This really makes me think that there is something killing the process -- it might be outside of PHP itself (PHP-FPM/FastCGI timeout?).

You may need to disable content types and enable them one by one to see if that triggers any differences.
 
#13
Thanks. It seems to be running but stopping half way through. It ran on friday without any issues. Can I run it via cron manually on the command line?
 

Mike

XenForo developer
Staff member
#14
If it's getting stopped half way through, that means that PHP is being killed before execution completes (and generally without being given the ability to clean itself up). Running through the command line is unlikely to trigger the same scenario if it is indeed a process watcher that's killing it. You can trigger the cron within XF though and then watch the log to see it being built.

I have a suspicion that there may be environmental effects here, so the surrounding details may be relevant (what else is happening on the server at the time, load average, etc). It may be worth seeing what happens around the time the build fails.
 

Mike

XenForo developer
Staff member
#16
You can see the detailed configuration in the cron section of the control panel. Note that the times are configured using GMT.
 
#18
Hi Mike,

The problem is continuing. I've checked the php logs and nothing of has been noted as why it's stopped. Do you have any way I can debug this?

Thanks

Tim
 

Mike

XenForo developer
Staff member
#19
There should be a log on the server somewhere to give you an idea what's happening. If it's sporadically working, that does seem to point to something on the server, rather than the code (though it's possible).

If you haven't already, you will likely need to start debugging by building the content types included up one by one over a period of time to see if there's a particular type that is causing it to fail.
 
#20
Hi Mike,

I've debugged and it works fine if just nodes and tags is enabled. It fails when threads has been added in.

Is it possible to trigger it on the command line directly?

Tim