PDA

View Full Version : Squeezecenter not scanning my mp3



pcapelo
2008-11-19, 14:26
I have a small installation That Im trying to make it work, this are the specs:

- Fit-pc slim (AMD geode 500Mhz, 512 RAM, 60gb HD);
-Freenas embedded version 0.686.4 (revision 3374);
-FreeBSD 6.2-RELEASE-p12 (revision 199506);
-Slimnas version v1.1.2;
-SqueezeCenter Version: 7.2 - 22900 @ Tue Aug 26 10:59:13 PDT 2008 - freebsd - EN - utf8;
-Perl Version: 5.8.8 i386-freebsd-64int;
-MySQL Version: 5.0.33.

Everything seems to be working fine but the music scan. Its actually scanning (or trying to) but its returning 0 songs (I have over 1000 songs there).

<b>Here how i setup the file structure of my installation:</b>

General (mount point)
Mp3 (mp3 folder)
Subfolders and mp3 files


Slimnas (installation folder)
Slimnas installation files
Etc
Squeezecenter
Usr
Var



<b>I setup the squeezecenter to look for music in:</b> “/mnt/general/mp3”

<b>When I ask to do a full scan (clear library and rescan everything)

This is the feedback I get:</b>

Directory Scan Complete 00:00:04

Playlist Scan Complete 00:00:05

Database Optimize Complete 00:00:01

SqueezeCenter has finished scanning your music collection. Total Time: 00:00:10


<b>And this is what the scanner log file looks like:</b>

[08-11-19 15:28:41.9034] Slim::Utils::Misc::msg (1329) Warning: [15:28:41.8986] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-11-19 15:28:50.8895] Slim::Schema::init (151) Warning: Creating new database - empty database or database from 6.3.x found
[08-11-19 15:29:05.3253] Slim::Utils::PluginManager::enablePlugins (374) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: [-5]
[08-11-19 15:32:15.8118] Slim::Utils::Misc::msg (1329) Warning: [15:32:15.8077] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-11-19 15:32:49.4270] Slim::Utils::Misc::msg (1329) Warning: [15:32:49.4226] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-11-19 15:33:04.2186] Slim::Utils::PluginManager::enablePlugins (374) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: [-5]
[08-11-19 15:33:05.6037] main::checkDataSource (873) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 15:33:05.7796] Slim::Networking::mDNS::startAdvertising (110) Error: Couldn't find mDNSResponderPosix binary! Aborting!
[08-11-19 15:34:22.0142] Slim::Utils::Misc::msg (1329) Warning: [15:34:22.0120] Attempt to free unreferenced scalar: SV 0xa6c83d4.
[08-11-19 15:36:23.4958] Slim::Utils::PluginManager::enablePlugins (374) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: [-5]
[08-11-19 15:36:24.9885] main::checkDataSource (873) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 15:37:42.5882] main::checkDataSource (873) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 15:48:51.3614] Slim::Utils::Misc::msg (1329) Warning: [15:48:51.3590] Attempt to free unreferenced scalar: SV 0xb02e520.
[08-11-19 15:50:31.6593] Slim::Utils::PluginManager::enablePlugins (374) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: [-5]
[08-11-19 15:50:33.1101] main::checkDataSource (873) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 16:28:50.3774] Slim::Utils::Misc::msg (1329) Warning: [16:28:50.3750] Attempt to free unreferenced scalar: SV 0xaf873e8.
[08-11-19 16:30:30.1678] Slim::Utils::PluginManager::enablePlugins (374) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: [-5]
[08-11-19 16:30:31.9934] main::checkDataSource (873) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:12:45.0123] Slim::Utils::Misc::msg (1329) Warning: [17:12:45.0092] Attempt to free unreferenced scalar: SV 0xab367e8.
[08-11-19 17:18:14.8631] Slim::Utils::Misc::msg (1356) Warning: [17:18:14.8446] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 128.
[08-11-19 17:18:38.7937] Slim::Utils::PluginManager::enablePlugins (408) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:18:41.1475] main::checkDataSource (887) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:21:58.0055] Slim::Utils::Misc::msg (1356) Warning: [17:21:58.0034] Attempt to free unreferenced scalar: SV 0xa8ee7e8.
[08-11-19 17:23:29.4435] Slim::Utils::Misc::msg (1398) Warning: [17:23:29.4392] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 127.
[08-11-19 17:23:57.8153] Slim::Utils::PluginManager::enablePlugins (406) Couldn't load Slim::Plugin::MyRadio::Plugin. Error: Plugin is incompatible with this version of SqueezeCenter. Please update.
[08-11-19 17:23:57.9218] Slim::Utils::PluginManager::enablePlugins (406) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:23:59.2883] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:26:38.8194] Slim::Utils::Misc::msg (1398) Warning: [17:26:38.8173] Attempt to free unreferenced scalar: SV 0xab32154.
[08-11-19 17:27:03.6325] Slim::Utils::Misc::msg (1398) Warning: [17:27:03.6277] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 127.
[08-11-19 17:27:32.1679] Slim::Utils::PluginManager::enablePlugins (406) Couldn't load Slim::Plugin::MyRadio::Plugin. Error: Plugin is incompatible with this version of SqueezeCenter. Please update.
[08-11-19 17:27:32.3103] Slim::Utils::PluginManager::enablePlugins (406) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:27:34.6410] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:27:46.7516] Slim::Utils::Misc::msg (1398) Warning: [17:27:46.7495] Attempt to free unreferenced scalar: SV 0xaadfb28.
[08-11-19 17:28:13.2996] Slim::Utils::Misc::msg (1398) Warning: [17:28:13.2895] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 127.
[08-11-19 17:28:41.6398] Slim::Utils::PluginManager::enablePlugins (411) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:28:43.1808] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:31:16.6060] Slim::Utils::Misc::msg (1398) Warning: [17:31:16.6039] Attempt to free unreferenced scalar: SV 0xab753f8.
[08-11-19 17:31:43.4390] Slim::Utils::Misc::msg (1398) Warning: [17:31:43.4326] Use of uninitialized value in split at /mnt/general/slimnas/squeezecenter/Slim/Utils/OSDetect.pm line 127.
[08-11-19 17:32:12.0308] Slim::Utils::PluginManager::enablePlugins (411) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:32:13.5547] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 17:32:40.6354] Slim::Utils::Misc::msg (1398) Warning: [17:32:40.6334] Attempt to free unreferenced scalar: SV 0xabae02c.
[08-11-19 17:34:23.9598] Slim::Utils::PluginManager::enablePlugins (411) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 17:34:25.7695] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-11-19 18:57:55.3186] Slim::Utils::PluginManager::enablePlugins (411) Couldn't load Slim::Plugin::PreventStandby::Plugin. Error: Plugin is incompatible with your platform.
[08-11-19 18:57:57.1833] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.


