PDA

View Full Version : Scan errors after 7.2 upgrade



mr-b
2008-09-02, 10:13
With 7.2 on Vista running as a service, I keep seeing the scanner abort or hang, although the scan status is rather confusing saying it's still running (with the time count increasing every few seconds) and also finished ...

Scan Status:

Directory Scan (4041 of 23397) Running 01:05:01
D:\blah blah.flac
SqueezeCenter has finished scanning your music collection. Total Time: 01:05:01

Scanner.log (set to debug mode):

[08-09-02 13:39:46.9870] main::main (219) Error: Failed when running main scan: [usage: $io->seek(POS, WHENCE) at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Formats/Playlists.pm line 99]
[08-09-02 13:39:47.0155] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!

This worked in 7.0. Any ideas?

ghan
2008-09-03, 00:40
I got the same strange behaviour when i did my first scan (clear library and rescan everything) after the upgrade to 7.2. Directory Scan would stop at 700 of some 34000 tracks, and after a few minutes says it's finished but the time keeps ticking.

After turning on debug logging i found the scanner had a problem with 1 particular flac/cue-file pair. The files have been there always and they didn't have a problem getting scanned on 7.0.1 and 7.1 versions, so something must have changed in handling this type of file?

Anyway, moving them out of the scanned folder solved it. (That is, it's plodding along the rest of the tracks right now.)

I suggest you check if the D:\blah blah.flac file is the problem :-)

Moxilator
2008-09-03, 06:08
I don't think mine has completed a scan since I installed 7.2. It aborts after a couple of minutes each time. This morning, it added a few tracks om new albums that it didn't show after two scans last night, but there are still some not showing. The only thing different this morning is that I found a .m4b file and moved it to another location. This is a file that had been in the Music folder since before I first got my Squeezebox (two months ago), so I don't know why it would cause problems now, and I'm not even sure it did.

Here are the results in the scan log since installing 7.2, showing the same two errors each time I've tried to scan:

-----------------------------------------
[08-08-31 15:21:07.7039] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155.
]
[08-08-31 15:21:07.7291] main::main (220) Error: Skipping post-process & Not updating lastRescanTime
[08-09-01 09:01:57.3198] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155.
[08-09-01 09:01:57.3827] main::main (220) Error: Skipping post-process & Not updating lastRescanTime
[08-09-01 14:16:18.1931] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155.
[08-09-01 14:16:18.3741] main::main (220) Error: Skipping post-process & Not updating lastRescanTime
[08-09-01 14:35:20.4431] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ]
[08-09-01 14:35:20.5025] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
[08-09-02 09:02:34.8025] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ] [08-09-02 09:02:34.8800] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
[08-09-02 22:57:01.8181] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ]
[08-09-02 22:57:01.8888] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
[08-09-02 23:13:15.9682] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ]
[08-09-02 23:13:16.0060] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
[08-09-03 08:25:17.4900] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ]
[08-09-03 08:25:17.5542] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
[08-09-03 08:52:14.7712] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155. ]
[08-09-03 08:52:14.7818] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!
-----------------------------------------

I have *NO* idea what these errors mean. Any advice?

Moxilator
2008-09-03, 09:00
I found another .m4b file lurking amongst the music and moved it elsewhere. Finally got what I hope is a complete scan--at least, it is showing all the tracks it missed last night and this morning.

This was another file that had been there for ages. 7.2 seems to be much pickier than earlier versions.

mr-b
2008-09-03, 10:43
After turning on debug logging i found the scanner had a problem with 1 particular flac/cue-file pair. The files have been there always and they didn't have a problem getting scanned on 7.0.1 and 7.1 versions, so something must have changed in handling this type of file?

Anyway, moving them out of the scanned folder solved it. (That is, it's plodding along the rest of the tracks right now.)

I suggest you check if the D:\blah blah.flac file is the problem :-)
It turned I had a problematic flac/cue file pair too! I moved them out and the scan now completes. :-)

GCall
2008-09-03, 14:52
I'm getting the same problem.

If I do a clear and rescan everything seems to complete on the initial directory scan stage but then stops a few hundred records into the MusicIP import.

I then did a rescan for new music and it got stuck part way through the directory rescan on a WMA file. On removing that the directory scan completed and continued to import all MusicIP data and complete in full.

