Code Monkey home page Code Monkey logo

Comments (7)

doomedraven avatar doomedraven commented on June 13, 2024

sqlite3.OperationalError: attempt to write a readonly database that is permission problem, how did you run everything? you missed that byte of details

from capev2.

eingel86 avatar eingel86 commented on June 13, 2024

Dear @doomedraven,

thank you for your reply, I used a user who is inside the sudo group but is not root.

Should I run the command with sudo first?

sudo poetry run python3 manage.py migrate

Regards
Engel

from capev2.

doomedraven avatar doomedraven commented on June 13, 2024

did you read docs? never as root, it should be executed only as cape user, if you run it with another users you will get into a lot of permission problems as you have now. https://capev2.readthedocs.io/en/latest/

from capev2.

eingel86 avatar eingel86 commented on June 13, 2024

Thank you, I have followed this guide: https://capev2.readthedocs.io/en/latest/usage/web.html and the command they say to run is not correct, using instead the command: sudo -u cape poetry run python3 manage.py migrate I get no errors. Thanks for the tip.

from capev2.

doomedraven avatar doomedraven commented on June 13, 2024

what command is wrong?

from capev2.

eingel86 avatar eingel86 commented on June 13, 2024

The web help instructs you to run the command like this:
image

but it gave me an error. Instead, running the command by first entering 'sudo -u cape' then like this: 'sudo -u cape poetry run python3 manage.py migrate'

I did not receive the error and was able to complete the procedure.

Engel

from capev2.

doomedraven avatar doomedraven commented on June 13, 2024

that because you should run everything as cape user in cape. that your sudo -u cape is just change to cape user. so command is correct. read docs carefully please https://capev2.readthedocs.io/en/latest/installation/host/installation.html#attention-cape-user

from capev2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.