Tenma-Server / Tenma

Comic book server with in-browser reader
MIT License
252 stars 31 forks source link

sqlite3.OperationalError: database is locked #45

Closed calgara12 closed 7 years ago

calgara12 commented 7 years ago

Hey,

First of all: Thank you so much for this application.

I followed the instructions to install everything properly. But when i try to click the Import Comics Button i get the message sqlite3.OperationalError: database is locked

Do you have an idea what i could to to solve this issue?

Thanks in advance! :)

hmhrex commented 7 years ago

This is a SQLite3 error. It means that when you're trying to access the database, it's in use and being locked for that use. This shouldn't very often. You could try restarting the services that Tenma uses to see if that fixes the issue.

If you're not using the Docker image, you could also try increasing the database timeout value on line 130 in settings.py.

If you're still having issues, please post answers to the following:

  1. What operating system is Tenma running on?
  2. What version of Python is running on the system?
calgara12 commented 7 years ago

Restarting the services seemed to have fixed the issue. Thanks!!!!

hmhrex commented 7 years ago

Glad to hear that worked for you!