kanoot
2008-09-04, 10:20
Im having the same problems here on a Mac running Leopard. Oddly, I can't find an offending file in the scanner logs. I can do a "clear library and rescan" just fine, but every attempt at a "new and changed music" scan fails.

GCall
2008-09-06, 08:33
I couldn't see the file in the log either but from memory I thin I then looked at the "details of previous scan" link from settings and it was mentioned there as the last file scanned.

kanoot
2008-09-06, 09:44
OK - wow this is a big FAIL. This is not going to work.

I found the offending file and its a .mov file. And it won't go away because I scan my itunes directory and I want to watch movies on the plane - via itunes.

Does anyone know if a bug has been filed against this problem yet? This needs to revert to pre 7.2 functionality.

GeeJay
2008-09-06, 14:50
I'm having the same issues immediately after my upgrade. A full rescan makes it through the directory, but hangs up during MusicIP import. Surely someone knows what's going on here?

kanoot
2008-09-06, 16:10
The only thing I found on bugzilla was this:

http://bugs.slimdevices.com/show_bug.cgi?id=9359

But not being familiar enough with the code, I'm not quite sure this is the same problem.

sxr71
2008-09-07, 11:44
The only thing I found on bugzilla was this:

http://bugs.slimdevices.com/show_bug.cgi?id=9359

But not being familiar enough with the code, I'm not quite sure this is the same problem.

I don't know either and in fact I don't even know how to apply the patch.My error code revolves around a musicbrainz ID being too long for the field.

GeeJay
2008-09-07, 12:32
I can't replicate my original problem, which was similar to some others whereby the scan would stop in the middle of scanning the directory.

Now, it doesn't even get going:

[08-09-07 14:26:56.8767] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<C:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155.
]
[08-09-07 14:26:56.8773] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!

This happens when I rescan for new and changed music only. I was having somewhat similar problems when I did a complete rescan, but I was able to get it done after closing MusicIP. Closing MusicIP did nothing to improve the situation during a "new and changed" rescan.

ModelCitizen
2008-09-07, 13:09
Sound a bit dubious to me, but what happens if you set SlimCenter to ignore mov,cue,aif etc files?

Settings > Advanced > File Types

MC

