Trying to execute the sling sitemap schedular but its not working, I am on SP14. Through logs could see after specific interval schedular executes and prints internal query to traverse nodes but at end sitemap is not generated.
Cannot serve request to /content/abc/en/index.sitemap.xml in org.apache.sling.sitemap.impl.SitemapServlet
All on demand configuration works fine.
Another observation on one server with SP16, sitemap.xml is not written under var/sitemaps folder though schedular configuration works fine.
Anyone recently facing these issues, do update and any next steps.
Hello @Neha -
Could you also check for any potential errors been logged in the same duration maybe?
22.06.2023 16:11:24.166 *DEBUG* [[0:0:0:0:0:0:0:1]  GET /content/abc/en/index.sitemap.xml HTTP/1.1] org.apache.sling.sitemap.impl.SitemapStorage Could not copy data from resource: /var/sitemaps/content/abc/en/index/sitemap.xml
Hi We figured out the issue as separate configuration has to be created under config.publish and deployed and then schedular is working as expected. When directly adding the schedular configuration through its not working.