Sitemap showing erratic behaviour | Page not found or empty sitemap

Created on 15 November 2022, over 2 years ago
Updated 16 April 2025, about 1 month ago

Problem/Motivation

I am noticing two different issues happening with the sitemap intermittently

1. Sitemap returning 404 error

Visiting mysite.com/sitemap.xml returns a page not found error. The reason seems to be sitemap generation running during the cron run and failing, most likely causing the cron stuck situation (db semaphore not cleaned)

Cron is set to run every 30 minutes

2. Sitemap is empty

The sitemap generation doesnโ€™t fail, but the page turns up empty.

Empty pages (https://mysite.com/sitemap.xml):

https://msyite.com/sitemap.xml?page=1

https://msyite.com//sitemap.xml?page=2

This does not always happen and is challenging to reproduce. Probably a misconfiguration or a memory error. What could be the root cause of the issue?

๐Ÿ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia binnythomas Trivandrum, Kerala, 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.

Production build 0.71.5 2024