PDA

View Full Version : SqueezeCenter 7.2.1 scanner finds nothing



John Stimson
2008-10-16, 14:16
I finally got SqueezeCenter 7.2.1 working, and the SqueezeCenter web interface comes up fine. I set the proper music directory and playlist directory.

The initial scan found nothing. Zero artists, zero albums, zero tracks. In fact, the status screen indicates "Progress information from the previous scan is not available."

In the log settings, I set the scanner and tag importer to "debug" level.

When I go into the SC settings page and select "clear and rescan" and click "rescan", I go to a page that says "scan in progress". Then when I re-load that page, it indicates that the scan is done, and instead has a link to check the results of the last scan. Only a few seconds elapse in between, not enough time to scan my library.

The only log entries that are generated are:

[08-10-16 13:51:14.1075] Slim::Schema::init (161) Warning: Creating new database - empty database or database from 6.3.x found
[08-10-16 13:51:26.8014] main::checkDataSource (904) Warning: Schema updated or no tracks in the database, initiating scan.
[08-10-16 13:51:31.9636] Slim::Schema::wipeCaches (1458) Wiped all in-memory caches.
And nothing gets added to my library.

However, when I browse by music folder and click "play" on a folder, then everything in that folder goes on the playlist, and the tracks appear (complete with tags) in my music library. I also a log entry for each song, telling me that it is being added to the database.

Has anyone else encountered this problem?

mherger
2008-10-16, 23:16
> I finally got SqueezeCenter 7.2.1 working, and the SqueezeCenter web
> interface comes up fine.

Check permissions on the music folder.

Michael

John Stimson
2008-10-16, 23:27
All owned by john:users, permissions: readable by owner, group, world, directories are executable by owner, group, world.

SqueezeCenter can read/access the files, because when I add them to the playlist using "Browse Music Folder", they
a) play
b) are added to the database

mherger
2008-10-17, 00:16
> SqueezeCenter can read/access the files, because when I add them to the
> playlist using "Browse Music Folder", they
> a) play
> b) are added to the database

Did you ever run the initial setup wizard? What happens if you rund the scanner manually:

scanner.pl --debug scan=debug,scan.scanner=debug,scan.info=debug --wipe /path/to/your/music

--

Michael

John Stimson
2008-10-17, 00:32
I get:


# ./scanner.pl --user slim --group slim --logfile /home/slimserver/slimserver.log --debug scan=debug,scanner=debug,scan.info=debug --wipe /home/john/music.lib/Originals
The following CPAN modules were found but cannot work with SqueezeCenter:
GD (loaded 2.35, need 2.35)

To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of SqueezeCenter which includes all required CPAN modules.

That's interesting. Before, slimserver.pl asked for GD. When I ran the slim module builder to build GD, slimserver.pl still asked for GD. When I ran cpan to install GD, slimserver.pl was happy. For some reason, scanner.pl is not happy with it. I'll go take GD out of the /usr/local/slimserver/CPAN directory. That has worked for the other modules slimserver.pl had version problems with.

It works now. Neat.

SlimPvC
2008-10-26, 11:51
Yes, I have the same problem.
Can access all music when browsing folders, but scan does not find the artists (so search for artists always return 'empty'.

Total Tracks: 58,036
Total Albums: 9,395
Total Artists: 45
Total Genres: 120
Total Playing Time: 5079:13:35

SqueezeCenter Version: 7.2.1 - 23629 @ Sun Oct 26 02:01:51 PDT 2008 - Windows XP - EN - cp1252

rmcubed
2008-11-21, 17:47
I get:



That's interesting. Before, slimserver.pl asked for GD. When I ran the slim module builder to build GD, slimserver.pl still asked for GD. When I ran cpan to install GD, slimserver.pl was happy. For some reason, scanner.pl is not happy with it. I'll go take GD out of the /usr/local/slimserver/CPAN directory. That has worked for the other modules slimserver.pl had version problems with.

It works now. Neat.

Absolutely! I was doing my head in over this one.

Timbo22
2008-11-22, 03:23
Do you guys find start up okay with 7.2.1?
Tim.

NaterGator
2009-01-14, 21:54
I was having a very similar problem described. Started with v 7.3.0.

I ran the scanner from the command line and found the following:


[09-01-14 23:46:25.3716] Slim::Schema::_postCheckAttributes (2350) -- Searching for an album with:
[09-01-14 23:46:25.3731] main::main (229) Error: Failed when running main scan: [Undefined subroutine &Data::Dump::dump called at /home/nate/squeezesrc/squeezecenter-7.3.1-noCPAN/Slim/Schema.pm line 2354.]
[09-01-14 23:46:25.3734] main::main (230) Error: Skipping post-process & Not updating lastRescanTime!
[09-01-14 23:46:25.3777] Slim::Schema::forceCommit (1490) Syncing to the database.


Commenting out line 2354 of Schema.pm fixed the problem (despite tenaciously trying to use the CPAN shell to test/check/remake/install Data::Dump). I'll admit it's been a while since I've worked with PERL so I don't know a better fix, and this has been a problem stopping me from using my SqueezeBox for a few weeks now.


Glad to have it fixed but I'd love to know what I'm doing wrong getting perl to find Data::Dump::dump correctly.

mherger
2009-01-15, 01:12
> I was having a very similar problem described. Started with v 7.3.0.

> [09-01-14 23:46:25.3731] main::main (229) Error: Failed when running
> main scan: [Undefined subroutine &Data::Dump::dump called at
> /home/nate/squeezesrc/squeezecenter-7.3.1-noCPAN/Slim/Schema.pm line
> 2354.]

You should only ever hit this code if you've set database.info=debug.
Unset this and you should be fine.

I still wonder why it would run at all if that module couldn't be found
though.

Michael