Skip to content

Document Docker volume permissions for OAuth storage#55

Merged
RadCod3 merged 3 commits into
mainfrom
copilot/update-readme-docker-permissions
Jan 12, 2026
Merged

Document Docker volume permissions for OAuth storage#55
RadCod3 merged 3 commits into
mainfrom
copilot/update-readme-docker-permissions

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 12, 2026

When using OAuth token persistence with Docker, the container's nonroot user (UID 65532) cannot write to host-mounted volumes created with root ownership, causing sqlite3.OperationalError: unable to open database file.

Changes

  • Quick Start section: Added permission note after docker-compose example with specific error message and fix command
  • Docker Deployment section: Added "Volume Permissions for OAuth Storage" subsection explaining:
    • Root cause: nonroot user vs. root-owned volume mount
    • When it occurs: host directory created by Docker at container start
    • Solution: sudo chown -R 65532:65532 ./data/oauth
    • Environment-dependency caveat
# Create the directory if it doesn't exist
mkdir -p ./data/oauth

# Set ownership to UID 65532 (nonroot user)
sudo chown -R 65532:65532 ./data/oauth
Original prompt

This section details on the original issue you should resolve

<issue_title>Update README with Docker volume permissions guidance for OAuth storage</issue_title>
<issue_description>## Problem

When using Docker with OAuth token persistence, users may encounter permission issues where the container cannot write to the mounted volume at ./data/oauth.

This happens because:

  • The container runs as the nonroot user (UID 65532)
  • When Docker creates the volume mount from the host, it may have root:root ownership
  • The nonroot user cannot write to the directory, causing sqlite3.OperationalError: unable to open database file

Solution

Users need to set the correct ownership on the host directory before starting the container:

sudo chown -R 65532:65532 ./data/oauth

Requested Changes

Update the README.md Docker deployment section to include a note about volume permissions:

  1. Add a troubleshooting section or note in the Docker Compose example
  2. Explain that the directory should be owned by UID 65532 (nonroot user)
  3. Provide the chown command as a solution
  4. Mention this is environment-dependent and may not be needed on all systems

Example Documentation Addition

**Note on Volume Permissions**: If you encounter permission errors when the container tries to write to the OAuth storage directory, you may need to set the correct ownership:

\`\`\`bash
sudo chown -R 65532:65532 ./data/oauth
\`\`\`

This ensures the nonroot user (UID 65532) in the container can write to the mounted volume.

Related

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: RadCod3 <104646586+RadCod3@users.noreply.github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 12, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: RadCod3 <104646586+RadCod3@users.noreply.github.com>
Copilot AI changed the title [WIP] Update README with Docker volume permissions guidance Document Docker volume permissions for OAuth storage Jan 12, 2026
Copilot AI requested a review from RadCod3 January 12, 2026 18:35
@RadCod3 RadCod3 marked this pull request as ready for review January 12, 2026 18:37
@RadCod3 RadCod3 merged commit c3aedb1 into main Jan 12, 2026
4 checks passed
@RadCod3 RadCod3 deleted the copilot/update-readme-docker-permissions branch January 13, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update README with Docker volume permissions guidance for OAuth storage

2 participants