More > JRiver Media Center 25 for Linux
Trouble adding network share to library
snafu:
First off, let me say that I'm by no means an expert on the Raspberry Pi. I just installed jriver media center 25 on it.
I've successfully mounted a network share that has my music (in my case: home/pi/music/test ). I can access the files from the command line and from the desktop on the pi. I also set the file permissions to everyone (chmod 777) for the entire directory.
In MC, I go through the process to edit the main library to add the mount point (home/pi/music/test) via "Auto-import". It seems to go okay. I select ADD, and then Browse. I select the Test folder. But nothing happens after I click Finish. No files are imported. If I go through the steps again, the mount point I previously added are gone from the library list.
What am I doing wrong?
Sometimes I do get an error when selecting the folder about being unable to access it. I feel like this could still be a permissions issue. Who should the owner permissions be set for?
BryanC:
The owner permissions should usually be set to whomever is starting the MC process.
If that's you (and your user is pi), then make sure that your permissions are recursively set using chmod and chown:
--- Code: ---sudo chown -R pi:pi ~/music/
sudo chmod -R 775 ~/music/
--- End code ---
You may also have mounting permission errors depending on the filesystem and your specified mount options in /etc/fstab. Sometimes you need to umask permissions depending on the filesystem or allow non-root users to mount the filesystem using the "users" flag.
snafu:
I've spent an hour trying various ways to alter the permissions.
Why is it that I can easily access (Read, Write eXecute) all of the mounted files from the Rasbian OS just fine. Either from the desktop file explorer or the command line. But MC insists it can't access those very same folders. Does the MC service use another account?
FYI: I'm logged as root.
BryanC:
--- Quote from: snafu on June 25, 2019, 12:56:11 pm ---I've spent an hour trying various ways to alter the permissions.
Why is it that I can easily access (Read, Write eXecute) all of the mounted files from the Rasbian OS just fine. Either from the desktop file explorer or the command line. But MC insists it can't access those very same folders. Does the MC service use another account?
FYI: I'm logged as root.
--- End quote ---
First of all, logging in as root is not a good idea. My guess is that the files have the default $HOME permissions assigned to the pi user. Therefore you have superuser access to the filesystem, but perhaps not via applications that expect to be run unprivileged (like MC). It's also possible you are launching the pi user's instance of MC but no longer have rw ability on its settings directory. If you've been playing around with permissions as the root user, anything is possible really.
It's hard to diagnose without more information such as your mount and permission settings. Could you provide some more info like your mount command, ls -al output on your home directory and music folder, ps aux of your running MC process, preferably not logged in as the root user?
snafu:
Yup - as you suggested, turns out it was the $Home permissions messing things up. I mounted the share to a new folder off the root and it worked!
Thanks for your help ;D
Navigation
[0] Message Index
[#] Next page
Go to full version