Bug 14712 - Scanner doesn't start if no music folder is defined, but iTunes or other importer only
: Scanner doesn't start if no music folder is defined, but iTunes or other impo...
Status: REOPENED
Product: Logitech Media Server
Classification: Unclassified
Component: iTunes
: 7.4.0
: Infrant ReadyNAS RAIDiator (SPARC)
: P3 normal (vote)
: 7.5.x
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-10-11 06:06 UTC by yihyan
Modified: 2011-09-25 07:30 UTC (History)
1 user (show)

See Also:
Category: Bug


Attachments
Server Log (94.44 KB, text/plain)
2009-10-16 17:56 UTC, yihyan
Details
Information Tab (99.76 KB, image/jpeg)
2009-10-16 17:57 UTC, yihyan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yihyan 2009-10-11 06:06:02 UTC
Installed clean squeezecenter 7.4.0 on readyNAS, finished the setting steps, after that install 'itunes' in plugin page.

In 'Basic Settings', left the 'Music Folder' and 'Playlists Folder' empty.
In 'Itunes', enabled 'Use Itunes', point the 'iTunes Music Library.xml Location' and 'iTunes Music Folder' to the correct location.

Scanner cannot start at all. Even after clicking "Rescan" in 'Basic Settings' menu. At 'Information' menu, it stated that no library location for music source.

To get around it, in 'Basic Settings', i placed the correct path for 'Music Folder', and clicked rescan, now scanner started to scan, but after finished scanning, there's double entries for all my songs.
Comment 1 Michael Herger 2009-10-13 04:30:12 UTC
could you please set logging for the scanner settings group to debug and try again with the file path empty?
Comment 2 Michael Herger 2009-10-13 07:25:14 UTC
Also - did you restart SBS sinc you've set it up? I had trouble getting it to scan, but it did work fine once I restarted SBS.
Comment 3 yihyan 2009-10-14 23:50:56 UTC
(In reply to comment #1)
> could you please set logging for the scanner settings group to debug and try
> again with the file path empty?

If the file path is empty, even though i enabled logging for scanner, it doesn't get started. (The log doesn't appear in the information tab too).

Yes, tried restarting the SBS and even the readyNAS, the scan can't start too.
Comment 4 Michael Herger 2009-10-15 05:42:51 UTC
please make sure iTunes is enabled and the correct file paths are defined. Enable debugging for iTunes and try again. Anything iTunes related in server.log or scanner.log?

This is working fine for me (ReadyNAS, OSX). QA - can you reproduce the issue?
Comment 5 yihyan 2009-10-16 17:56:36 UTC
Created attachment 6146 [details]
Server Log

Log after removed the path in Music Folder, and select Clear library and Rescan.
Comment 6 yihyan 2009-10-16 17:57:25 UTC
Created attachment 6147 [details]
Information Tab
Comment 7 yihyan 2009-10-16 17:58:12 UTC
(In reply to comment #4)
> please make sure iTunes is enabled and the correct file paths are defined.
> Enable debugging for iTunes and try again. Anything iTunes related in
> server.log or scanner.log?
> 
> This is working fine for me (ReadyNAS, OSX). QA - can you reproduce the issue?


Actually, i can reproduce this easily.

OK, debugging is set for iTunes.
itunes is enabled, correct file paths defined.
All i need is just to remove the path in "Music Folder", and then in the 'information' tab, it will display "Library Statistics
No music library configured"

Attached a screenshot of the information tab, as well as attached the server.log
Comment 8 James Richardson 2009-10-17 10:42:53 UTC
This appears to work for me with 7.4.1 on windows and mac based systems.

Michael: is there anything in the log that helps diagnose the issue?
Comment 9 Michael Herger 2009-10-18 04:50:49 UTC
> Log after removed the path in Music Folder, and select Clear library and
> Rescan.

The last entry in that log is more than a week old. Are you sure this is the correct file? Or is the clock on your device wrong? Please also upload the scanner.log
Comment 10 yihyan 2009-10-18 09:39:47 UTC
(In reply to comment #9)
> > Log after removed the path in Music Folder, and select Clear library and
> > Rescan.
> 
> The last entry in that log is more than a week old. Are you sure this is the
> correct file? Or is the clock on your device wrong? Please also upload the
> scanner.log

i re-checked my server log again, seems the date will always be 9-10(even after i restart the service).

Anyway, i re-installed 7.4.1 clean again. After removing the Music Folder path, the same problem happens again. This time however, it works after i restarted SBS (which didn't the last time i tried).

Any idea why it doesn't work the first time? and why when i removed the music folder, it disabled the scanning without check if itunes are enabled?

Scanner log (after deleting music folder and restart SBS):
[09-10-19 00:28:27.1836] main::main (184) Starting Squeezebox Server scanner (v7.4.1, r28795, Thu Oct  8 04:03:11 PDT 2009) perl 5.008008
[09-10-19 00:28:45.0951] Slim::Music::Import::runImporter (562) Starting Slim::Plugin::iTunes::Importer scan
Comment 11 Michael Herger 2009-10-18 13:18:38 UTC
> Any idea why it doesn't work the first time? and why when i removed the  
> music
> folder, it disabled the scanning without check if itunes are enabled?

That's indeed similar to my experience. I have an idea, but will have to  
verify it as it didn't apply to my tests on the Mac. But I'm glad you got  
it working.

> Scanner log (after deleting music folder and restart SBS):
> [09-10-19 00:28:27.1836] main::main (184) Starting Squeezebox Server

Better date now ;-)
Comment 12 Chris Owens 2009-10-21 09:49:30 UTC
moving current p2 bugs to p3 to make room for moving p1.5 bugs to p2
Comment 13 Pat Ransil 2009-10-23 05:11:14 UTC
Administrative move of 7.5 bugs. All P2, P3, P4 being downgraded one level. Will then split P1s.
Comment 14 Pat Ransil 2009-10-23 05:17:20 UTC
Administrative move of 7.5 bugs. All P2, P3, P4 being downgraded one level. Will then split P1s.
Comment 15 Chris Owens 2010-03-08 11:17:18 UTC
Moving P3 and lower bugs to next release target
Comment 16 yihyan 2011-09-25 07:30:41 UTC
Still not fixed yet in version 7.6.1. Is there any plan to fix this once and for all?