I have no ideia about whats going on and I tought that maybe you would be able to give me a hand.

If you can and need more information about the system, please let me know.

Thank you in advance and any help will be really appreciated

Cheers

PC

radish
2008-11-19, 21:18
I see a lot of case differences in your post (Mp3 vs mp3, General vs general) etc - make sure you use consistent case everywhere. It's also worth checking file permissions on the mp3 directory and everything below it, make sure all the files and dirs are world readable, as well as the directories having world-execute.

mherger
2008-11-20, 06:14
Did you check permissions as radish suggested? What about the scanner.log file?

pcapelo
2008-11-20, 07:50
I see a lot of case differences in your post (Mp3 vs mp3, General vs general) etc - make sure you use consistent case everywhere. It's also worth checking file permissions on the mp3 directory and everything below it, make sure all the files and dirs are world readable, as well as the directories having world-execute.

hello Radish,

Thank you for your email. the case differences was caused by my email software ( i first wrote this question on outlook before post it here. I double checked my nomenclature just in case. Thank you anyway to point that out.

You were right. My problem was with file permissions. I change the permissions and now I can scan my files.

Question: as a newbie I have no idea how can I avoid this problem in the future uploads

Anyway, Thank you again.

PC

pcapelo
2008-11-20, 08:09
Did you check permissions as radish suggested? What about the scanner.log file?

Hello Michael,

The log file was just in case there was something there that i wasn't picking up. :)

thank you again

pcapelo
2008-11-20, 09:18
Ok, i get the permissions issue.

My question is how should I setup the permission in order to have a user/(s) uploading music and still allow SC to scan it???

what kind of permissions should I have for the mp3 folder, subfolders and files??

how do I setup those permissions so the next uploads wont screw whit it???

Any chmod example will be greatly appreciated

thank you all again

PC

snarlydwarf
2008-11-20, 09:42
My question is how should I setup the permission in order to have a user/(s) uploading music and still allow SC to scan it???

Depends on how you are uploading...

What I do: I use Samba on the music server so windows clients can drop stuff there. I assume this is what you are doing.

The trick, then, is to convince Samba to be nice: in my /etc/samba/smb.conf I have the following:



# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
create mask = 0755

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
directory mask = 0755


This is under the [homes] section, since the music library is actually a symbolic link off my home directory on the server.

What this does is make it so that every file/directory I upload is owned by me, but set to be world-readable by default. ("World" meaning "those with accounts on the machine", not the whole world.)

Since Squeezecenter has its own userid, this means it can read my files just fine, and, it can't write to them (since the '5' strips writeabilty flags, but passes through read and execute).

Technically you could use 644 for files and 755 for dirs, but I am lazy and this works.

There are more complex methods, using Unix Groups, for example, but, meh, thats too much work: if someone compromises my server, stealing my music is the least of my concerns.

pcapelo
2008-11-20, 12:45
hi snarlydwarf,

I am actually using FTP (fail to mention) and I using that because I have the SC in a different network then my personal computer. I also have some port fowarding setup so i can publish my mp3s from anywhere i want.

My problem is that I dont know how to setup the permissions properly, i dont know what kind of permissions to set so squeezecenter can go through the files.

cheers
PC

mherger
2008-11-21, 01:40
> My problem is that I dont know how to setup the permissions properly, i
> dont know what kind of permissions to set so squeezecenter can go
> through the files.

You probably best ask in the FreeNAS forum.

--

Michael

markwjames
2008-11-21, 03:53
been trying to install SqueezeCenter on a SUSE 11 installation
kept getting a myriad of obscure messages which pointed to permission denied
unitialized hash value
slim::utils::Misc::msg (1398)

thought it was a MySQL problem but after reading this realised it was in fact a file permission problem within Linux

setting the permissions on all music files to 755 (user & group can read/write) cleared the fault (Eventually, discovered this after some 6 days of head banging)

Cheers Logitech for such transparent and meaning full error messages....
Its not helped by zero response to email sent 5 days ago.

Its a shame really as the product and idea is brilliant. once installed can't recommend it highly enough, have jsut gone and bought a boom box and another duet controller + hifi box

The installation worked first time on Windows XP, but failed abysmally on SUSE