![]() If so, I would like to know where that DB could be located in order to change the privileges of the DB to give write access. I dont know if the DB is located in the Android emulator or in the host machine. Sudo chmod 664 /opt/bitnami/projects/django_project/db. db.addpath(.) This file is part of the Cuckoo Droid project, specifically is the script to submit a APK to be analyzed. Also I am very new to both sqlite and linux so some of the points like 'Make sure that the directory containing the database file is also writable to the user executing the CGI script. I tried to run the following to give permission but without luck: sudo chown :www-data /opt/bitnami/projects/django_project/db.sqlite3 This error usually happens when your database is accessed by one application already, and youre trying to access it. I tried multiple solutions, also some given in the question you linked to, however without luck. rwxr-xr-x 1 bitnami bitnami 667 Mar 11 10:00 manage.pyÄrwxr-xr-x 3 bitnami bitnami 4096 Mar 11 13:52 django_projectÄrwxr-xr-x 5 bitnami bitnami 4096 Mar 11 10:26 usersĪnd this to the project directory drwxrwxr-x 6 bitnami www-data 4096 Mar 12 08:01 django_project envÄrwxr-xr-x 5 bitnami bitnami 4096 Mar 11 10:26 app The problem is that when I try to INSERT INTO it, I get a PDOException. rw-r-r- 1 bitnami bitnami 287 Mar 11 13:29. I have a SQLite database that I am using for a website. Still i am getting read-only database error. The user and group of the file are set to apache (under which the server is running) using chown and chgrp. Find out the correct user and change the owner using sudo chown db.sqlite then revert to the old attributes (sudo chmod 644 db.sqlite).Ärwxr-xr-x 2 bitnami bitnami 4096 Mar 11 11:48 conf 1 OperationalError: attempt to write a readonly database 2 I have checked the permissions of the file. No worries, but dont leave it that way as it is insecure. I have the following permissions to my project files: drwxrwxr-x 6 bitnami www-data 4096 Mar 12 08:01. ![]() I am trying to deploy my Django project on a Bitnami server, but when I try to login through admin with my superuser i get the following error: attempt to write a readonly databaseÄ®xception Location: /opt/bitnami/python/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py, line 413, in execute ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |