LMS-Community / slimserver-platforms

Platform-specific build tools for Lyrion Music Server
48 stars 41 forks source link

Getting only "Operation is not permitted" errors #54

Open ToBeHH opened 7 months ago

ToBeHH commented 7 months ago

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´ andcache`.

Thankful for any advice.

michaelherger commented 7 months ago

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 commented 2 weeks ago

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