screen-scraper is telling me that my database is corrupted. How do I remedy this?
On rare occasions the main screen-scraper database can become corrupted. This might happen if your computer crashes while screen-scraper is running, for example. Fortunately, as of version 2.8 screen-scraper will automatically back up your database periodically. Even if your database has become corrupted, it's likely you haven't lost much work.
In the directory where screen-scraper is installed (e.g., "C:\Program Files\screen-scraper professional edition"), you'll find the following directory path: "resource/db/backup". This "backup" folder should contain a series of folders with dates and times, each of which will contain a backup of your database. You'll use these to restore your database, by following the steps below:
- Ensure that screen-scraper is not running. This would include the workbench, server, and any command line instances you might have running.
- Kill any java.exe, javaw.exe, screen-scraper.exe, server.exe, java, or javaw processes running on your machine that might correspond to screen-scraper. It's possible that the screen-scraper database process could still be alive, which would lock the database files. You can kill processes on Windows using the Windows Taks Manager. Be sure to view processes from all users.
- Delete your existing database files. These are located in "resource/db", and all begin with "ss".
- Copy the database files from the most recent backup folder into the "resource/db" folder. For example, you might copy all of the files beginning with "ss" from "resource/db/backup/September 8, 2006 09.23.31 AM" into "resource/db".
- Try launching screen-scraper. If everything is normal, you're done. If you get the same "Database Corrupted" message, go back to step 1.

