Rails 4 SQLite3::ReadOnlyException: attempt to write a readonly database Rails 4 SQLite3::ReadOnlyException: attempt to write a readonly database sqlite sqlite

Rails 4 SQLite3::ReadOnlyException: attempt to write a readonly database


a) why is it unable to write to the db when there doesn't appear to be anything wrong with the permissions themselves

My best guess is that the db/ directory is owned by the root user, whereas the db/*.sqlite3 files are owned by user a36971. It may be necessary for the db/ directory to also be owned by user a36971.

Try changing the owner from root to a36971 for the db directory:

sudo chown a36971 db

b) what does the + mean on mac os?

+ sign means there are additional permission details not displayed by the default output from ls -l. Try running ls -le to see the details (source: http://tech.enekochan.com/en/2014/05/29/plus-and-at-symbols-listing-file-permissions-in-mac-os-x/).


Got the same error after running rails db:reset

Restarting the local server fixed my problem