# Django Lightsail - attempt to write a readonly database

**URL:** <https://forum.djangoproject.com/t/django-lightsail-attempt-to-write-a-readonly-database/5466>\
**Category:** Using Django\
**Created:** [November 30, 2020, 6:54pm UTC](https://forum.djangoproject.com/t/django-lightsail-attempt-to-write-a-readonly-database/5466 "2020-11-30T18:54:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterhrncirik](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/peterhrncirik/32/2628_2.png) [@peterhrncirik](https://forum.djangoproject.com/u/peterhrncirik)\
**Post date:** [November 30, 2020, 6:54pm UTC](https://forum.djangoproject.com/t/django-lightsail-attempt-to-write-a-readonly-database/5466/1 "2020-11-30T18:54:12Z")

</div>

Hi everyone…

For 5 days I have been trying to deploy my first larger django project on production server and I’m losing my hope…

I am deploying to AWS Lightsail, finally got to point where app is actually live (although the server just keeps randomly crashing…), but the main problem I get now is upon logging/registering I get this error:

**Attempt to write a readonly database**

I have tried changing permissions, but nothing…

Can someone help me, please

---

<div class="post-metadata">

**Author:** ![mblayman](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/mblayman/32/101_2.png) [@mblayman](https://forum.djangoproject.com/u/mblayman)\
**Post date:** [December 1, 2020, 5:40am UTC](https://forum.djangoproject.com/t/django-lightsail-attempt-to-write-a-readonly-database/5466/2 "2020-12-01T05:40:53Z")

</div>

We’re flying a bit blind without the database configuration, but I’ll take a shot. 😄

If I had to guess, you’ve got a SQLite db that is committed to a Docker container that Lightsail is using and the files are mounted as read only. I don’t know Lightsail so I could be completely off on that assessment.
