Skip to content

SQLite write fails in Docker when project is on NTFS mount #65

@cinebri

Description

@cinebri

When the project is cloned to an NTFS-formatted volume (e.g. a Windows drive mounted in Linux), the Docker bind-mount in docker-compose.yml:

- ./jobsyncdb/data:/data
causes attempt to write a readonly database on first signup because NTFS does not support Linux file permissions — chmod has no effect, and the container process (uid=1001 nextjs) cannot write to a file owned by a different uid.

Workaround: use a named Docker volume instead of a bind-mount:

volumes:
  - panel-data:/data
# at the bottom:
volumes:
  panel-data:

This stores the database on the Docker-managed Linux filesystem where permissions work correctly.

Environment: Linux (Arch/EndeavourOS), Docker, project on NTFS partition (fuseblk).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions