-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 11 terminates unexpectedly #520
Comments
Can you give all the commands you ran and any relevant contextual information or files for reproducing the issue |
The most likely culprit would be that the volume of data you had for postgres was for version |
@wglambert, I will see if I can reproduce it without providing all sources :) |
Edit:
I can try to provide more context around this but here are a few basics:
|
Same problem here - getting |
So @izakp you're getting this error from a blank startup with no data mounted? I think your example would be the most concise for reproducing the issue, could you post any relevant files that you have |
(updated my comment to point out that 10.5 did work for me- I double-checked it after seeing izakp's comment) |
I don't know if I have the exact same problem, but it's also in a DELETE query, and I can reproduce it with odoo on my mac:
Enter the container and create an odoo user:
and now run odoo:
Now:
This fires a lot of queries, and after a while postgres crashes, the odoo container shows the query it crashed on. Issuing it by hand repeats the crash. The crash does not happen with v10. EDIT: I found that only deleting very long rows crashed the server. |
Sounds like it's probably a bug in PostgreSQL 11 -- is it only something
that can be reproduced on the Alpine variant?
Can you reproduce with PostgreSQL 11 installed outside Docker?
It sounds like it's probably worth trying to create a more minimal
reproducer (starting all of "odoo" is a bit heavy, heh) and reporting
upstream if it can be reliably reproduced on the officially-supported
upstream packages as well.
|
@wglambert replying to your questions above...
Sorry, not quite this... Postgres successfully initializes in the container from a blank data directory with nothing mounted. Once it is up and running, when I try and batch
I'll try and narrow it down to the specific query that topples it during the importer. |
This appears to be a known issue in Postgres 11.0 |
You can test early by building the current 11 context: https://github.com/docker-library/postgres/tree/64bec4b1617291e3646e4e7dbbae1174404c3fd9/11. |
Thanks, will test and report back. |
I'm seeing the same issue and the new |
I am unable to reproduce the crash on
So the linked bug does fix one crash. If you are having other crashes, then it is still probably an upstream bug and you should report a minimal reproducer to them. |
Can confirm that the odoo DELETE bug is also fixed in |
Thanks all- we've downgraded back to 10.5 and our issues have gone away. When I can properly replicate it I'll report it upstream. |
👍 |
At least on GitHub Actions, v13 & v14 reliably fails with this issue (I have confirmed v10.5-12 works). Just stand up a container with a small app to connect to it as "test"; then, it will fail always on CI. However, it doesn't fail on local which makes debugging all the more tricky. |
Today, when trying to build and run my application I discover that Postgres suddenly terminates unexpectedly during the initialization of the application.
When doing further investigation I can see that latest Postgres image now is version 11. (I hadn't specified to use specific version in Dockerfile).
My application does a bunch of initialization tasks on start, and Postgres terminates during one of these.
Going back to version 10.5 solves the issue for me, but there is certainly an issue either with Postgres it self, or configuration issue with the default config in pg11 for the Docker image.
Here is my log output:
api_1 | Exception: SQLSTATE[HY000]: General error: 7 server closed the connection unexpectedly
api_1 | This probably means the server terminated abnormally
api_1 | before or while processing the request.
api_1 | Exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 7 no connection to the server'
db_1 | 2018-10-30 09:48:50.610 UTC [1] LOG: server process (PID 71) was terminated by signal 11: Segmentation fault
db_1 | 2018-10-30 09:48:50.610 UTC [1] DETAIL: Failed process was running: DELETE FROM "dashboard_layouts" WHERE "position"=$1
db_1 | 2018-10-30 09:48:50.610 UTC [1] LOG: terminating any other active server processes
db_1 | 2018-10-30 09:48:50.610 UTC [67] WARNING: terminating connection because of crash of another server process
db_1 | 2018-10-30 09:48:50.610 UTC [67] DETAIL: The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corrupted shared memory.
db_1 | 2018-10-30 09:48:50.610 UTC [67] HINT: In a moment you should be able to reconnect to the database and repeat your command.
db_1 | 2018-10-30 09:48:50.613 UTC [1] LOG: all server processes terminated; reinitializing
db_1 | 2018-10-30 09:48:50.627 UTC [72] LOG: database system was interrupted; last known up at 2018-10-30 09:48:46 UTC
db_1 | 2018-10-30 09:48:50.944 UTC [72] LOG: database system was not properly shut down; automatic recovery in progress
db_1 | 2018-10-30 09:48:50.950 UTC [72] LOG: redo starts at 0/1654800
db_1 | 2018-10-30 09:48:50.971 UTC [72] LOG: invalid record length at 0/17C72F8: wanted 24, got 0
db_1 | 2018-10-30 09:48:50.971 UTC [72] LOG: redo done at 0/17C72D0
db_1 | 2018-10-30 09:48:50.971 UTC [72] LOG: last completed transaction was at log time 2018-10-30 09:48:50.600994+00
db_1 | 2018-10-30 09:48:51.054 UTC [1] LOG: database system is ready to accept connections
The text was updated successfully, but these errors were encountered: