Plan to upgrade Django to solve PSQL disconnection #643
maxware0715
started this conversation in
General
Replies: 2 comments 3 replies
-
Since Frepple 7.0, we use a slightly customized version of django 4.2 (maintained in https://github.com/frePPLe/django). So, it looks like a frepple upgrade to a recent version will resolve your issue. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Just to be clear: Upgrading django without upgrading frepple is NOT an option. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Recently my project frequently met the disconnection issue while connect to PSQL server:
django.db.utils.OperationalError: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
We investigate that new django version has a setting make liveness check before using connection:
https://docs.djangoproject.com/en/4.1/ref/settings/#conn-health-checks
but it requires django version >= 4.1,
while frepple only record django version=3.2.13:
https://frepple.com/docs/current/release-notes.php#:~:text=Django%20release%20is%20upgraded%20to%203.2.13%20to%20address%20a%20security%20issue.
Is it a good idea to upgrade django in frepple image?
If yes, any experience of adjustment?
If no, any other workaround method to solve the disconnect issue?
Beta Was this translation helpful? Give feedback.
All reactions