070b3: ERROR: SQL Command Failed, see log

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

070b3: ERROR: SQL Command Failed, see log

Post by sander »

Running 070b3, although I don't know if this is 070b3 related. But I must say it did not happen in the past (AFAIK).

Tips? Should I clean up the SQL database?

Code: Select all

sander@R540:~/.sabnzbd/logs$ grep -i sql sabnzbd.log
2012-04-19 21:47:25,119::ERROR::[database:90] SQL Command Failed, see log
2012-04-19 21:47:25,120::DEBUG::[database:91] SQL: select count(*) from History WHERE name LIKE ?
2012-04-19 21:47:30,128::ERROR::[database:90] SQL Command Failed, see log
2012-04-19 21:47:30,128::DEBUG::[database:91] SQL: SELECT * FROM history WHERE name LIKE ? ORDER BY completed desc LIMIT ?, ?
sander@R540:~/.sabnzbd/logs$ 
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by shypike »

No idea.
Nothing has changed in database handling for quite some time.
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by sander »

Checking: the only database is history1.db, right? So the problem is in there? And if move that file history1.db, I can start fresh?

What's the format of the .sab files? Not SQLIte3, or is it?
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by shypike »

The db file is a regular SQLite3 database, unrelated to any SAB file (which are mostly Python pickle files).
You can always remove the DB file, it only contains your history.
Although some unfinished items may end up in the orphanage in Status.
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by sander »

OK, thanks. I'll try.

BTW: I just used sqlitebrowser (on Ubuntu) to have a look at the .db. Nice browser. And it did not discover problems in the .db file.

Image
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by shypike »

The sqlite library sometimes gives error messages, without giving insight in what's the actual cause (or remedy).
User avatar
sander
Release Testers
Release Testers
Posts: 9113
Joined: January 22nd, 2008, 2:22 pm

Re: 070b3: ERROR: SQL Command Failed, see log

Post by sander »

shypike wrote:The sqlite library sometimes gives error messages, without giving insight in what's the actual cause (or remedy).
And what does SAB do in case of an error? Does it retry? In one of the SQL-error cases, the items was missing from History.
Post Reply