Problem description
When executing the CLI job /dspace/bin/dspace generate-sitemaps, the sitemaps directory (configurable via sitemap.dir; defaults to ${dspace.dir}/sitemaps) is also created if it does not already exist (see GenerateSitemaps::generateSitemaps).
However, the dspace user inside the Docker container does not have permission to create a directory under /dspace. As a result, a error log message is printed when running the CLI job:
2025-10-16 21:27:34,419 ERROR unknown unknown org.dspace.app.sitemap.GenerateSitemaps @ Unable to create output directory
This issue does not occur in DSpace, but only in DSpace CRIS, due to this line of code:
https://github.com/4Science/DSpace/blame/369d3e027fea3bea0ac403ffca30c87ab48a2e10/Dockerfile.test#L74