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

XF 1.4 sitemap generation randomly terminates

Discussion in 'Troubleshooting and Problems' started by dethfire, Sep 4, 2015.

  1. dethfire

    dethfire Well-Known Member

    I'm quite sure this is a server issue but every time I run the sitemap cron the processing will at different times just stop and not complete. I am using litespeed web server 5. Does anyone have suggestions for settings to look at? We've already looked at timeout.
  2. MattW

    MattW Well-Known Member

    I've checked Litespeed error logs, MySQL error logs and can't see anything relating to it terminating. We've increased timeouts, max input vars, mysql settings etc.
    dethfire likes this.
  3. Mike

    Mike XenForo Developer Staff Member

    Does it happen when you build the sitemap via the ACP directly? That might make it easier to debug.
  4. dethfire

    dethfire Well-Known Member

    Both manually via cron or scheduled cron fails at random points. Doing a rebuild from the rebuild cache area does complete successfully.
  5. Mike

    Mike XenForo Developer Staff Member

    Well regardless of how you trigger the cron, it runs the same way. However, I find it strange that doing it via rebuild caches is fine as it's fundamentally the same approach.

    You may need to temporarily rename deferred.php (so only you access it) and manually trigger the sitemap cron. Now access now-renamed-deferred.php manually in your browser. You should see an indication when it runs. Keep refreshing that until you get an error or unexpected output or the sitemap is built in the ACP. If it errored, what happened? After you do this, you need to rename the file back so that crons will be triggered automatically as necessary.

Share This Page