1. 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

Discussion in 'Troubleshooting and Problems' started by xnetco, Jul 13, 2016.

  1. xnetco

    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
     
  2. Mike

    Mike XenForo Developer Staff Member

    Roughly every other day (M/W/F). You can see the build log under tools.
     
  3. xnetco

    xnetco Member

    Thanks Mike.

    I see the completion date is N/A. Does that mean it failed?
     
  4. Mike

    Mike XenForo Developer Staff Member

    Assuming it wasn't just started, most likely. Are there any server errors logged?
     
  5. xnetco

    xnetco Member

    Thanks Mike. Nothing in the server log about the sitemap.
     
  6. xnetco

    xnetco Member

    What time should the sitemap be created?
     
  7. Mike

    Mike XenForo Developer Staff Member

    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?
     
  8. xnetco

    xnetco Member

    Thanks for that Mike.

    There log is quite big. Is there a time or file I could search for?

    Rebuilding manually works fine.
     
  9. Mike

    Mike XenForo Developer Staff Member

    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.
     
  10. xnetco

    xnetco Member

    Thanks for your help Mike. I'll give it a shot.
     
  11. xnetco

    xnetco Member

    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
     
  12. Mike

    Mike XenForo Developer Staff Member

    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. xnetco

    xnetco Member

    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?
     
  14. Mike

    Mike XenForo Developer Staff Member

    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.
     
  15. xnetco

    xnetco Member

    Thanks Mike. It's worked this morning. Something odd going on. Will go through the logs. What time will it run automatically?
     
  16. Mike

    Mike XenForo Developer Staff Member

    You can see the detailed configuration in the cron section of the control panel. Note that the times are configured using GMT.
     
  17. xnetco

    xnetco Member

    Thanks for your help.
     
  18. xnetco

    xnetco Member

    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
     
  19. Mike

    Mike XenForo Developer Staff Member

    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. xnetco

    xnetco Member

    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
     

Share This Page