Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiYTk4ZDdh...
) / Task (
https://hibernate.atlassian.net/browse/HSEARCH-4722?atlOrigin=eyJpIjoiYTk...
) HSEARCH-4722 (
https://hibernate.atlassian.net/browse/HSEARCH-4722?atlOrigin=eyJpIjoiYTk...
) Fix postgresql container start timing out on CI (
https://hibernate.atlassian.net/browse/HSEARCH-4722?atlOrigin=eyJpIjoiYTk...
)
Issue Type: Task Assignee: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) Components: build Created: 18/Oct/2022 00:07 AM Fix Versions: 6.2-backlog, 6.0.11.Final,
6.1.8.Final Priority: Major Reporter: Yoann Rodière (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
In
https://hibernate.atlassian.net/browse/HSEARCH-4684 (
https://hibernate.atlassian.net/browse/HSEARCH-4684 ) , we introduced a workaround to
accurately detect that postgres really was up. In essence we would wait for postgres to
tell us it’s ready twice , because for some reason it would, and the first time it wasn’t
really ready.
Fast-forward to today, and postgres no longer tells us it’s ready twice:
[INFO] DOCKER> [postgres:13.1] "postgres": Start container 3d9c2fe7efa7
15:12:38.722 PostgreSQL:The files belonging to this database system will be owned by user
"postgres".
15:12:38.722 PostgreSQL:This user must also own the server process.
15:12:38.723 PostgreSQL:The database cluster will be initialized with locale
"en_US.utf8".
15:12:38.723 PostgreSQL:The default database encoding has accordingly been set to
"UTF8".
15:12:38.723 PostgreSQL:The default text search configuration will be set to
"english".
15:12:38.723 PostgreSQL:Data page checksums are disabled.
15:12:38.723 PostgreSQL:fixing permissions on existing directory /var/lib/postgresql/data
... ok
15:12:38.723 PostgreSQL:creating subdirectories ... ok
15:12:38.723 PostgreSQL:selecting dynamic shared memory implementation ... posix
15:12:38.737 PostgreSQL:selecting default max_connections ... 100
15:12:38.754 PostgreSQL:selecting default shared_buffers ... 128MB
15:12:38.767 PostgreSQL:selecting default time zone ... Etc/UTC
15:12:38.771 PostgreSQL:creating configuration files ... ok
15:12:38.912 PostgreSQL:running bootstrap script ... ok
15:12:39.594 PostgreSQL:performing post-bootstrap initialization ... ok
15:12:44.781 PostgreSQL:syncing data to disk ... ok
15:12:44.782 PostgreSQL:initdb: warning: enabling "trust" authentication for
local connections
15:12:44.782 PostgreSQL:You can change this by editing pg_hba.conf or using the option -A,
or
15:12:44.782 PostgreSQL:--auth-local and --auth-host, the next time you run initdb.
15:12:44.782 PostgreSQL:Success. You can now start the database server using:
15:12:44.782 PostgreSQL: pg_ctl -D /var/lib/postgresql/data -l logfile start
15:12:44.900 PostgreSQL:waiting for server to start....2022-10-17 15:12:44.900 UTC [47]
LOG: starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled
by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
15:12:44.902 PostgreSQL:2022-10-17 15:12:44.902 UTC [47] LOG: listening on Unix socket
"/var/run/postgresql/.s.PGSQL.5432"
15:12:44.910 PostgreSQL:2022-10-17 15:12:44.909 UTC [48] LOG: database system was shut
down at 2022-10-17 15:12:39 UTC
15:12:44.914 PostgreSQL:2022-10-17 15:12:44.914 UTC [47] LOG: database system is ready to
accept connections
15:12:44.992 PostgreSQL: done
15:12:44.992 PostgreSQL:server started
[ERROR] DOCKER> [postgres:13.1] "postgres": Timeout after 10034 ms while
waiting on log out '(?s)ready to accept connections.*ready to accept connections'
[ERROR] DOCKER> IO Error while requesting logs:
org.apache.http.ConnectionClosedException: Premature end of chunk coded message body:
closing chunk expected Thread-6
[ERROR] DOCKER> Error occurred during container startup, shutting down...
See
https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search/deta...
(
https://ci.hibernate.org/blue/organizations/jenkins/hibernate-search/deta...
)
I don’t know what’s going on, but we need to have another look.
Maybe simply upgrading to the latest postgres would lead to a more… stable… behavior?
(
https://hibernate.atlassian.net/browse/HSEARCH-4722#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4722#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100209- sha1:597f6a7 )