Background: My Squeezebox server environment is LMS 7.9.0-1435222036, running on a QNAP TS-451 via SSOTS. SB3 player.
On 7-AUG, an oak tree at the school across the street from my house came down, pulling down utility power, cable, and telephone lines, snapping two power poles, ripping the electrical service, cable, and phone drops off our house, and landing on my wife's car. When I got back inside after my initial look at the chaos, the QNAP was running on UPS power. Since I was going to be without power for far longer than UPS duration, I ran an (orderly) shutdown of the NAS. The timing of this sequence could very easily have been inside the window when my daily LMS rescan is scheduled (I wasn't really thinking of those details at that time).
When everything in my A/V center was carefully powered back up on 8-AUG, the only testing I did was to verify that the SB3 powered on and was communicating with LMS. It has been an interesting couple of weeks since then (car shopping, insurance wranging), so this morning is the first time I've had a chance to listen to some music at home.
I've got nothing in the database, and clear library and rescan everything doesn't fix anything, either before or after I stop and start LMS via the SSOTS interface. The server log:
suggests (to my limited knowledge) that I have database corruption, and the scanner log, even for a scan attempt well after my last LMS restart, begins with a similar flavor of error:
I have shell access the the NAS of course, but not much expertise in SQLlite. Can anyone point me to a script, forum post with instructions, etc. that can take me through deleting and recreating the database and/or other files that are needed to get back to a clean base for LMS? I'd like to avoid uninstalling and doing the full march of SSOTS and LMS reinstall if there is an easier path.
Thanks,
Alan
On 7-AUG, an oak tree at the school across the street from my house came down, pulling down utility power, cable, and telephone lines, snapping two power poles, ripping the electrical service, cable, and phone drops off our house, and landing on my wife's car. When I got back inside after my initial look at the chaos, the QNAP was running on UPS power. Since I was going to be without power for far longer than UPS duration, I ran an (orderly) shutdown of the NAS. The timing of this sequence could very easily have been inside the window when my daily LMS rescan is scheduled (I wasn't really thinking of those details at that time).
When everything in my A/V center was carefully powered back up on 8-AUG, the only testing I did was to verify that the SB3 powered on and was communicating with LMS. It has been an interesting couple of weeks since then (car shopping, insurance wranging), so this morning is the first time I've had a chance to listen to some music at home.
I've got nothing in the database, and clear library and rescan everything doesn't fix anything, either before or after I stop and start LMS via the SSOTS interface. The server log:
Code:
0242: [15-08-23 10:28:55.1008] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
0241: [15-08-23 10:28:54.9647] Slim::Utils::SQLiteHelper::postConnect (373) Optimizing DB because of missing or empty sqlite_stat1 table
0240: [15-08-23 10:28:50.3761] main::checkDataSource (1129) Warning: Schema updated or no media found in the database, initiating scan.
0239: [15-08-23 10:28:49.2304] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
0238: [15-08-23 10:28:49.0536] Slim::Utils::SQLiteHelper::postConnect (373) Optimizing DB because of missing or empty sqlite_stat1 table
0237: [15-08-23 10:28:47.6868] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
0236: [15-08-23 10:28:47.5609] Slim::Utils::SQLiteHelper::postConnect (373) Optimizing DB because of missing or empty sqlite_stat1 table
0235: [15-08-23 10:28:46 ] ssctrl Setting nice level to +0
0234: [15-08-23 10:28:46 ] ssctrl SqueezeboxServer started.
0233: [15-08-23 10:28:46.9205] main::init (394) Starting Logitech Media Server (v7.9.0, 1435222036, Sun Jun 28 04:18:46 UTC 2015) perl 5.010000
0232: [15-08-23 10:28:46.9208] main::init (394) Starting Logitech Media Server (v7.9.0, 1435222036, Sun Jun 28 04:18:46 UTC 2015) perl 5.010000
0231: [15-08-23 10:28:45 ] ssctrl Command line = /opt/ssods4/var/home/SqueezeboxServer/slimserver.pl --daemon --pidfile /opt/ssods4/var/home/SqueezeboxServer/Cache/squeezecenter.pid --cachedir /opt/ssods4/var/home/SqueezeboxServer/Cache --logdir /opt/ssods4/var/home/SqueezeboxServer/Logs --prefsdir /opt/ssods4/var/home/SqueezeboxServer/Prefs --noupnp --priority 0 --user ssods --group ssods --httpport 9001
0230: [15-08-23 10:28:44 ] ssctrl Starting SqueezeboxServer 7.9.0-1435222036.
Code:
...
0004: [15-08-23 11:06:40.7719] Slim::Utils::Scanner::Local::rescan (178) Discovering audio files in /share/CACHEDEV1_DATA/Music/ForSB
0003: [15-08-23 11:06:40.7712] Slim::Music::Import::runImporter (511) Starting Slim::Media::MediaFolderScan scan
0002: [15-08-23 11:06:39.4305] Slim::Schema::forceCommit (2149) Warning: Trying to commit transactions before DB is initialized!
0001: [15-08-23 11:06:38.7028] main::main (204) Starting Logitech Media Server scanner (v7.9.0, 1435222036, Sun Jun 28 04:18:46 UTC 2015) perl 5.010000
Thanks,
Alan