XF 1.5 Sitemap Generation

xnetco

Member
Hello.

I've got a client who's thinks their sitemap isn't auto generating. How often should it auto update?

Cheers

Tim
 
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?
 
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.
 
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.webp
 
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.
 
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.
 
You can see the detailed configuration in the cron section of the control panel. Note that the times are configured using GMT.
 
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
 
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.
 
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
 
Top Bottom