CrunchyData / crunchy-containers

Containers for Managing PostgreSQL on Kubernetes by Crunchy Data
https://www.crunchydata.com/
Apache License 2.0
1.01k stars 328 forks source link

pgnodemx: expected 1, got 2, lines from file /proc/self/cgroup #1399

Closed clayrisser closed 2 years ago

clayrisser commented 2 years ago

I get the following error when trying to run the crunchydb postgres image.

user=,db=,app=,client=FATAL:  pgnodemx: expected 1, got 2, lines from file /proc/self/cgroup

The image I am running is crunchydata/crunchy-postgres:centos8-13.4-4.7.2 on debain.

When I look at the /proc/self/cgroup file I get the following result.

1:net_cls:/
0::/

Here is the full log.

Starting wal-test_postgres_1 ... done
Attaching to wal-test_postgres_1
postgres_1  | nss_wrapper: user exists
postgres_1  | nss_wrapper: group exists
postgres_1  | nss_wrapper: environment configured
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Image mode found: postgres
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Starting in 'postgres' mode
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Setting PGROOT to /usr/pgsql-13.
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: PG_CTL_START_TIMEOUT set at: 60
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: PG_CTL_STOP_TIMEOUT set at: 60
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: PG_CTL_PROMOTE_TIMEOUT set at: 60
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Cleaning up the old postmaster.pid file..
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: User ID is set to uid=26(postgres) gid=26(postgres) groups=26(postgres).
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Working on primary..
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Initializing the primary database..
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: PGDATA already contains a database.
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Setting ARCHIVE_MODE to off.
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Setting ARCHIVE_TIMEOUT to 0.
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: Starting PostgreSQL..
postgres_1  | 2021-11-07 09:41:09 UTC [48]: [1-1] user=,db=,app=,client=LOG:  pgaudit extension initialized
postgres_1  | 2021-11-07 09:41:09 UTC [48]: [2-1] user=,db=,app=,client=FATAL:  pgnodemx: expected 1, got 2, lines from file /proc/self/cgroup
postgres_1  | 2021-11-07 09:41:09 UTC [48]: [3-1] user=,db=,app=,client=LOG:  database system is shut down
postgres_1  | Sun Nov  7 09:41:09 UTC 2021 INFO: PostgreSQL is shutting down. Exiting..
jkatz commented 2 years ago

Please report this to the pgnodemx project.

clayrisser commented 2 years ago

@jkatz sure

Here is the link to the new issue.

https://github.com/CrunchyData/pgnodemx/issues/6