Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    Senior Member Siduhe's Avatar
    Join Date
    Jun 2005
    Location
    deepest, darkest, south-east London
    Posts
    3,237
    Should be a couple of posts below:

    /usr/local/slimserver/scanner.pl --d_import --d_scan --wipe /path/to/music

    add --logfile /path/to/mylog

    Obv you need to replace "path to music" and "path to my log" for your system. Not sure quite where slimserver is installed on the QNAP either, so you may need to adjust that too!

    The cache folder for 6.3.1 - good question - it's been a while since I used that! Look in /etc/slimserver.conf for a line starting with 'cachedir'. that should give the location that slimserver is trying to use. Again, I don't know much about the Qnap set up and how the install is set to use caching.

    The file you are looking for ought to be something like slimserver.db, but this will normally be hidden. You may need to use ls -a, rather than just ls.

  2. #12
    Senior Member
    Join Date
    Jan 2007
    Location
    Stockholm, Sweden
    Posts
    340
    Thank you very much again, but unfortunately my linux knowledge is too bad for me to understand what to do.. Is there no way to accomplish this from the web interface?
    2* Squeezebox 3
    1* SB Duet
    1* SB Radio
    1 * ReadyNAS Pro

  3. #13
    Senior Member
    Join Date
    Jan 2007
    Location
    Stockholm, Sweden
    Posts
    340
    I have been editing tags, seems like a long-shot, but could some new tags make the scan abort?
    How can I get a more detailed log, surely it must be possible?

    Here is my latest log:


    2007-11-09 17:40:27.5051 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:40:27.6338 SELECT COUNT( DISTINCT( me.id ) ) FROM tracks me WHERE ( me.audio = ? ): '1'
    2007-11-09 17:40:27.8780 SELECT COUNT( DISTINCT( me.id ) ) FROM albums me:
    2007-11-09 17:40:27.9218 SELECT COUNT( DISTINCT( me.id ) ) FROM contributors me LEFT JOIN contributor_album contributorAlbums ON ( contributorAlbums.contributor = me.id ) WHERE ( contributorAlbums.role IN ( ?, ? ) ): '1', '5'
    2007-11-09 17:40:28.0017 ->addLibraryStats() found 2431 songs, 575 albums & 235 artists
    2007-11-09 17:40:37.2763 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:40:37.2800 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:40:38.4793 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:40:38.4829 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:41:09.0187 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:41:09.0224 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:41:10.1087 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:41:10.1123 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:41:23.4747 Setup::rescan - initiating scan of type: [wipecache]
    2007-11-09 17:41:23.4869
    2007-11-09 17:41:23.5175 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:23.5388
    2007-11-09 17:41:23.5945 SELECT me.id, me.url, me.content_type, me.title, me.titlesort, me.titlesearch, me.album, me.tracknum, me.timestamp, me.filesize, me.disc, me.thumb, me.remote, me.audio, me.audio_size, me.audio_offset, me.year, me.secs, me.cover, me.vbr_scale, me.bitrate, me.samplerate, me.samplesize, me.channels, me.block_alignment, me.endian, me.bpm, me.tagversion, me.drm, me.musicmagic_mixable, me.musicbrainz_id, me.playcount, me.lastplayed, me.lossless, me.lyrics, me.rating, me.replay_gain, me.replay_peak FROM tracks me WHERE ( url = ? ): 'clientplaylist://00:04:20:07:2c:32'
    2007-11-09 17:41:23.6477 DELETE FROM playlist_track WHERE ( playlist = ? ): '1059'
    2007-11-09 17:41:23.9257 Request: Command [00:04:20:07:2c:32->playlist clear] (Done)
    2007-11-09 17:41:24.3518 SELECT me.name, me.value FROM metainformation me WHERE ( ( me.name = ? ) ): 'isScanning'
    2007-11-09 17:41:24.4351 forceCommit: syncing to the database.
    2007-11-09 17:41:24.4455 commit ineffective with AutoCommit enabled at /opt/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.
    2007-11-09 17:41:24.4480 Commmit ineffective while AutoCommit is on at /opt/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.
    2007-11-09 17:41:24.4531 ERROR: DBD::mysql::db commit failed: Commmit ineffective while AutoCommit is on at /opt/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.

    2007-11-09 17:41:24.4551 ERROR: Backtrace follows:

    2007-11-09 17:41:24.4618 Backtrace:

    frame 0: Slim::Schema::throw_exception (/opt/slimserver/CPAN/DBIx/Class/Schema.pm line 606)
    frame 1: DBIx::Class::Schema::txn_do (/opt/slimserver/Slim/Music/Import.pm line 241)
    frame 2: (eval) (/opt/slimserver/Slim/Music/Import.pm line 233)
    frame 3: Slim::Music::Import::setIsScanning (/opt/slimserver/Slim/Music/Import.pm line 152)
    frame 4: Slim::Music::Import::launchScan (/opt/slimserver/Slim/Control/Commands.pm line 1958)
    frame 5: Slim::Control::Commands::wipecacheCommand (/opt/slimserver/Slim/Control/Request.pm line 1483)
    frame 6: (eval) (/opt/slimserver/Slim/Control/Request.pm line 1483)
    frame 7: Slim::Control::Request::execute (/opt/slimserver/Slim/Control/Request.pm line 772)
    frame 8: Slim::Control::Request::executeRequest (/opt/slimserver/Slim/Web/Setup.pm line 1446)
    frame 9: Slim::Web::Setup::__ANON__ (/opt/slimserver/Slim/Web/Setup.pm line 2928)
    frame 10: Slim::Web::Setup:rocessChanges (/opt/slimserver/Slim/Web/Setup.pm line 2682)
    frame 11: Slim::Web::Setup::setup_HTTP (/opt/slimserver/Slim/Web/HTTP.pm line 843)
    frame 12: Slim::Web::HTTP::generateHTTPResponse (/opt/slimserver/Slim/Web/HTTP.pm line 709)
    frame 13: Slim::Web::HTTP:rocessURL (/opt/slimserver/Slim/Web/HTTP.pm line 555)
    frame 14: Slim::Web::HTTP:rocessHTTP (/opt/slimserver/Slim/Networking/Select.pm line 238)
    frame 15: (eval) (/opt/slimserver/Slim/Networking/Select.pm line 238)
    frame 16: Slim::Networking::Select::select (/opt/slimserver/slimserver.pl line 499)
    frame 17: main::idle (/opt/slimserver/slimserver.pl line 452)
    frame 18: main::main (/opt/slimserver/slimserver.pl line 1076)

    2007-11-09 17:41:24.4676 Request: Command [wipecache] (Done)
    2007-11-09 17:41:26.4615 SELECT me.id, me.url, me.content_type, me.title, me.titlesort, me.titlesearch, me.album, me.tracknum, me.timestamp, me.filesize, me.disc, me.thumb, me.remote, me.audio, me.audio_size, me.audio_offset, me.year, me.secs, me.cover, me.vbr_scale, me.bitrate, me.samplerate, me.samplesize, me.channels, me.block_alignment, me.endian, me.bpm, me.tagversion, me.drm, me.musicmagic_mixable, me.musicbrainz_id, me.playcount, me.lastplayed, me.lossless, me.lyrics, me.rating, me.replay_gain, me.replay_peak FROM tracks me WHERE ( url = ? ): 'clientplaylist://00:04:20:07:2c:32'
    2007-11-09 17:41:26.4986 Use of uninitialized value in concatenation (.) or string at /opt/slimserver/Slim/Schema.pm line 952.
    2007-11-09 17:41:26.5038 Merging entry for clientplaylist://00:04:20:07:2c:32 readTags is: []
    2007-11-09 17:41:27.4626 Updating clientplaylist://00:04:20:07:2c:32 : title to Now Playing - 192.168.1.2
    2007-11-09 17:41:27.5280 Updating clientplaylist://00:04:20:07:2c:32 : year to 0
    2007-11-09 17:41:27.5329 Updating clientplaylist://00:04:20:07:2c:32 : content_type to cpl
    2007-11-09 17:41:27.5375 Updating clientplaylist://00:04:20:07:2c:32 : remote to 0
    2007-11-09 17:41:27.5422 Updating clientplaylist://00:04:20:07:2c:32 : titlesearch to NOW PLAYING 192 168 1 2
    2007-11-09 17:41:27.5467 Updating clientplaylist://00:04:20:07:2c:32 : titlesort to NOW PLAYING 192 168 1 2
    2007-11-09 17:41:27.5518 Updating clientplaylist://00:04:20:07:2c:32 : rating to 0
    2007-11-09 17:41:27.5889 DELETE FROM playlist_track WHERE ( playlist = ? ): '1059'
    2007-11-09 17:41:29.4876 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:34.5286 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:39.5629 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:40.7949 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:41:40.8113 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:41:41.7158 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:41:41.7195 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:41:44.5984 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:49.6434 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:54.6734 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:41:59.7028 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:04.7431 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:09.8383 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:16.4670 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:21.6326 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:26.9165 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:32.7016 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:36.4444 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:42:36.4793 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:42:38.9079 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:39.2105
    2007-11-09 17:42:39.3538 Request: Command [00:04:20:07:2c:32->ir] (Done)
    2007-11-09 17:42:39.3566 Param: [_ircode] = [000848b7]
    2007-11-09 17:42:39.3592 Param: [_time] = [88633.399]
    2007-11-09 17:42:39.4373
    2007-11-09 17:42:39.4487 Request: Command [00:04:20:07:2c:32->ir] (Done)
    2007-11-09 17:42:39.4533 Param: [_ircode] = [000848b7]
    2007-11-09 17:42:39.4559 Param: [_time] = [88633.459]
    2007-11-09 17:42:39.4944
    2007-11-09 17:42:39.5048 Request: Command [00:04:20:07:2c:32->ir] (Done)
    2007-11-09 17:42:39.5075 Param: [_ircode] = [000848b7]
    2007-11-09 17:42:39.5104 Param: [_time] = [88633.882]
    2007-11-09 17:42:39.9525 Reading firmware version file: /opt/slimserver/Firmware/squeezebox2.version
    2007-11-09 17:42:39.9562 squeezebox2 firmware is up-to-date, v. 81
    2007-11-09 17:42:43.9652 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:49.0693 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2007-11-09 17:42:54.1227 SELECT me.name, me.value FROM metainformation me WHERE ( name = ? ): 'isScanning'
    2* Squeezebox 3
    1* SB Duet
    1* SB Radio
    1 * ReadyNAS Pro

  4. #14
    Senior Member Siduhe's Avatar
    Join Date
    Jun 2005
    Location
    deepest, darkest, south-east London
    Posts
    3,237
    Quote Originally Posted by sand View Post
    Thank you very much again, but unfortunately my linux knowledge is too bad for me to understand what to do.. Is there no way to accomplish this from the web interface?
    There is, but it isn't as easy to identify the problem as running from the command line.

    If you want to give it a go, go to server settings in the webinterface and enable d_scan and d_import debugging flags. Then open up the log page (there's a hyperlink in yellow on the debugging page marked "here") in a new window. Start a full clear and rescan and you will see the log start to fill. The problem is that the log is limited in size and runs quite quickly, so you may miss a relevant error message. However, it may give you a clue.

    If not, it's not difficult to run from the command line - the hardest bit will be telnet'ing in using PUTTY, but it sounds like you have that in hand. I am a linux novice as well, so there may well be a better way of doing this, I'm sure someone else will jump in if so.

    First, find out where slimserver is installed. I think it will be in "/usr/local/slimserver/" so use "cd .." to go back up the folder tree and "ls" to list the contents of each folder. Try to find folder "usr", then try "cd /usr/local" and then "ls" to see whether there is a folder called Slimserver. If there is, "cd /usr/local/slimserver" to get into the folder.

    Type "scanner.pl --d_import --d_scan [/path/to/music] --logfile [/path/to/mylog]" but replace [/path/to/music] with the Qnap folder that has your music in (//PUBLIC/Music or similar?) and [/path/to/mylog] to an empty text file you have created on the QNAP to store the log in.

    Slimserver should start scanning and producing a detailed scanning log. If it gets stuck, you should see an Error message in the text log which will show you which file is the problem. Move it outside of the QNAP music folder and rescan.

    HTH

  5. #15
    Senior Member
    Join Date
    Jan 2007
    Location
    Stockholm, Sweden
    Posts
    340
    Thank you again, Siduhe!

    I have resorted to moving all my music to another directory and now I am adding one directory at a time and rescanning, to see if I can isolate the problem..

    I then plan to use your suggestions once I find the directory where the scan stops.

    Thank's again!
    2* Squeezebox 3
    1* SB Duet
    1* SB Radio
    1 * ReadyNAS Pro

  6. #16
    This is almost certainly the same problem as other Qnap users and I have previously encountered. The scan is failing due to some problem with one or more tracks in the library.

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

    The key posting is the second to last post on the first page of this thread which links to a page on the ripcaster site that describes how to access the scanner from the command line on the Qnap NAS. I found that the best solution was to delete the problem tracks as it found them and to restart the scanner from there.

    Steve

  7. #17
    Senior Member
    Join Date
    Jan 2007
    Location
    Stockholm, Sweden
    Posts
    340
    OK, thanks!
    I must say I think this is a bug in SlimServer, dont you agree? I mean, SlimServer should really tell me that there is an error in a file or whatever the reason is for the failed scan.
    It doesnt even tell me that the scan has failed, it just says that it is still scaning..!
    I wonder where I can report a SlimServer bug, Ill look around..
    Last edited by sand; 2007-11-09 at 20:45.
    2* Squeezebox 3
    1* SB Duet
    1* SB Radio
    1 * ReadyNAS Pro

  8. #18
    Senior Member
    Join Date
    Jan 2007
    Location
    Stockholm, Sweden
    Posts
    340
    Thanks again, Siduhe and sdhubbard!

    I finally found ONE bad file out of five thousand songs, using the command in the ripcaster link..

    I really think that the info presented on the command line should also be presented on a log page in the web interface, so we dont have to use the command line!
    2* Squeezebox 3
    1* SB Duet
    1* SB Radio
    1 * ReadyNAS Pro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •