OperationalError: SQL logic error or missing database

If you’re getting OperationalError: SQL logic error or missing database from your Python web script, first check that your SQLite database is readable and writeable by the user that Apache is running as (www-data if you’re on Debian/Ubuntu) and that the folder that the DB file is in is also readable and writeable by the Apache user. Your webserver needs to be able to write to the file. That is all.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)