More > JRiver Media Center 27 for Linux
Docker Image for MC27
NH:
Thanks much Jim... Nice of you. Appreciate it.
max096:
--- Quote from: NH on April 03, 2021, 10:09:12 pm --- "Mounts": [
{
"Type": "bind",
"Source": "/share/Media/Music",
"Destination": "/mnt/music",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
},
{
"Type": "volume",
"Name": "92935a0ce0354fa994243663fc0e3bf235cce85be3e3d02d8f0867be5ad4a8f7",
"Source": "/share/CACHEDEV1_DATA/Container/container-station-data/lib/docker/volumes/92935a0ce0354fa994243663fc0e3bf235cce85be3e3d02d8f0867be5ad4a8f7/_data",
"Destination": "/config",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
--- End quote ---
Looking at this part it mounted '/share/Media/Music' to '/mnt/music'. So itīs not actually '/Media/Music' then.
Not sure about external. But you should find both mounts when you type 'mount'. Maybe it comes up right away with 'mount | grep external'.
After you found where the files are. You can find out what user they belong to and use that as UID for the container as explained here https://gitlab.com/shiomax/jrivermc-docker#permission-problems. Ofc, using 0 for root should also work.
You should probably not be changing to bridge networking afterwards and use the right command right away.
NH:
--- Quote from: max096 on April 04, 2021, 09:54:31 am ---
--- Quote ---Looking at this part it mounted '/share/Media/Music' to '/mnt/music'. So itīs not actually '/Media/Music' then.
--- End quote ---
1. I am not able to locate the path to Media/Music at all. The path or permissions seem to have got bungled up perhaps. Is there a way to find where it is? I have pasted below the directory structure that I found.
--- Code: ---
mount
none on /new_root type tmpfs (rw,mode=0755,size=296960k)
/proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=64M)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs on /share type tmpfs (rw,size=16M)
/dev/sdc5 on /mnt/boot_config type ext2 (rw)
tmpfs on /mnt/snapshot/export type tmpfs (rw,size=16M)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw,data=ordered)
cgroup_root on /sys/fs/cgroup type tmpfs (rw)
none on /sys/fs/cgroup/memory type cgroup (rw,memory)
/dev/mapper/cachedev1 on /share/CACHEDEV1_DATA type ext4 (rw,usrjquota=aquota.us er,jqfmt=vfsv0,user_xattr,data=ordered,data_err=abort,delalloc,nopriv,nodiscard, acl)
/dev/sde2 on /share/external/DEV3601_2 type ufsd (rw,iocharset=utf8,dmask=0000,f mask=0111,force)
cpu on /sys/fs/cgroup/cpu type cgroup (rw,cpu)
/dev/md13 on /mnt/ext type ext4 (rw,data=ordered,barrier=1,nodelalloc)
tmpfs on /share/CACHEDEV1_DATA/.samba/lock/msg.lock type tmpfs (rw,size=48M)
tmpfs on /mnt/ext/opt/samba/private/msg.sock type tmpfs (rw,size=16M)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,none,name=systemd)
hdsfusemnt on /share/CACHEDEV1_DATA/.qpkg/HD_Station/share type fuse.hdsfusemnt (rw,nosuid,nodev,allow_other)
/share/CACHEDEV1_DATA/.qpkg/container-station/kernel-module on /lib/modules/4.14 .24-qnap/container-station type none (rw,bind)
/tmp on /share/CACHEDEV1_DATA/.qpkg/MediaSignPlayer/CodexPackExt/tmp type none ( rw,bind)
hdsfusemnt on /share/CACHEDEV1_DATA/.qpkg/MediaSignPlayer/CodexPackExt/share typ e fuse.hdsfusemnt (rw,nosuid,nodev,allow_other)
cd Media /
-sh: cd: Media: No such file or directory
[~] # ls
index_default.html
[~] # ls -a
./ .bash_logout .BitTornado@ index_default.html .vimrc
../ .bash_profile .buzzer_warnning.conf .profile
.bash_history .bashrc .docker/ .ssh@
[~] # cd /
[/] # ls
1 etc/ lib/ mnt/ proc/ share/
bin/ external/ lib64@ new_root/ root/ sys/
config/ flashfs_tmp/ linuxrc@ opt/ rpc/ tmp/
data/ hd_root_tmp@ lost+found/ path/ run/ usr/
dev/ home/ Media/ php.ini@ sbin/ var/
[/] # cd share /
[/share] # ls -a
./ HDF_DATA/ HDR_DATA/ Multimedia@
../ HDG_DATA/ HDS_DATA/ NH Work@
CACHEDEV1_DATA/ HDH_DATA/ HDT_DATA/ P@
config@ HDI_DATA/ HDU_DATA/ PlexData@
Container@ HDJ_DATA/ HDV_DATA/ .proftpd.fifo/
Download@ HDK_DATA/ HDW_DATA/ Public@
external/ HDL_DATA/ HDX_DATA/ Seagate Backup Plus Drive@
HDA_DATA/ HDM_DATA/ HDY_DATA/ S@
HDB_DATA/ HDN_DATA/ HDZ_DATA/ V@
HDC_DATA/ HDO_DATA/ homes@ Web@
HDD_DATA/ HDP_DATA/ Media@
HDE_DATA/ HDQ_DATA/ MinimServer@
[/share] # cd external /
[/share/external] # ls -a
./ ../ DEV3601_2/ sda/ sdb/ sdc/ sdd/ sde/ sdf/ sdg/ sdh/ sdi/ sdj/ sdk/ sdl/ sdm/ sdn/ sdo/ sdp/ sdq/ sdr/ sds/ sdt/ sdu/ sdv/ sdw/ sdx/ sdy/ sdz/
[/share/external] # cd DEV3601_2
[/share/external/DEV3601_2] # ls
Music DY/ $RECYCLE.BIN/ System Volume Information/
[/share/external/DEV3601_2] # cd /
[/] # ls
1 bin/ config/ data/ dev/ etc/ external/ flashfs_tmp/ hd_root_tmp@ home/ lib/ lib64@ linuxrc@ lost+found/ Media/ mnt/ new_root/ opt/ path/ php.ini@ proc/ root/ rpc/ run/ sbin/ share/ sys/ tmp/ usr/ var/
[/] # cd Media /
[/Media] # ls
Music/
[/Media/Music] # ls
[/Media/Music] # ls -a
./ ../
--- End code ---
--- Quote ---Not sure about external. But you should find both mounts when you type 'mount'. Maybe it comes up right away with 'mount | grep external'.
--- End quote ---
I could find the external drive as you can see above.
--- Quote --- After you found where the files are. You can find out what user they belong to and use that as UID for the container as explained here https://gitlab.com/shiomax/jrivermc-docker#permission-problems. Ofc, using 0 for root should also work.
--- End quote ---
I have not tried this as of now.
--- Quote ---You should probably not be changing to bridge networking afterwards and use the right command right away.
--- End quote ---
. Yes, am not doing that.
However here is what I found. I can see the files in the shared Multimedia folder. As such I loaded MC27 from the GUI using bridge and used the Multimedia folder and I was able to see the files within that when I launched JRiver. So one solution is to move all my music files to the Multimedia folder from the Media folder. This still does not address the external drive access.
So I tried to load MC24 via putty using your instructions adding the Multimedia folder instead of Media and using the bridge method. However its giving me some strange error commands which I did not see earlier. Pasting the error messages here. Have I made a mistake in the syntax?
--- Code: ---docker pull shiomax/jrivermc24
Using default tag: latest
latest: Pulling from shiomax/jrivermc24
Digest: sha256:b713ae0d65275d3ad5e25da995b27132012eaee0c0ce3cd0b64005e3a3763b4f
Status: Image is up to date for shiomax/jrivermc24:latest
docker.io/shiomax/jrivermc24:latest
[/] # docker run -d \
> --name=jrivermc26 \
> --net=bridge \
> --restart=always \
> --mac-address=ed:e8:60:2d:65:c1 \
> -p 5800:5800 \
> -p 5900:5900 \
> -p 52199:52199 \
> -p 1900:1900/udp \
docker: invalid reference format.
See 'docker run --help'.
[/] # -v config:/config:rw \
> -v /share/Multimedia/Music:/data/music:rw \
> -v /external/DEV3601_2:/data/musichdd:rw \
> -e VNC_PASSWORD=12345 \
> shiomax/jrivermc26
-sh: -v: command not found
--- End code ---
Maybe I should remove the container station and install it again to restore defaults which might have got changed.
Best
NH
--- End quote ---
max096:
It interpreted it as multiple commands so you got something wrong with your formatting. Not a docker or container station issue.
--- Code: ---docker run -d \
--name=jrivermc26 \
--net=bridge \
--restart=always \
--mac-address=ed:e8:60:2d:65:c1 \
-p 5820:5800 \
-p 5920:5900 \
-p 52299:52199 \
-p 1901:1900/udp \
-v config:/config:rw \
-v /share/Multimedia/Music:/data/music:rw \
-v /external/DEV3601_2:/data/musichdd:rw \
-e VNC_PASSWORD=12345 \
shiomax/jrivermc26
--- End code ---
This looks fine. Just make sure you only have line breaks directly after the \ and no spaces between \ and the line break.
Also according to what you just wrote your share is mounted to
--- Code: ---/dev/sde2 on /share/external/DEV3601_2 type ufsd (rw,iocharset=utf8,dmask=0000,fmask=0111,force)
--- End code ---
So "/share/external/DEV3601_2", but you put "/external/DEV3601_2" into your command.
The other thing is you should also put the config directory somewhere, where you can find it again. Currently, with that command it gets created whereever you are when you run the command. Or you remove that line (for testing you donīt need it). Itīs purpose is so that whatever you did in JRiver gets saved there and so if you use that same config directory for another container, it will remember your imports, playlists and so forth even through container re-creation. If you change the version of the container you want to re-use the same config directory. Or you start from scratch.
Id say for later. Make a directory somewhere, where you can find it again. For instance "<somewhere>/docker/jriver" in that folder create a file 'start.sh' and folder 'config'.
Put this into the 'start.sh' file
--- Code: ---#!/usr/bin/env bash
# Remove container in case it currently exists
docker rm -f jrivermc26
# Start new container
docker run -d \
--name=jrivermc26 \
--net=bridge \
--restart=always \
--mac-address=ed:e8:60:2d:65:c1 \
-p 5801:5800 \
-p 5901:5900 \
-p 52200:52199 \
-p 1901:1900/udp \
-v <somewhere>/docker/jriver:/config:rw \
-v /share/Multimedia/Music:/data/music:rw \
-v /share/external/DEV3601_2:/data/musichdd:rw \
-e USER_ID=0 \
-e GROUP_ID=0 \
-e VNC_PASSWORD=12345 \
shiomax/jrivermc26
--- End code ---
The left ports you adjust to whatever you need in case you need something other than the default ports. And you put the path in where the config directory is.
Then you save that as is. Run 'chmod +x start.sh' (only needed once) to make it executeable and then whenever you need to re-deploy or change something, you edit that file and run './start.sh' inside that folder. Should be a bit easier to manage in the long run than keeping track of this entier command whenever you need to do something to it.
Replace <somewhere> with some path that you can access from another PC so you can edit it without using the terminal from there. Im guessing that will be easier for you than using vim or nano to edit it.
NH:
Thanks. Will check that.
BTW, any suggestions on how I can locate the path to my folder Media/Music? It's a mystery. How could it have changed places when I can see it exactly in the File Station.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version