FreeAndFair / OpenRLA

Free & Fair's open source RLA support software.
Other
4 stars 3 forks source link

SQLite3 ErrorReadOnly #74

Closed nealmcb closed 7 years ago

nealmcb commented 7 years ago

I pulled the latest version of the workflow-assistant branch (862a548b49b67d4a976ebf33c12f8494822580a2) and ran

 cd backend/; make clean; cd -

to clean out the database, followed by "Reset" in the Election tab. After naming a new election, I can't upload anything (grayed out button), and trying to edit the election yields this error

SQLite3 returned ErrorReadOnly while attempting to perform step: attempt to write a readonly database
nealmcb commented 7 years ago

Workaround: killall -i open-rla-exe

ranweiler commented 7 years ago

@nealmcb, for my understanding: you ran make clean was while the backend server was still running?

nealmcb commented 7 years ago

Yup. I forgot all about the fact that it still doesn't exit cleanly when I close the window. I seem to recall again seeing the job control error from #42.

ranweiler commented 7 years ago

I believe this is mitigated by #76. More generally, I'm going to treat deleting the database while the application is running as undefined behavior, since doing so isn't part of the API of any of our planned deployment strategies.