Bugzilla – Bug 8583
Library scan crashes
Last modified: 2009-07-31 10:23:22 UTC
Created attachment 3500 [details] Scanner log Hi, I tried re-install several times, but the result is the same. After first scan of the music folder which goes fine, I set up SC as service and since that time rescan library crashes. Attached is the scanner log. Thanks for help and regards EWI
did you configure it to run as a service with a certain user? Or did you leave the username/password emtpy? Would it run again if you run it as an application?
(In reply to comment #1) > did you configure it to run as a service with a certain user? Or did you leave > the username/password emtpy? Would it run again if you run it as an > application? > Yes. Certain user, password not empty. No. Changing back to application mode does not help. The only way how to fix it is to install and uninstall version 7.1 which is able to clean the registry during uninstallation process. After that I can install 7.01 again and the library is created from scratch again.
Additional info. Certain user with admin rights.
So does SC work for you again? The log looks like it was missing some file. Either really missing or being blocked by AV scanner or permissions, I guess.
(In reply to comment #4) > So does SC work for you again? The log looks like it was missing some file. > Either really missing or being blocked by AV scanner or permissions, I guess. > After reinstallation library scanner works again till I set up SC as a service. Then the scanner does not work so you are not able to add or change your music files. (You can change the files but the database does not reflect the changes)
you should give us more information about your setup. From what you've said so far I'd guess you're trying to access a network share to which the user, who's running the service, doesn't have access to. Does this come close?
(In reply to comment #6) > you should give us more information about your setup. From what you've said so > far I'd guess you're trying to access a network share to which the user, who's > running the service, doesn't have access to. Does this come close? > No. I do not use network share and the user "Squeezeserver", who is running the service actually, has acces to the local HDD. I can give you any details you would request, however you should know, that the version 6.54 works fine with no main issues many months. The configuration of the PC is the same and also the size of my music library is similar.
> I can give you any details you would request - where's your music stored (audiodir) - what group is the squeezecenter user member of? - is that user allowed to write to the system's temp folders? - does he have a valid profile? If so: are there traces of SC in eg. his temp folder? - scanner.log after you've enabled debugging for scan, scan.scanner, and scan.import - if you went back to 6.5.4 again, would it still work when run as a service?
Created attachment 3513 [details] Scanner Debug enabled
(In reply to comment #8) > > I can give you any details you would request > > - where's your music stored (audiodir) (D:\MUSIC) > - what group is the squeezecenter user member of? (Administrators) > - is that user allowed to write to the system's temp folders? (If you want any clear evidence, please let me know and I will try) > - does he have a valid profile? If so: are there traces of SC in eg. his temp > folder? (I tried different users and also created the new user several times.There are traces in C:\Documents and Settings\All Users\...,) > - scanner.log after you've enabled debugging for scan, scan.scanner, and > scan.import (attached) > - if you went back to 6.5.4 again, would it still work when run as a service? > (I will try as soon you confirm you do not need any further info from this installation) (In reply to comment #8) > > I can give you any details you would request > > - where's your music stored (audiodir) > - what group is the squeezecenter user member of? > - is that user allowed to write to the system's temp folders? > - does he have a valid profile? If so: are there traces of SC in eg. his temp > folder? > - scanner.log after you've enabled debugging for scan, scan.scanner, and > scan.import > - if you went back to 6.5.4 again, would it still work when run as a service? >
> > - what group is the squeezecenter user member of? (Administrators) One more question: looking at the task manager, is squeezecenter.exe and/or scanner.exe actually run as this user, or is it using the fallback/default user? In some circumstances (eg. if your machine was a Windows Domain Controller), services can't be run as an admin.
(In reply to comment #11) > > > - what group is the squeezecenter user member of? (Administrators) > > One more question: looking at the task manager, is squeezecenter.exe and/or > scanner.exe actually run as this user, or is it using the fallback/default > user? In some circumstances (eg. if your machine was a Windows Domain > Controller), services can't be run as an admin. > To be honest I do not know the answer to your question. Could you please advice how I can figure it out ? I run scanner.exe from web browser gui and not from CLI. I tried to be logged in as different user. (Admin as wel as user with limited rights) Both has the same results. In WXP I have just two types of users (Administrators and Users with limited rights) Definitelly I do not run any domain in my network. I also tried to log in SC service with different user. The service starts just with admin user type.
Open the task manager, Processes tab. Add the "User Name" column if it isn't displayed yet (View -> Select Columns). Now you should see the user who's running any of the processes. Look out for scanner.exe, squeezecenter.exe (or squeeze~1.exe) or perl.exe. Who's the user?
(In reply to comment #13) > Open the task manager, Processes tab. Add the "User Name" column if it isn't > displayed yet (View -> Select Columns). Now you should see the user who's > running any of the processes. Look out for scanner.exe, squeezecenter.exe (or > squeeze~1.exe) or perl.exe. Who's the user? > squeezecenter.exe - Squeezeserver scanner.exe - Squeezeserver (appears just for couple of seconds after I run rescan) Squeezeserver = SC user
Dan, could you in support contact this user and see if you can work out what's going on? Is this really a bug or just a user/permissions problem? Michael says the log files note that the preference file can't be saved.
(In reply to comment #15) > Dan, could you in support contact this user and see if you can work out what's > going on? Is this really a bug or just a user/permissions problem? Michael > says the log files note that the preference file can't be saved. > Well, none from the support has contacted me. How to proceed ?
(In reply to comment #16) > (In reply to comment #15) > > Dan, could you in support contact this user and see if you can work out what's > > going on? Is this really a bug or just a user/permissions problem? Michael > > says the log files note that the preference file can't be saved. > > > > Well, none from the support has contacted me. How to proceed ? > I sent requested log to support last week by email. (Osama) No confirmation, no response from support so far. How to proceed ?
I'm not support, I'm QA, so the best I can do it tell you what we tried and what we think might be happening. We can't reproduce your problem. Ordinarily this bug would get marked 'invalid' and we'd move on to something affecting other users. Since support doesn't seem able to help you, I'll try and come up with something. In the scanner logs you attached (thanks, it was useful), there are several errors that make it look like the server prefs file is set to read-only mode. On Windows, this file is in C:\Documents and Settings\All Users\Application Data\SqueezeCenter\prefs\server.prefs. You might see if you can edit the file just using notepad. Try adding a line at the bottom that says 'TEST LINE' and saving the file. If it works, you'll need to go back in and remove the line. If it doesn't work, the error message might be useful. It might also be interesting to learn if you are running Squeezecenter as a service, or just as a user (the default).
(In reply to comment #18) > I'm not support, I'm QA, so the best I can do it tell you what we tried and > what we think might be happening. > > We can't reproduce your problem. Ordinarily this bug would get marked > 'invalid' and we'd move on to something affecting other users. Since support > doesn't seem able to help you, I'll try and come up with something. > > In the scanner logs you attached (thanks, it was useful), there are several > errors that make it look like the server prefs file is set to read-only mode. > > On Windows, this file is in C:\Documents and Settings\All Users\Application > Data\SqueezeCenter\prefs\server.prefs. You might see if you can edit the file > just using notepad. Try adding a line at the bottom that says 'TEST LINE' and > saving the file. If it works, you'll need to go back in and remove the line. > If it doesn't work, the error message might be useful. > > It might also be interesting to learn if you are running Squeezecenter as a > service, or just as a user (the default). > 1. SC is running as a service 2. I have found the folder C:\Documents and Settings\All Users\Application > Data\SqueezeCenter\prefs But there is no file inside the folder, even I made the browser to show hidden and system files 3. You should also know, that in CZ Windows, the folder has different name C:\Documents and Settings\All Users\Data Aplikací\SqueezeCenter\prefs Yes, there is diacritics in the folder name. This is Windows decision, not the user one. If some part of your SW uses diferent codepage, could be an issue.
> 2. I have found the folder C:\Documents and Settings\All Users\Application > > Data\SqueezeCenter\prefs > But there is no file inside the folder, even I made the browser to show hidden > and system files > 3. You should also know, that in CZ Windows, the folder has different name > C:\Documents and Settings\All Users\Data Aplikací\SqueezeCenter\prefs Do you have SqueezeCenter folders in both places, the localized and the English version? If so, are they identical, or are they independant?
Created attachment 3638 [details] Screenshot of folder structure
(In reply to comment #21) > Created an attachment (id=3638) [details] > Screenshot of folder structure > (In reply to comment #20) > > 2. I have found the folder C:\Documents and Settings\All Users\Application > > > Data\SqueezeCenter\prefs > > But there is no file inside the folder, even I made the browser to show hidden > > and system files > > 3. You should also know, that in CZ Windows, the folder has different name > > C:\Documents and Settings\All Users\Data Aplikací\SqueezeCenter\prefs > > Do you have SqueezeCenter folders in both places, the localized and the English > version? If so, are they identical, or are they independant? > (In reply to comment #20) > > 2. I have found the folder C:\Documents and Settings\All Users\Application > > > Data\SqueezeCenter\prefs > > But there is no file inside the folder, even I made the browser to show hidden > > and system files > > 3. You should also know, that in CZ Windows, the folder has different name > > C:\Documents and Settings\All Users\Data Aplikací\SqueezeCenter\prefs > > Do you have SqueezeCenter folders in both places, the localized and the English > version? If so, are they identical, or are they independant? > Michael, I think you hit the point. There are two folders which seem to have the same name except the character "í" Probably that makes SC confused. I have met once the same issue with SW which was transfered to Windows from Unix environment. The reason for this is that when you use different codepage, windows will use different character. Please talk to programmers I hope would be easy to fix this. As the folders are created by Windows and SC I have no possibility to fix this myself. Pleae see the attachement, which is screenshot of these two folders.
are there any configuration files in one of these folders? or in both? If so, in which one? Will try to get a CZ Windows up and running here. I don't know what rule MS follows when localizing these paths: they are in German, too, but not in eg. French.
(In reply to comment #23) > are there any configuration files in one of these folders? or in both? If so, > in which one? > > Will try to get a CZ Windows up and running here. I don't know what rule MS > follows when localizing these paths: they are in German, too, but not in eg. > French. > Seems config files are splited in both folders. I am attaching the screenshot which will describe it better. I think that sometimes data goes to the correct folder, sometimes to the second one. I presume correct folder is the one which contains data for the other applications as well.
Created attachment 3644 [details] Two application data folders structure
This should not be assigned to me. Reassigning to QA.
(In reply to comment #23) > are there any configuration files in one of these folders? or in both? If so, > in which one? > > Will try to get a CZ Windows up and running here. I don't know what rule MS > follows when localizing these paths: they are in German, too, but not in eg. > French. > Were you able to run CZ Windows and replicate the bug ? Is there the roadmap already when this could be fixed ?
I'm sorry, no, I haven't had the time yet to check this. QA - do you have a chance to get a CZ Windows set up to verify this? According to Dean I shouldn't be doing it ;-).
I was able to reproduce the creation of the two folders. Though I'm not sure it's the reason for the scanner failure: I have run several scans successfully. I'm no testing with a larger collection of about 11'000 tracks, including tracks with German umlauts, accented French characters etc. I've opened a new bug 9120 for the broken prefs path issue.
EWI - could you please re-test a scan with the debug options enabled, and then upload the scanner.log to this bug? The few lines you've uploaded before don't have any scanner specific output, but only the message caused by the double folder creation.
EWI - any news (see my previous comment)?
(In reply to comment #31) > EWI - any news (see my previous comment)? > Michael, my current version of SC is 7.1-21453. I am attaching scanner.log from this version. If you want I can upgrade to the official version 7.2 and run the scanner again. I was hesitating to do that so far.
Created attachment 4102 [details] Scanner.log file debug option enabled Please ignore massages that the scanner could not find files mentioned in .cue and .m3u. These files are saved there just for other usage.
Is this a log running SC 7.1 or 7.2? What exact release?
(In reply to comment #34) > Is this a log running SC 7.1 or 7.2? What exact release? > The version is 7.1-21453.
Could you please give the latest 7.2.1 or 7.3 a try? There's no more work being done on 7.1. Thanks for your understanding.
(In reply to comment #36) > Could you please give the latest 7.2.1 or 7.3 a try? There's no more work being > done on 7.1. Thanks for your understanding. > I installed 7.2.1-23460 and run the full scan. Seems OK. I will attache the log with debug scan enable. Please check if everything is really OK as it seems to be. Thanks EWI
Created attachment 4119 [details] Scanner.log file debug option enabled SC 7.2.1-23460
Thanks for the feedback!
This bug has been fixed in the 7.3.0 release version of SqueezeCenter! Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already. If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Reduce number of active targets for SC