Can't access network drive

Need help? Post your questions here.

Moderator: moderators

Can't access network drive

Postby Dide » Sun Feb 25, 2007 9:42 pm

Hello,

I'm using a network drive (NAS) for my files but I can't access it from Subsonic. (Can't find the music folders)

The NAS is a Lacie and you must use a account/password to enter the share.

I've seen the topic about the network drive and I know that the service of Tomcat can't see mounted network drive's (because it's has been bound to a user) so i'm using the UNC path.
But I don't know how to give the service of Tomcat access to the drive.

Is there a workaround to do this?

Regards,
Dide
Dide
 
Posts: 7
Joined: Sun Feb 25, 2007 9:31 pm

Postby mistaox » Tue Feb 27, 2007 8:32 pm

On what OS are you running Tomcat?

If its windows, simply Map it as a network drive on the Tomcat host machine, then point Subsonic to that location.
mistaox
 
Posts: 54
Joined: Sat Dec 09, 2006 7:36 am

Postby Dide » Tue Feb 27, 2007 8:59 pm

Thanks for your reply!

I'm running the windows version.

A mapping to the NAS won't work.
I've tryed that already and subsonic still comes with the message "No music folder".

Maybe because tomcat is running as a service and the mapping is linked to the actual logged-in user.

It works when I use a UNC path to a network drive without any security settings.
Dide
 
Posts: 7
Joined: Sun Feb 25, 2007 9:31 pm

Postby mistaox » Wed Feb 28, 2007 3:02 am

you are right it doesn't work. please ignore my bad advice

this should be submitted as a feature request.

otherwise try creating 2 user accts on your NAS, one without a password but with Read only rights and the other for admin use...
mistaox
 
Posts: 54
Joined: Sat Dec 09, 2006 7:36 am

Postby Fresh0razoR » Sat Apr 02, 2011 10:57 am

Hi!

I have the same problem. But unfortunately I am a non-expert user. But I know how to create a user on my MyBook-Drive. What user should it get? I mean what name and password? I don't know which subsonic uses...
Or is it the same I use inside of subsonic to login to it?

THanks!!
Fresh
Fresh0razoR
 
Posts: 2
Joined: Sat Apr 02, 2011 10:55 am

Postby GJ51 » Sat Apr 02, 2011 3:24 pm

Give the Subsonic service log on rights needd to access the drive.

READ: http://monroeworld.com/android/subsonic/
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Can't access network drive

Postby mainadungo » Thu Mar 01, 2012 5:13 pm

This guide worked for me- now Subsonic can access the NAS using the full path (\\server\share) but still not using mapped drive letters.

Any ideas?

The reason I care is because I've been using a local drive called "M" for years- all of my ratings, play counts, everything are based on that location. So if I don't use the exact same media folder path, all of that is lost.
mainadungo
 
Posts: 30
Joined: Thu Nov 06, 2008 6:10 pm

Re: Can't access network drive

Postby GJ51 » Thu Mar 01, 2012 5:51 pm

Sorry, as yet I've not seen any posts that indicate there's any way to do this. I tried getting it to work a long time ago until I found out how to get the share name working.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Can't access network drive

Postby bushman4 » Thu Mar 01, 2012 6:27 pm

Don't bother trying to get mapped drives to work, just change your music_file_info table to reflect the new path...

NB: Take a backup of your subsonic directory before you do this!!

1. Go to http://your.ip.address:YourPort/YourContextPath/db.view
2. Enter this command:
Code: Select all
Select * from music_file_info

Note that the path field contains your music folders, all starting with "m:\".

3. Assuming that you want to replace "m:\" with "\\MyNAS\MyShare\", enter the following command:
Code: Select all
update music_file_info set PATH=REPLACE(PATH,'m:\','\\MyNAS\MyShare\')


Depending on how big your collection is, this could take a while! Give it 10 minutes or so, just to be sure. But there is NO visible indication that it is done!!

4. Now, repeat step 2 by entering the same command again:
Code: Select all
Select * from music_file_info

Note that the path has now changed.

5. Change you music folder settings in Subsonic to access the new share.

HTH,

Glenn
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA


Return to Help

Who is online

Users browsing this forum: No registered users and 26 guests