GeeJay
2008-09-07, 18:19
Ok, here is something that may point to the problem, at least for me. I just tried to scan again, and the the scanner got stuck on a track to which I just added artwork, using mp3tag (which I've literally used a thousand times before). Yesterday, it was stuck on a different track, but another one that I had just added artwork.

BTW, Model Citizen, I have none of the file types you mention. I only have wma, mp3, flac, and m4p (I may have some m4a's, but it doesn't seem to be hanging on any of those). I had already disabled m4p a few weeks ago to fix another issue I was having.

UPDATE: Finally got it to work. First, I closed mp3tag, just in case it was holding a file open. That's never been a problem before, but figured that may have been causing it since the rescan was hanging up on files I had just modified with that program.

Next rescan, SC was getting hung up on a wma file that had caused problems right after I upgraded to 7.2. It was one of about a half-dozen wma's with DRM that I bought some time ago. Never caused problems before, but since I had other versions of these tracks I just deleted them. Next rescan worked fine.

Now I'm curious as to what changed in 7.2's scanner to cause all these problems. Hopefully, I now know enough to prevent the problem from occurring again.

kanoot
2008-09-08, 14:21
I have opened a bug:

http://bugs.slimdevices.com/show_bug.cgi?id=9432

Despite some folks are fixing their problems by deleting files, I still think its broken in that it doesn't skip files as it used to, or as it does doing a clean scan.

iballan
2008-09-09, 09:52
Hi, im a new Sqeeze owner. I bought my sqeueezebox duet a few days ago. I have only use SC version 7.2. My first scan worked as i should. Yesterday i wanted to update my libary and i have the exact same problem as described i this thread. I tried to implement MusicIP today - same problem. It stops scanning after 150 tracks (i have 27.000). I have tried both rescan and "clear libary, rescan".

What to do? My system isn't very usefull right now.

GeeJay
2008-09-09, 20:23
Thanks for posting the bug. It got my vote.

didbox
2008-09-12, 02:10
Same rescan problem on ReadyNAS NV+ with sc 7.2.1 (last build):

http://forums.slimdevices.com/showthread.php?t=52344


Didier

TimothyB
2008-09-12, 11:56
Since upgrading to 7.2, I'm also getting an error when I do a full rescan.

Most of my library is FLAC image + cue. A full scan seems to hang somewhere in the letter H with the error below. If I then do a look for new and changed music, it finishes the scan.

About a third of my FLAC images (~360 of 1200) not only get parsed according to the cue sheet, but also get entered as tracks with no artist, no album and no genre.

This had all worked correctly before the upgrade.

I set logging to "Debug" for all three of the scan options and this is what appeared in the scan log:


[08-09-10 02:13:57.0852] main::main (219) Error: Failed when running main scan: [usage: $io->seek(POS, WHENCE) at /usr/share/perl5/Slim/Formats/Playlists.pm line 99]
[08-09-10 02:13:57.1518] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!

Here is my setup:

Ubuntu 8.04
SqueezeCenter Version: 7.2 - 22900 @ Tue Aug 26 10:45:08 PDT 2008 - Debian - EN - utf8
Server IP address: 192.168.1.104
Perl Version: 5.8.8 x86_64-linux-gnu-thread-multi
MySQL Version: 5.0.51a-3ubuntu5.1
Platform Architecture: x86_64-linux

My next step will be to see what file is offending.

-- T

jkouns
2008-09-13, 14:58
7.1 to 7.2 upgrade just completed and now all my playlists are not displaying and the scanner is having issues....

Seeing this in the logs:

(390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.
[08-09-13 17:44:45.3281] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.
[08-09-13 17:44:45.7968] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.

TonyM
2008-09-14, 05:36
I get this on SC7.2 now on every incremental scan:

[08-09-13 19:03:52.7512] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /usr/lib/perl5/vendor_perl/Slim/Schema.pm line 1155.

I am not getting ALL the tracks of newly imported music, just a few each time. If I scan again I get a few more tracks. Very strange.

I hope someone can help please?!

Cheers,
Tony
ps. Suse Linux 11, KDE 3.5. AMD 64

BlueWombat
2008-09-14, 13:12
I was having the same problem with an incomplete scan, but fixed it by moving out two *.m4b files. I'm still having problems pulling in musicIP stuff, but the scan seems to be completing now.

seanpg
2008-09-14, 15:57
moving *.m4b and *.mov enabled the scan completed sucessfully for me.

iballan
2008-09-15, 05:44
I was having som problems with updating database from MusicIP, the problem got solved when i deleted all embeded album art in my MP3's.

marksw
2008-09-20, 16:04
Yep, I've been having this problem - it's really annoying!

In fact, I can't even get the scanner log to show me anything. I've set all the options to debug that have 'scanner' in the name (four I think), and nothing is showing.

Anyway, I've given up and re-installed 7.1. Glad I kept the dmg file for my mac!

marksw
2008-09-21, 02:45
Just to add a bit more information to this post, I have no .mov files or .m4b files -- all mine are .aif files with the exception of one mp3.

The MP3 got indexed fine, but all the AIFF files filed to index properly. They were all listed under No Artist, No Album (i.e. these properties were not picked up by the scanner), but the track names were found.

Very strange... and annoying!

I was running SqueezeCenter 7.2 on Mac OS X 10.5.5.

kanoot
2008-09-21, 06:31
the bug is now reading "Fixed in 7.2.1 change 23213" - the question now is when is that release coming?

jkouns
2008-09-22, 13:44
Just to add a bit more information to this post, I have no .mov files or .m4b files -- all mine are .aif files with the exception of one mp3.

The MP3 got indexed fine, but all the AIFF files filed to index properly. They were all listed under No Artist, No Album (i.e. these properties were not picked up by the scanner), but the track names were found.

Very strange... and annoying!

I was running SqueezeCenter 7.2 on Mac OS X 10.5.5.


No *.mov or *.m4b files for me either.

SqueezeCenter Version: 7.2 - 22900 @ Tue Aug 26 11:27:23 PDT 2008 - Windows XP - EN - cp1252
Perl Version: 5.8.8 MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt


[08-09-22 16:41:15.9351] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.
[08-09-22 16:41:16.0732] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.
[08-09-22 16:41:16.2024] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.
[08-09-22 16:41:16.3301] MP4::Info::parse_file (390) Warning: Argument "\x{0}" isn't numeric in numeric eq (==) at C:\PROGRA~1\SQUEEZ~1\server\lib/MP4/Info.pm line 390.

jbrook3708
2008-10-01, 01:57
Getting stuck on random files, all MP3s. I have a few M4A files but not getting stuck on those, all the rest of my files are MP3s.

Doing a complete rescan runs successfully, but this takes hours!


[08-10-01 21:17:15.6766] main::main (219) Error: Failed when running main scan: [Can't call method "content_type" on an undefined value at /<E:\PROGRA~1\SQUEEZ~1\server\scanner.exe>Slim/Schema.pm line 1155.
]
[08-10-01 21:17:15.6774] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!

mr-b
2008-10-01, 02:28
I've no idea whether any of these issues are known by the developers or support - I don't think anyone from Slimdevices has responded (when I have seen them respond on other issues before).

In any case, these scanning issues sure are causing a bunch of folks problems on one of the most painful aspects of Slimserver i.e. the frustration of not seeing your music listed.

Is it best to log bugs or just mail support?
(I usually don't bother with the latter since they usually just tell me to reinstall etc. so I'd hoped that ppl on the forum would chime in ...)

radish
2008-10-01, 05:48
the bug is now reading "Fixed in 7.2.1 change 23213" - the question now is when is that release coming?

7.2.1 nightly builds can be found here: http://wiki.slimdevices.com/index.php/Nightly_Builds

As for when an official release of 7.2.1 will happen, I don't know. When it's done I assume :)

radish
2008-10-01, 05:52
Is it best to log bugs or just mail support?

Raising bugs is the way to go. Be as specific as you can regarding the error, the files which are causing the problems (attach one if you can) and the version of SC you're running (plus OS etc).

You can also try switching to either the 7.2.1 or 7.3 nightlies to see if that helps (although be aware that 7.3. in particular may cause other problems!).

mr-b
2008-10-01, 09:27
Tx for the advice. When I get a moment I'll try the nightly and will be sure to file a bug and report back if I still see an error.

robroe
2008-10-02, 12:18
Arrggh, why do I always have to upgrade, there's always something that goes wrong! Guess I'll try the nightly.

robroe
2008-10-03, 04:31
Arrggh, why do I always have to upgrade, there's always something that goes wrong! Guess I'll try the nightly.

The nightly did the trick. I really appreciate the work everyone does on SqueezeCenter but how did a bug like this get through? I have SqueezeCenter setup to use MusicIP for scanning which is one of the main options and it didnt work, there must be plenty of people in this boat? I'm really surprised no one noticed before the release.

Anyway sorry to rant, nice work with the fix.

mollymoo
2008-10-04, 05:14
The nightly did the trick. I really appreciate the work everyone does on SqueezeCenter but how did a bug like this get through? I have SqueezeCenter setup to use MusicIP for scanning which is one of the main options and it didnt work, there must be plenty of people in this boat? I'm really surprised no one noticed before the release.

Anyway sorry to rant, nice work with the fix.

i just reloaded 7.1. MUCH MORE STABLE.

i have yet to have a problem with 7.1.

ModelCitizen
2008-10-04, 06:20
As for when an official release of 7.2.1 will happen, I don't know. When it's done I assume :)
Pretty soon would be my guess.

MC

DerekDenyer
2008-10-04, 10:04
I'm also getting problems with 7.2, and it's not fixed with 7.2.1

[08-10-04 17:59:04.9429] main::main (219) Error: Failed when running main scan: [spec is not a valid file specification at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/Misc.pm line 421.
]
[08-10-04 17:59:04.9442] main::main (220) Error: Skipping post-process & Not updating lastRescanTime!

I'm running an iMac G5 & upgraded to 10.5.5 (from 10.4.x) recently, which is probably the cause, as if I downgrade to 7.1 I still can't scan my collection. It goes off scanning for 5 minutes or so, the server is being accessed, before it aborts.

What now I wonder?.

Derek

jbrook3708
2008-10-13, 00:54
I have just installed the nightly 7.2.1 build and I can now rescan successfully.

What a fundamental bug, I wonder how many people this affected.

Oh well hope there are no new bugs in 7.2.1 I haven't found yet!