Page 1 of 1

Disk IO error

Posted: February 12th, 2020, 1:02 am
by clarky000
Hey Guys,

Im seeing this in my log file:

Code: Select all

2020-02-12 16:59:58,778::ERROR::[database:149] SQL Command Failed, see log
2020-02-12 16:59:58,780::INFO::[database:151] Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/database.py", line 122, in execute
    self.c.execute(command)
OperationalError: disk I/O error
2020-02-12 16:59:59,328::ERROR::[database:149] SQL Command Failed, see log
2020-02-12 16:59:59,336::INFO::[database:151] Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/database.py", line 120, in execute
    self.c.execute(command, args)
OperationalError: disk I/O error
2020-02-12 16:59:59,369::ERROR::[database:149] SQL Command Failed, see log
2020-02-12 16:59:59,371::INFO::[database:151] Traceback: 
Traceback (most recent call last):
  File "/usr/share/sabnzbdplus/sabnzbd/database.py", line 120, in execute
    self.c.execute(command, args)
OperationalError: disk I/O error
Question I have is - is it indicating that there is an IO error at /usr/share/sabnzbdplus/sabnzbd/database.py or at the path it's trying to write the file to?

TIA!

Re: Disk IO error

Posted: February 14th, 2020, 2:14 am
by safihre
The path that is trying to write the database to. It's inside your Admin directory where also your sabnzbd.ini is locatied.

Re: Disk IO error

Posted: February 14th, 2020, 2:21 am
by clarky000
Ok. Thanks for clarifying. I'm guessing either my sd card is failing or the file is corrupt.

Can I do anything to correct it? Can I rename it safely?

Re: Disk IO error

Posted: February 16th, 2020, 11:27 am
by safihre
You could try and move the files, it will always look for these files where the sabnzbd.ini file is stored. You can change the location of all your files and then run Sabnzbd with the -f parameter to indicate where it should look for sabnzbd.ini.

Or just remove the whole admin directory, but backup the sabnzbd.ini before, and then start sabnzbd again. It will create new files.
Shutdown sabnzbd and put back sabnzbd.ini to regain your settings. Could also backup history1.db, to maintain history.