Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Attempt to write a read-only database #66

Open
AbhinavJain29 opened this issue Aug 11, 2017 · 1 comment
Open

Attempt to write a read-only database #66

AbhinavJain29 opened this issue Aug 11, 2017 · 1 comment

Comments

@AbhinavJain29
Copy link

While loading the metacademy.org data through
python server/manage.py loaddata dev_utils/graph_data.json,
I get a message saying "Attempt to write a read-only database".

without_sudo

If I execute the same command using sudo python server/manage.py loaddata dev_utils/graph_data.json, I get a message saying, "ImportError: No module named config"

with_sudo

In fact, while trying to execute the application without loading the data, I get a similar error too.

screen shot 2017-08-10 at 18 01 07

@nobillygreen
Copy link

Not sure if you ever got around to finding a solution to this, but for other people who come across this, the solution here is to change the permissions of the local_db/django_db/ folder (which is created in the root directory of your project, in the same directory as metacademy-application and meta_env

sudo chmod -R 777 local_dbs/django_db/

It probably doesn't need all of 777 permissions, but I'm not particularly worried about security at this point.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants