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.

I'm currently available for hire, to help you plan, architect, and build new systems, and for technical writing and articles. You can take a look at some projects I've worked on and some of my writing. If you'd like to talk about your upcoming project, do get in touch.

More in the discussion (powered by webmentions)

  • (no mentions, yet.)