sqlite3 cannot open database file, running Centos, flask uwsgi nginx -
i have simple flask app runs fine on local machine. app uses sqlite3. trying deploy centos machine running nginx , uwsgi. app starts when try access site through chrome, raises exception:
sqlite3.operationalerror: unable open database file
i believe have permissions correct, user starting app has ownership of database file. directories have 777 permissions. database has 665 permissions. nginx started using sudo.
i have combed through existing posts kind of thing. people talk permissions, pretty sure have correct. name of file correct.
database = 'sqlite:////home/.../firstdb.db'
i same error if database points nonexistent file. else going wrong?
so turns out file name prefix of sqlite/// incorrect. don't understand this, worked before. put file name , works now.
Comments
Post a Comment