Question on Readonly DB error
See original GitHub issueCurrently when i build the Dockerfile (the one in the root directory) and execute it… it works fine. Site comes up, no prob.
But, i am not able to add a dashboard. Im just trying to make sure this works properly before launching it to a production environment.
ERROR:flask_appbuilder.models.sqla.interface:Add record error: (sqlite3.OperationalError) attempt to write a readonly database
[SQL: INSERT INTO dashboards (created_on, changed_on, dashboard_title, position_json, description, css, json_metadata, slug, published, created_by_fk, changed_by_fk) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]
[parameters: ('2020-06-17 18:22:23.045075', '2020-06-17 18:22:23.045085', 'Test', None, None, None, None, 'test', 0, 1, 1)]
(Background on this error at: http://sqlalche.me/e/e3q8)
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
cursor, statement, parameters, context
File "/usr/local/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: attempt to write a readonly database
How do I fix this readonly db issue? Thanks in advance, appreciate the help.
- Superset version: 0.36
- Python version 3.6
- Docker Versions 19.03.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Question on Readonly DB error · Issue #10087 - GitHub
How do I fix this readonly db issue? Thanks in advance, appreciate the help. Superset version: 0.36; Python version 3.6; Docker Versions 19.03.5....
Read more >SQLite error 'attempt to write a readonly database' during insert?
The problem, as it turns out, is that the PDO SQLite driver requires that if you are going to do a write operation...
Read more >Database cannot be upgraded because it is read-only or has ...
This isn't an access issue. The problem is that you are attaching the database to a higher version of SQL Server than the...
Read more >error changing data - attempt to write a readonly database
Take a detailed look at the permissions on the folder where you keep your database files, the database file, and journal or .shm...
Read more >Applicationintent=ReadOnly Failed to update database ...
Applicationintent=ReadOnly Failed to update database "master" because the database is read-only. (Microsoft SQL Server, Error: 3906).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
#question
to this issue, with a confidence of 0.71. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
Thanks,it’s a really good and effective method. I think the reason of this question is the supert user and root user have different file permissions.
It’s my dockerfile,for you reference: