XML Sitemap is not getting updated when automated cron is run. Still getting page not found error.

Created on 27 January 2021, almost 4 years ago
Updated 1 March 2024, 11 months ago

Problem/Motivation

The site has too many contents (the latest content node ID is 142538) and when the automated cron is run the following message is reported in the logs and this repeats several times. The sitemap is never updated after that and needs to be rebuilt manually every day!

Steps to reproduce

All the Sitemap configeration is set as neccessary but the automated cron fails to update the sitemap. When we click on Rebuild sitemap manually, the sitemap is updated successfuly.

🐛 Bug report
Status

Active

Version

1.0

Component

xmlsitemap.module

Created by

🇮🇳India ankithashetty Karnataka, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇺🇸United States freelock Seattle

    We also see this on a site with > 50K links. Sometimes it generates 3 sitemap pages with exactly 10K links each, sometimes 2, sometimes none. When run manually from drush, it generates 6 pages, the first 5 10K links and the remainder on the 6th. But doing this today took 1 hour 24 minutes to complete...

    We might try the workaround suggested -- disabling the cron generation and adding our own drush cron job... or give simple_sitemap a try.

  • 🇵🇱Poland piotr pakulski Poland 🇪🇺

    I'm also experiencing that cron is not reliable. In my case when I unpublished some node in EN language, in meantime corn regenerate the sitemap then I unpublished the other language version of the same node, then the crone simply does not include that change into the other language sitemap. Walk-around will be setting crone drush command to rebuild the sitemap. I do not want invest more time into investigating that.

Production build 0.71.5 2024