Bugzilla – Bug 3767
symlinks to dirs kills scanner after "encountered a second time" error.
Last modified: 2008-09-15 14:39:24 UTC
Using trunk from today (this is the first time i've updated since split scanner and mysql were merged): 2006-07-15 13:03:54.2876 About to look for files in /home/greg/music 2006-07-15 13:03:54.2964 For files with extensions in: [(?i-xsm:\.(?:ape|wma|shn|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|ogg|aif|aiff|cue)$)] 2006-07-15 13:05:24.0274 ERROR: /home/greg/music/Tortoise/TNT encountered a second time at /usr/share/perl/5.8/File/Find.pm line 559. 2006-07-15 13:05:24.0278 ERROR: Backtrace follows: 2006-07-15 13:05:24.0283 Backtrace: frame 0: Slim::Schema::throw_exception (/home/greg/sandbox/slim/trunk/server/CPAN/DBIx/Class/Schema.pm line 610) frame 1: DBIx::Class::Schema::txn_do (/home/greg/sandbox/slim/trunk/server/scanner.pl line 161) frame 2: main::main (/home/greg/sandbox/slim/trunk/server/scanner.pl line 278) It appears to have been caused by a symlink I had laying around in another directory: cd/Tortoise-TNT -> ../Tortoise/TNT sure.. i know.. "when i do this it hurts. don't do that." but killing the scan due to this seems wrong. just skip the duplicate. I haven't looked closer to see if the exception is due to the File::Find error above or something else given that the traceback shows it in DBIx::Class::Schema...
Fixed in change 8494