Bug 8966 - SqueezeCenter should handle 'failures' in the DB or Cache directory better...
: SqueezeCenter should handle 'failures' in the DB or Cache directory better...
Status: NEW
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 7.4.0
: PC Other
: -- normal with 1 vote (vote)
: New Schema
Assigned To: Brandon Black
: new_schema
Depends on: 8303
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-31 10:17 UTC by Matt Wise
Modified: 2009-09-08 09:22 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Wise 2008-07-31 10:17:36 UTC
Rather than constantly restarting when SqueezeCenter runs into an error, we should have a 'method' of showing the user something serious has failed. Perhaps a very basic text-based-webpage that gives the user some options like "wipe out DB/cache", "show me the error message", etc... 

We could have some kind of fail-safe mode where the second time SC starts up, it starts with -d_startup 1 and sends the output to a log file that is then visable in some basic web page... 

pretty much anything other than what we're doing now ... restart and pray it works.
Comment 1 James Richardson 2008-08-01 10:28:44 UTC
bug 8108 deals with the same issues
Comment 2 Matt Wise 2008-08-01 10:36:59 UTC
It's not the same issue... one issue is a corrupted DB. The other issue is the DB server not even starting up... 

Both result in the same end-case for the user, but they happen for different reasons. 
Comment 3 Matt Wise 2008-08-06 12:47:39 UTC
A more-ideal user experience could be done with a 'pre' web interface... Perhaps SC could start up initially with a super-basic web interface that shows the status of it loading up. That web interface could be configured to show the user any DB or Cache failures and give them basic options:

   Message: You're SqueezeCenter caching database has been corrupted. No settings or information has been lost, but we need to rebuidl this database before we can finish starting up. Would you like me to do this?

      Option 1: yes, rebuild and start up.
      Option 2: no, quit SC
   
   One advantage of this type of system wouls be that the "pre-webserver" could also send back statistics to us to give us a real idea of the number of DB, Cache, and other failures that occur. It could even send back automatic log messages for troubleshooting these errors. 


Comment 4 Mike Walsh 2008-11-03 11:32:37 UTC
would it make sense to also tie this into the cleanup script mherger is working on?
Comment 5 Mickey Gee 2008-11-03 17:02:19 UTC
Retargeting to 8.0.
Comment 6 Jim McAtee 2008-11-03 21:39:21 UTC
There should be no need for a "pre" web interface.

Why should the web interface (or any interface for that matter) require the database?  SC doesn't store _any_ of its configuration data in the database.  This behavior is long lost holdover from the pre 6.0 days when cache=database and all data was loaded directly into server memory.

The server should at least start up and do something coherent when it's unable to connect to the dbms.  Just shutting down or continuously restarting is as unfriendly as you could possibly get.  Display a nicely worded, helpful error message in all interfaces.

This is another bug that has little or nothing to do with a database schema redesign.