View Full Version : Scanner error

2008-05-24, 07:44
I have recently begun getting a scanner error which does not seem to be related to the My SQL database access or virus scanner blocking. The scan fails complete in both full scan and rescan for changes modes. This is the log file of the error:

[08-05-24 07:12:25.2517] main::main (211) Error: Failed when running main scan: [Can't call method "name" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1863, <MMMDATA> chunk 4957.
[08-05-24 07:12:25.2526] main::main (212) Error: Skipping post-process & Not updating lastRescanTime!

Any suggestions? This is the 7.0.1 release using MusicIP. The scan results show that the MusicIP import does not complete either:

Directory Scan (1 of 1) Complete 00:00:26
MusicIP Import (4950 of 24973) Running 00:37:54
F:\Music\Christmas\Joe Weed - Prairie Christmas\03 - Hark the Herald Angels Sing.flac
SqueezeCenter has finished scanning your music collection.00:38:20

The symptoms are that the cover art does not get displayed in album or new music views only when a single album is selected, and the MusicIP MM does not get displayed so I can not run mixes from SqueezeCenter.

2008-05-24, 08:58
I forgot to mention that I am running Windows XP SP2.

2008-05-24, 09:16
Another point, even though MusicIP has 24,973 songs, the autoscanner in SqueezeCenter scans up to the 5000 point and then restarts. It repeats this process continuously with about a 2 minute pause between scans even though the MusicIP reload interval is 3600 (1 hour).

2008-05-26, 06:22
I had a similar set of errors running XP SP2 with 500 MB memory. Adding 2 GB eliminated the problem.

2008-05-29, 07:38
I have 3GB memory... so it must be something else. I am planning on switching back to 6.5.4 to see if that resolves the problem this weekend.

2008-05-29, 08:08
I had a similar problem (on a win2k server). The issue was that a Symantec anti-virus product had been installed/removed in the past. It doesn't completely uninstall and is now "protecting" you from some evil bit-pattern it found in your db. I tried all the "completely remove Symantec" utils out there. Useless. Had to reformat/re-install - and no more problems.
Short term, you might think about installing a virtual machine (both microsoft and vmware have free ones), install SC there, with "network" access to your music, and see how that works...
Oh - and I'm pretty sure there's a pre-built SC-on-Linux that you can just download and run in the VmWare 'Player', which is free.

2008-05-29, 10:41
That could be it... I did have a Symantec anti-virus which I un-installed.

2008-06-14, 17:32
Well it turned out that all I had to do is set the logging level for the MusicIP import to debug (advanced tab, select logging)and review the scanner log. There was one album which was causing the failure. The import was the last file before the error occurred in the log. By removing that album, the entire scan completed successfully, and everything is working now. Whew!

2008-07-22, 10:58
I have a similar problem with the scanner:

[08-07-22 18:49:14.1423] main::main (219) Error: Failed when running main scan: [Carp::Clan::__ANON__(): Error executing 'UPDATE tracks SET replay_gain = -4.36 dB, replay_peak = 1.017166 WHERE ( id = ? )': DBD::mysql::st execute failed: called with 3 bind variables when 1 are needed at C:\PROGRA~1\SQUEEZ~1\server\CPAN/DBIx/Class/Storage/DBI.pm line 771.

SqueezeCenter Version: 7.1 - 21927 @ Sun Jul 20 01:03:35 PDT 2008 - Windows XP - EN - cp1252

This is running a MusicIP import "Look for New and Changed Music". Seems the "Clear and Rescan Everything" doesnt have this problem.

When I identify and delete the offending file, and re-run the scan, another is found. The files is has found so far are all .ogg files...