PDA

View Full Version : One more time - slimserver not scanning



fava
2007-07-22, 05:17
Hello everybody,

Once again, a known problem, but even if others had this problem before, I did not found the solution to my situation yet:

Slimserver does not scan my music files.

I'm running Slimserver 6.5.1 on a NSLU2 device with SlugOS/BE and optware installed.
Slimserver was installed as shown in
http://www.nslu2-linux.org/wiki/Applications/SlimServer
The webinterface itself runs. Slimserver starts without any error-messages in /home/slimserver/slimserver.log:
root@slimserver:/home/slimserver# cat /home/slimserver/slimserver.log
070722 13:43:20 [Warning] this binary does not contain INNODB storage engine
070722 13:43:23 [Warning] this binary does not contain INNODB storage engine
2007-07-22 13:43:30.7964 Warning: Migrating from 6.3.x used with MySQL!

After an attempt to scan via web-interface, the following is added to the logfile:
Can't locate Slim/Utils/OSDetect.pm in @INC (@INC contains: /opt/share/ss65 /opt/lib/perl5/5.8.8/armv5b-linux /opt/lib/perl5/5.8.8 /opt/lib/perl5/site_perl/5.8.8/armv5b-linux /opt/lib/perl5/site_perl/5.8.8 /opt/lib/perl5/site_perl .) at /opt/share/ss65/scanner.pl line 23.
BEGIN failed--compilation aborted at /opt/share/ss65/scanner.pl line 23.
Can't locate Slim/Utils/OSDetect.pm in @INC (@INC contains: /opt/share/ss65 /opt/lib/perl5/5.8.8/armv5b-linux /opt/lib/perl5/5.8.8 /opt/lib/perl5/site_perl/5.8.8/armv5b-linux /opt/lib/perl5/site_perl/5.8.8 /opt/lib/perl5/site_perl .) at /opt/share/ss65/scanner.pl line 23.
BEGIN failed--compilation aborted at /opt/share/ss65/scanner.pl line 23.

Nevertheless,
root@slimserver:/home/slimserver# ls -l /opt/share/ss65/Slim/Utils/OSDetect.pm
-rw-r--r-- 1 root root 6547 Jan 22 18:54 /opt/share/ss65/Slim/Utils/OSDetect.pm
OSDetect.pm is in the path and at least readable.

the music-directory /home/ogg is owned by slimserver and has mod 775
root@slimserver:/home/ogg# ls -l
total 980
drwxrwxr-x 3 slimserver slimserver 4096 Jul 11 19:06 4_non_blondes
etc...

Does somebody see the direction to go?
Thank you for your valuable time and interest!

Fabio

fava
2007-07-22, 06:09
ok, very complex problem, very simple solution...

I had to adapt the first line of scanner.pl in the same way as slimserver.pl:
change #!/usr/bin/perl -w" to "#!/opt/bin/perl -w

know, it scanns (this is due to the optware - perl - path ....)

Fabio

bpa
2007-07-22, 06:17
Check the ownership of files. For example, the owner of scanner.pl should be the same as OSDetect.pm. I think root is the wrong owner.