Skip to content

Cannot write configuration to file: open /updater/data/config.json: permission denied #564

Closed Answered by numitron
numitron asked this question in Q&A
Discussion options

You must be logged in to vote

Concerning these environment variables:

      - PUID=${PUID:?err}
      - PGID=${PGID:?err}

These won't do anything according to the author. Unless something changed since.

Could you confirm that you followed these steps in the setup section of the Readme?

mkdir data
touch data/config.json
# Owned by user ID of Docker container (1000)
chown -R 1000 data
# all access (for creating json database file data/updates.json)
chmod 700 data
# read access only
chmod 400 data/config.json

However, since you're on a Synology NAS, you're probably stuck with the built-in user and group IDs, which is a PITA.
The solution could be building the container with your IDs so that it can get the permissions i…

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@numitron
Comment options

Answer selected by qdm12
@qdm12
Comment options

Comment options

You must be logged in to vote
1 reply
@qdm12
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
4 participants