Skip to content

Sitemaps cannot be generated when DSpace CRIS is running in a Docker setup #525

@saschaszott

Description

@saschaszott

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions