Skip to content

FileNotFoundError with new namespace #1998

@sebix

Description

@sebix

After adding a new namespace to the wikiconfig:

    In namespaces=
             # define custom namespaces using the default backend
    +        "dev": "internal",
    In backends=
    +        "internal": uri,

We're unable to create a page in the namespace. Creating dev/Home results in an Internal Server Error. The server log shows:

FileNotFoundError: [Errno 2] No such file or directory: '/home/moin/instance/wiki/data/internal/data/489b1636d3fe46239950ff466eaf105b'

I searched for instructions in the docs how to initialize the backend:

But haven't found anything yet.

The command moin index-create returns

2025-09-29 17:43:08,640 ERROR moin.cli.maint.index:49 Error: wiki index exists. Please check and destroy index before running index-create

Manually creating the directories

  • /home/moin/instance/wiki/data/internal/
  • /home/moin/instance/wiki/data/internal/data/
  • /home/moin/instance/wiki/data/internal/meta/

worked around the problem.

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