More > JRiver Media Center 27 for Linux

Docker Image for MC27

<< < (15/32) > >>

vickozagi:
I tried that.
root@Mreza:~# id
uid=0(root) gid=0(root) groups=0(root)

and added to the jrivermc27 stack:
version: "2"
services:
  jrivermc27:
    image: shiomax/jrivermc27
    container_name: jrivermc27
    restart: always
    network_mode: host
    cap_add:
      - NET_ADMIN # This runs the container with raised privileges
    environment:
      - TZ=America/Los_Angeles
      - VNC_PASSWORD=12345
      #- USER_ID=0
      #- GROUP_ID=0
      - PUID=0
      - PGID=0
    volumes:

max096:

--- Quote from: vickozagi on November 19, 2020, 02:27:38 am ---S,mall access problem. I cannot access files.
I tried adding user:
      - USER_ID=1001
      - GROUP_ID=100
or:
      - PUID=1001
      - PGID=1000
And neither works. I can access parent folder, but nor files?
Any suggestions?

--- End quote ---

Try to ls -la for the files you cannot access and see what user/group they belong too. If 1001 user does only have access to the parent directory you wont be able to access them in the container either.

You probably need to either pick a different user or change permissions with chown and chmod.

max096:

--- Quote from: vickozagi on November 19, 2020, 11:35:01 pm ---I tried that.
root@Mreza:~# id
uid=0(root) gid=0(root) groups=0(root)

and added to the jrivermc27 stack:
version: "2"
services:
  jrivermc27:
    image: shiomax/jrivermc27
    container_name: jrivermc27
    restart: always
    network_mode: host
    cap_add:
      - NET_ADMIN # This runs the container with raised privileges
    environment:
      - TZ=America/Los_Angeles
      - VNC_PASSWORD=12345
      #- USER_ID=0
      #- GROUP_ID=0
      - PUID=0
      - PGID=0
    volumes:

--- End quote ---

id without anything shows you the id of the user you are logged in as (so in your case root) you can id <username> to show the once for a different user. It was never the intention to run jriver as root user... quite the opposite, not sure if thatīs supposed to work, never tried. But wether it does or doesnīt itīs a bad idea to run everything as root.

Try to run ls -la on the folder you are trying to access then id <user_that_you_found> and use that id instead of 0.

Also, any particular reason why you added this?


--- Quote ---    cap_add:
      - NET_ADMIN # This runs the container with raised privileges

--- End quote ---

Either way assuming User 1001 exists and is the one that owns your Music directory and who should own it you can run


--- Code: ---sudo chown -R 1001:1001 /path/to/folder
sudo chmod -R 750 /path/to/folder
sudo find /path/to/folder -type d -exec sudo chmod +x {} \;

--- End code ---

This will make all the sub-files and sub-folders owned by user 1001 and group 1001. The second one sets access rights to all the files and folders there to 750 so (read/write/execute for user) (read/execute for group) and nothing for everyone else.
The last one makes all folders executeable. Not strictly necessary here. But if you want to have a readonly user they need executeable permissions on the directories to be able to browse the directory. They would not need execute permissions on anything else though.

You can also replace 1001 here with the username of that user, but since I donīt know usernames on your system and in the first post you typed 1001 I stuck with that for the explanation.

HaWi:
Thank you, Max, for the 27.0.35 update!
cheers,
Hans

Richard Martin:

--- Quote from: bob on November 03, 2020, 02:26:53 pm ---It needs that mp3 folder to transcode to mp3.
Those are downloaded upon demand.

--- End quote ---

I am running a shiomax MC27 docker image on a Synology NAS.  I play my audio files to various DLNA Renderers.  FLAC and MP3 files play without a problem, but not wma files.  They say they are playing but don't.  /docker/jriver/.jriver/Media Center 27/Plugins/linux_mp3_encoder64/lame is present and so is /docker/jriver/.jriver/Media Center 27/Plugins/linux_avcodec64

Can anyone offer any advice on how to trouble shoot this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version