operational error - attempt to write a readonly database

59 views
Skip to first unread message

Asim Ahmed

unread,
Sep 28, 2021, 10:08:34 AM9/28/21
to Google App Engine
Hi, 
I am new to GCP and I have deployed a toy django app. I am getting the following error when I try to access admin page while signing in.

I have added the user/password to the SQL instance. 

Regards
OperationalError at /admin/login/attempt to write a readonly databaseRequest Method:
POSTRequest URL:
https://asim800.appspot.com/admin/login/?next=/admin/Django Version:
3.2.7Exception Type:
OperationalErrorException Value:
attempt to write a readonly databaseException Location:
/layers/google.python.pip/pip/lib/python3.8/site-packages/django/db/backends/sqlite3/base.py, line 423, in executePython Executable:
/layers/google.python.pip/pip/bin/python3Python Version:
3.8.12


  1416.              cursor.execute(sql, params)

Local Vars:
VariableValue
cursor
<django.db.backends.utils.CursorDebugWrapper object at 0x3e703e5b37c0>
params
('btqx7y1ekdfpyt7toohi3jurcwo8lb1v', 'e30:1mV3Q9:Meq3jN8qntWcl1QwRVnq7OVWT_jWP-MkHzsXJD3B5ks', '2021-10-12 03:04:41.149250')
returning_fields
[]
self
<django.db.models.sql.compiler.SQLInsertCompiler object at 0x3e703e5b3550>
sql
('INSERT INTO "django_session" ("session_key", "session_data", "expire_date") ' 'SELECT %s, %s, %s')
Reply all
Reply to author
Forward
0 new messages