Page 1 of 1

no music found on nfs share

PostPosted: Thu Mar 29, 2018 1:25 pm
by fr0sh
hi.

i do have a synology nas with my music library.
also i have a new raspberry pi on which i installed subsonic.

via the admin page i told subsonic to scan my media files:
NAME: A
FOLDER: /media/subsonic/A

this folder points to a nfs share on my nas:
mount -t nfs -o soft 192.168.178.30:/volume1/Musik/A/ /media/subsonic/A/

i do have the same user on my nas and on my pi. also this user is allowed to read-only my music library.

when scanning my media files in subsonic it scans the folder but finds no media...
what could be the problem here?
can i give more input?

thanks a lot

Re: no music found on nfs share

PostPosted: Thu Mar 29, 2018 4:31 pm
by toolman
I don't know anything about the Pi, but I know that the account that's running the Subsonic Process on your Pi should have privileges on your nas.
It has to have total acces to the mediafiles ( Read and Write) in order to edit tags or to create Cover art etc.
You might also have a look at http://www.subsonic.org/pages/installation.jsp#debian

Re: no music found on nfs share

PostPosted: Thu Apr 05, 2018 2:05 pm
by fr0sh
On my NAS there is a user "subsonic" who hast read/write access to my music folders (but i think read should be enough).
Also I do have a user "subsonic" on my RasPi.

When scanning the media folder in the web interface, there is no error message.
The log states this:

Code: Select all
[2018-04-05 15:52:47,573] INFO MediaScannerService - Starting to scan media library.
[2018-04-05 15:52:48,610] INFO MediaScannerService - Scanned media library with 55 entries.
[2018-04-05 15:52:48,610] INFO MediaScannerService - Marking non-present files.
[2018-04-05 15:52:48,613] INFO MediaScannerService - Marking non-present artists.
[2018-04-05 15:52:48,615] INFO MediaScannerService - Marking non-present albums.
[2018-04-05 15:52:48,624] INFO MediaScannerService - Completed media library scan.
[2018-04-05 15:52:48,718] INFO PlaylistService - Starting playlist import.
[2018-04-05 15:52:48,719] INFO PlaylistService - Completed playlist import.


Why is Subsonic not scanning "inside" my media folders?
It seems there is no transfer between the RasPi and the NAS.

Is there any way to test it?
I'd be really thankful for any further input.

/edit:

my user on the RasPi:
subsonic:x:1001:1001:subsonic,,,:/home/subsonic:/bin/bash

my media folder:
/media/subsonic/ (incl. subfolders)

Might this be the problem? Should the media folder(s) be inside the user's home dir?

Re: no music found on nfs share

PostPosted: Thu Apr 05, 2018 3:07 pm
by toolman
Is the user "subsonic" on the Pi running the process?
Did you give user "subsonic" on both machines identical passwords?
If Subsonic doesn't scan inside your mediafolders it usually is a problem with privileges assigned to the user that's running the Subsonic process.
You could test this by logging on to the Pi as user "Subsonic" and than try to acces some of the folders you defined as mediafolders in Subsonic.
If everything is configured correct you should be able to browse through all the mediafodlers on the nas. If you can do that, you might have a look at which account is
running the Subsonic process.
If you can't acces the folders, it means you have not sufficient privleges to access them and therefor Subsonic doesn't scan inside the folders.

Re: no music found on nfs share

PostPosted: Fri Apr 06, 2018 2:37 pm
by fr0sh
I think this is the way to check, if the user is running the process, right?

ps aux | grep subsonic
subsonic 512 0.7 10.8 293284 102544 ? Sl 13:52 1:08 java -Xmx150m -Dsubsonic.home=/var/subsonic -Dsubsonic.host=0.0.0.0 -Dsubsonic.port=4040 -Dsubsonic.httpsPort=0 -Dsubsonic.contextPath=/ -Dsubsonic.db= -Dsubsonic.defaultMusicFolder=/var/music -Dsubsonic.defaultPodcastFolder=/var/music/Podcast -Dsubsonic.defaultPlaylistFolder=/var/playlists -Djava.awt.headless=true -verbose:gc -jar subsonic-booter-jar-with-dependencies.jar


Both subsonic users do have the same password, yes.

With the default user (pi) on my RasPi I can browse the files but not with the subsonic user... :(
Where could be the failure? Or how can I check it? (I am totally new to linux btw...)

Re: no music found on nfs share

PostPosted: Fri Apr 06, 2018 6:10 pm
by toolman
If you can't browse the files with the subsonic user you have to change the permissions on your nas.
Like I said in the beginning I don't know anything about the Pi or Linux.
Perhaps reading https://www.linux.com/learn/how-manage-file-and-folder-permissions-linux might give you a clue how to change things.

Re: no music found on nfs share

PostPosted: Mon Apr 09, 2018 10:01 am
by fr0sh
I got it working now.

It was a bit hidden on my NAS. But I found it under extended NFS permissions on the shared folder. (Thanks toolman!)
The trick is to activate to option "assign all users to admin".

Now I can browse my music via the subsonic webpage.
The only thing I'm struggling with is that my Sonos system (with the subsonic feature) thinks it cannot browse my media...
Do you have any idea here? :)

Thanks

Re: no music found on nfs share

PostPosted: Mon Apr 09, 2018 11:30 am
by toolman
Sorry, can't help you there, but I have read that other users have problems with Sonos too.
Perhaps you might try posting a new question called "Trouble with Sonos" or something similar.
This topic is about the same problem with Sonos: viewtopic.php?f=2&t=17881&p=75730&hilit=Sonos#p75730
Perhaps it gives you a clue on how to solve it.