Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting only "Operation is not permitted" errors #54

Open
ToBeHH opened this issue Mar 10, 2024 · 2 comments
Open

Getting only "Operation is not permitted" errors #54

ToBeHH opened this issue Mar 10, 2024 · 2 comments

Comments

@ToBeHH
Copy link

ToBeHH commented Mar 10, 2024

I would like to start LMS on my QNAP server. I start it using the following command:

docker run --name=lms --hostname=san --user=squeezeboxserver \
  -e PUID=1000 -e PGID=100 \
  -e EXTRA_ARGS="--advertiseaddr=192.168.173.10" \
  --mac-address=02:42:0a:00:03:03 \
  --env=TZ=Europe/Berlin \
  --volume=/share/Container/squeezeserver:/config:rw \
  --volume=/share/Multimedia/music/Corrected:/music:ro \
  --network=bridge -p 3483:3483 -p 3483:3483/udp -p 4070:4070 -p 9000:9000 -p 9090:9090 \
  --label='com.qnap.qcs.network.mode=nat' --label='com.qnap.qcs.gpu=False' \
  --log-opt max-file=10 --log-opt max-size=10m \
  --runtime=runc --memory="2147483648" --detach=true -t \
  lmscommunity/logitechmediaserver:stable

However, when I start it, I get the following errors:

usermod: user squeezeboxserver is currently used by process 1
groupmod: Permission denied.
groupmod: cannot lock /etc/group; try again later.
chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/lms/Slim/Buttons/Alarm.pm': Operation not permitted
chown: changing ownership of '/lms/Slim/Buttons/Block.pm': Operation not permitted
chown: changing ownership of '/lms/Slim/Buttons/Common.pm': Operation not permitted
…
chown: changing ownership of '/lms/strings.txt': Operation not permitted
chown: changing ownership of '/lms/types.conf': Operation not permitted
chown: changing ownership of '/lms': Operation not permitted
Starting Logitech Media Server on port 9000...
Using additional arguments: --advertiseaddr=192.168.173.10

So the given User- and Group-IDs already exist on my QNAP. The config directory has mode 777, so in any case, someone should be able to write it. But the lms directory is only inside the Docker image. How can I get an "Operation not permitted" error here?

In the end, the server has not been started and is not reachable using the given address. Moreover, the config directory does not contain anything, not even the subdirectories logs, prefs´ and cache`.

Thankful for any advice.

@michaelherger
Copy link
Member

Hi @ToBeHH - I'd suggest you ask on forums.slimdevices.com. There are many more users of Docker as well as QNAP who should be able to help.

Just to make sure: you did sudo docker ...?

@Chaz6
Copy link

Chaz6 commented Sep 25, 2024

Did you definitely mean PGID=100 and not PGID=1000?

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

No branches or pull requests

3 participants