eht16 / python-logstash-async

Python logging handler for sending log events asynchronously to Logstash.
MIT License
186 stars 51 forks source link

Django with with many workers #67

Closed asprencinat closed 2 years ago

asprencinat commented 3 years ago

Using uwsgi setting 'processes = 8', for example

sqlite3.OperationalError: attempt to write a readonly database

This happens as more than 1 thread want to write in single 'database'

You have any ideas?

eht16 commented 3 years ago

This happens as more than 1 thread want to write in single 'database'

Are you sure this is the real root cause? Usually, you rather get lock errors on concurrent database access. Such errors are already handled.

Can you make sure that your database file is really writable by the user with which the Django app is executed?

eht16 commented 2 years ago

Closing on missing response. Re-open if the problem persists.