On 03/07/06 16:10:15, phazon wrote:

Robin Bowes Wrote:
> Ok, I suggest you try this:
>
> 1. stop slimserver
> 2. Take a copy of your prefs file
> 3. Edit your prefs file and remove the lines beginning with "db",
eg.:
>
> dbpassword:
> dbsource:
> dbusername:
>
> 4. Restart slimserver.
>
> This should cause slimserver to startup its own version of MySQL.
>
> R.

Right I have done that. I've also mounted the NTFS folder that
contains
the music folders & tracks to /mnt/Music using

-sudo mount --bind /media/hdd1/"My Documents/My Music" /mnt/Music-

I've then changed the music folder in Slimserver and restarted. Now
when I go to the log I get

-2006-07-03 16:01:15.0485 DBI
connect('mysql_socket=/var/cache/slimserver/slimserver- mysql.sock','',...)
failed: Can't connect to local MySQL server through socket
'/var/cache/slimserver/slimserver-mysql.sock' (2) at
/usr/share/perl5/Slim/Utils/MySQLHelper.pm line 324
2006-07-03 16:01:43.7892 opendir failed: /mnt/Music: Permission denied

1. What user are you running slimserver as? (and how are you starting, from what user?)

2. ls -ld /mnt/Music will tell you whos owns this dir.



Stinga Wrote:
> No, that error you was due to it not being able to connect to mysql.
> nothing to do with ntfs disks.
> If you can see the ntfs disk from linux then slimserver can see it.
> What happens if you do...
>
> netstat -anp|grep mysql
>
> I would expect there to be some ports showing.

Running that gives....

[EMAIL PROTECTED]:~$ netstat -anp|grep mysql
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
unix  2      [ ACC ]     STREAM     LISTENING     79380    -

/var/cache/slimserver/slimserver-mysql.sock
unix  2      [ ACC ]     STREAM     LISTENING     12513    -

/var/run/mysqld/mysqld.sock


Sorry, I should have said you need to do the above command as root.

It seems you have two different problems. Permissions and connecting to mysql.

slimserver needs to run as a user that can access the files, that is what the permissions problem is and should be easy to solve, at the very worst chmod o+r -R /mnt/Music should make things work (maybe not recommended though)

--
'ooroo

stinga...(:)-)
---------------------------------------------------
Email: [EMAIL PROTECTED]      o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should,     >  (O)  X<  ~  Fish!!
use the hammer. If it moves and  `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to