Unable to start postgres in Fedora 39 Docker container

Problem summary

I can install and start postgres this way in a fresh F38 Docker container:

$ docker run -it registry.fedoraproject.org/38:latest bash

Then, in the container:

$ dnf -y install postgresql postgresql-contrib postgresql-server 
$ sudo -u postgres /usr/bin/initdb /var/lib/pgsql/data --locale=C.UTF-8 --encoding=UTF8
$ sudo -u postgres /usr/bin/pg_ctl -D /var/lib/pgsql/data start

If I switch to a Fedora 39 image

$ docker run -it registry.fedoraproject.org/39:latest bash

and run the same commands, starting postgres fails. (Full output is in posts following this one, due to the post length limit.)

I’m not sure how to troubleshoot this, as there seems to be no useful diagnostic output saying why postgres can’t be started. Does anyone know what’s going wrong here?

Output, successful F38 run

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Trying to pull registry.fedoraproject.org/38:latest...
Error: initializing source docker://registry.fedoraproject.org/38:latest: reading manifest latest in registry.fedoraproject.org/38: manifest unknown
[juckelman@midas docker]$ docker run -it registry.fedoraproject.org/fedora:38 bash
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
[root@7294ed2f308e /]# dnf -y install postgresql postgresql-contrib postgresql-server 
Fedora 38 - x86_64                              7.8 MB/s |  83 MB     00:10    
Fedora 38 openh264 (From Cisco) - x86_64        4.0 kB/s | 2.6 kB     00:00    
Fedora Modular 38 - x86_64                      2.6 MB/s | 2.8 MB     00:01    
Fedora 38 - x86_64 - Updates                    2.6 MB/s |  42 MB     00:16    
Fedora Modular 38 - x86_64 - Updates            2.6 MB/s | 2.2 MB     00:00    
Dependencies resolved.

... trimmed dnf output to fit into post ...

--------------------------------------------------------------------------------
Total                                           5.6 MB/s |  39 MB     00:07     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Upgrading        : systemd-libs-253.17-1.fc38.x86_64                     1/89 
  Installing       : postgresql-private-libs-15.4-1.fc38.x86_64            2/89 
  Installing       : postgresql-15.4-1.fc38.x86_64                         3/89 
  Installing       : libfdisk-2.38.1-4.fc38.x86_64                         4/89 
  Installing       : libxslt-1.1.39-1.fc38.x86_64                          5/89 
  Installing       : diffutils-3.10-1.fc38.x86_64                          6/89 
  Installing       : dbus-common-1:1.14.10-1.fc38.noarch                   7/89 
  Running scriptlet: dbus-common-1:1.14.10-1.fc38.noarch                   7/89 
  Running scriptlet: dbus-broker-33-1.fc38.x86_64                          8/89 
  Installing       : dbus-broker-33-1.fc38.x86_64                          8/89 
  Running scriptlet: dbus-broker-33-1.fc38.x86_64                          8/89 
  Installing       : dbus-1:1.14.10-1.fc38.x86_64                          9/89 
  Installing       : xkeyboard-config-2.38-1.fc38.noarch                  10/89 
  Installing       : libxkbcommon-1.5.0-2.fc38.x86_64                     11/89 
  Installing       : uuid-1.6.2-57.fc38.x86_64                            12/89 
  Installing       : qrencode-libs-4.1.1-4.fc38.x86_64                    13/89 
  Installing       : ncurses-6.4-3.20230114.fc38.x86_64                   14/89 
  Running scriptlet: libutempter-1.2.1-8.fc38.x86_64                      15/89 
  Installing       : libutempter-1.2.1-8.fc38.x86_64                      15/89 
  Installing       : util-linux-2.38.1-4.fc38.x86_64                      16/89 
warning: /etc/adjtime created as /etc/adjtime.rpmnew
 
  Installing       : libseccomp-2.5.3-4.fc38.x86_64                       17/89 
  Installing       : libicu-72.1-2.fc38.x86_64                            18/89 
  Installing       : libargon2-20190702-2.fc38.x86_64                     19/89 
  Installing       : kmod-libs-30-4.fc38.x86_64                           20/89 
  Installing       : device-mapper-libs-1.02.197-1.fc38.x86_64            21/89 
  Installing       : cryptsetup-libs-2.6.1-1.fc38.x86_64                  22/89 
  Installing       : device-mapper-1.02.197-1.fc38.x86_64                 23/89 
  Installing       : systemd-networkd-253.17-1.fc38.x86_64                24/89 
  Running scriptlet: systemd-networkd-253.17-1.fc38.x86_64                24/89 
  Installing       : systemd-pam-253.17-1.fc38.x86_64                     25/89 
  Installing       : systemd-resolved-253.17-1.fc38.x86_64                26/89 
  Running scriptlet: systemd-resolved-253.17-1.fc38.x86_64                26/89 
  Installing       : systemd-253.17-1.fc38.x86_64                         27/89 
  Running scriptlet: systemd-253.17-1.fc38.x86_64                         27/89 
Creating group 'input' with GID 104.
Creating group 'kvm' with GID 36.
Creating group 'render' with GID 105.
Creating group 'sgx' with GID 106.
Creating group 'systemd-journal' with GID 190.
Creating group 'systemd-network' with GID 192.
Creating user 'systemd-network' (systemd Network Management) with UID 192 and GID 192.
Creating group 'systemd-oom' with GID 999.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 999 and GID 999.
Creating group 'systemd-resolve' with GID 193.
Creating user 'systemd-resolve' (systemd Resolver) with UID 193 and GID 193.
 
  Running scriptlet: groff-base-1.22.4-11.fc38.x86_64                     28/89 
  Installing       : groff-base-1.22.4-11.fc38.x86_64                     28/89 
  Running scriptlet: groff-base-1.22.4-11.fc38.x86_64                     28/89 
  Installing       : perl-Digest-1.20-490.fc38.noarch                     29/89 
  Installing       : perl-Digest-MD5-2.58-490.fc38.x86_64                 30/89 
  Installing       : perl-B-1.83-498.fc38.x86_64                          31/89 
  Installing       : perl-FileHandle-2.03-498.fc38.noarch                 32/89 
  Installing       : perl-Data-Dumper-2.184-491.fc38.x86_64               33/89 
  Installing       : perl-libnet-3.15-1.fc38.noarch                       34/89 
  Installing       : perl-AutoLoader-5.74-498.fc38.noarch                 35/89 
  Installing       : perl-base-2.27-498.fc38.noarch                       36/89 
  Installing       : perl-URI-5.17-2.fc38.noarch                          37/89 
  Installing       : perl-Time-Local-2:1.300-490.fc38.noarch              38/89 
  Installing       : perl-Mozilla-CA-20221114-2.fc38.noarch               39/89 
  Installing       : perl-Text-Tabs+Wrap-2023.0511-1.fc38.noarch          40/89 
  Installing       : perl-if-0.61.000-498.fc38.noarch                     41/89 
  Installing       : perl-locale-1.10-498.fc38.noarch                     42/89 
  Installing       : perl-IO-Socket-IP-0.41-492.fc38.noarch               43/89 
  Installing       : perl-File-Path-2.18-490.fc38.noarch                  44/89 
  Installing       : perl-IO-Socket-SSL-2.081-1.fc38.noarch               45/89 
  Installing       : perl-Net-SSLeay-1.92-5.fc38.x86_64                   46/89 
  Installing       : perl-Pod-Escapes-1:1.07-490.fc38.noarch              47/89 
  Installing       : perl-Term-ANSIColor-5.01-491.fc38.noarch             48/89 
  Installing       : perl-Class-Struct-0.66-498.fc38.noarch               49/89 
  Installing       : perl-POSIX-2.03-498.fc38.x86_64                      50/89 
  Installing       : perl-IPC-Open3-1.22-498.fc38.noarch                  51/89 
  Installing       : perl-File-Temp-1:0.231.100-490.fc38.noarch           52/89 
  Installing       : perl-HTTP-Tiny-0.086-2.fc38.noarch                   53/89 
  Installing       : perl-Term-Cap-1.18-1.fc38.noarch                     54/89 
  Installing       : perl-Pod-Simple-1:3.43-491.fc38.noarch               55/89 
  Installing       : perl-Socket-4:2.036-2.fc38.x86_64                    56/89 
  Installing       : perl-SelectSaver-1.02-498.fc38.noarch                57/89 
  Installing       : perl-Symbol-1.09-498.fc38.noarch                     58/89 
  Installing       : perl-File-stat-1.12-498.fc38.noarch                  59/89 
  Installing       : perl-podlators-1:5.01-2.fc38.noarch                  60/89 
  Installing       : perl-Pod-Perldoc-3.28.01-491.fc38.noarch             61/89 
  Installing       : perl-Text-ParseWords-3.31-490.fc38.noarch            62/89 
  Installing       : perl-Fcntl-1.15-498.fc38.x86_64                      63/89 
  Installing       : perl-mro-1.26-498.fc38.x86_64                        64/89 
  Installing       : perl-IO-1.50-498.fc38.x86_64                         65/89 
  Installing       : perl-overloading-0.02-498.fc38.noarch                66/89 
  Installing       : perl-Pod-Usage-4:2.03-4.fc38.noarch                  67/89 
  Installing       : perl-MIME-Base64-3.16-490.fc38.x86_64                68/89 
  Installing       : perl-Scalar-List-Utils-5:1.63-490.fc38.x86_64        69/89 
  Installing       : perl-constant-1.33-491.fc38.noarch                   70/89 
  Installing       : perl-parent-1:0.241-1.fc38.noarch                    71/89 
  Installing       : perl-Errno-1.36-498.fc38.x86_64                      72/89 
  Installing       : perl-File-Basename-2.85-498.fc38.noarch              73/89 
  Installing       : perl-Getopt-Std-1.13-498.fc38.noarch                 74/89 
  Installing       : perl-Storable-1:3.26-490.fc38.x86_64                 75/89 
  Installing       : perl-overload-1.35-498.fc38.noarch                   76/89 
  Installing       : perl-vars-1.05-498.fc38.noarch                       77/89 
  Installing       : perl-Getopt-Long-1:2.54-2.fc38.noarch                78/89 
  Installing       : perl-Carp-1.52-490.fc38.noarch                       79/89 
  Installing       : perl-Exporter-5.77-490.fc38.noarch                   80/89 
  Installing       : perl-PathTools-3.84-490.fc38.x86_64                  81/89 
  Installing       : perl-NDBM_File-1.15-498.fc38.x86_64                  82/89 
  Installing       : perl-DynaLoader-1.52-498.fc38.x86_64                 83/89 
  Installing       : perl-Encode-4:3.19-493.fc38.x86_64                   84/89 
  Installing       : perl-libs-4:5.36.3-498.fc38.x86_64                   85/89 
  Installing       : perl-interpreter-4:5.36.3-498.fc38.x86_64            86/89 
  Installing       : postgresql-contrib-15.4-1.fc38.x86_64                87/89 
  Running scriptlet: postgresql-server-15.4-1.fc38.x86_64                 88/89 
  Installing       : postgresql-server-15.4-1.fc38.x86_64                 88/89 
  Running scriptlet: postgresql-server-15.4-1.fc38.x86_64                 88/89 
  Cleanup          : systemd-libs-253.14-1.fc38.x86_64                    89/89 
  Running scriptlet: systemd-resolved-253.17-1.fc38.x86_64                89/89 
  Running scriptlet: systemd-libs-253.14-1.fc38.x86_64                    89/89 
  Verifying        : cryptsetup-libs-2.6.1-1.fc38.x86_64                   1/89 
  Verifying        : dbus-broker-33-1.fc38.x86_64                          2/89 
  Verifying        : groff-base-1.22.4-11.fc38.x86_64                      3/89 
  Verifying        : kmod-libs-30-4.fc38.x86_64                            4/89 
  Verifying        : libargon2-20190702-2.fc38.x86_64                      5/89 
  Verifying        : libfdisk-2.38.1-4.fc38.x86_64                         6/89 
  Verifying        : libicu-72.1-2.fc38.x86_64                             7/89 
  Verifying        : libseccomp-2.5.3-4.fc38.x86_64                        8/89 
  Verifying        : libutempter-1.2.1-8.fc38.x86_64                       9/89 
  Verifying        : libxkbcommon-1.5.0-2.fc38.x86_64                     10/89 
  Verifying        : ncurses-6.4-3.20230114.fc38.x86_64                   11/89 
  Verifying        : perl-Carp-1.52-490.fc38.noarch                       12/89 
  Verifying        : perl-Data-Dumper-2.184-491.fc38.x86_64               13/89 
  Verifying        : perl-Digest-1.20-490.fc38.noarch                     14/89 
  Verifying        : perl-Digest-MD5-2.58-490.fc38.x86_64                 15/89 
  Verifying        : perl-Encode-4:3.19-493.fc38.x86_64                   16/89 
  Verifying        : perl-Exporter-5.77-490.fc38.noarch                   17/89 
  Verifying        : perl-File-Path-2.18-490.fc38.noarch                  18/89 
  Verifying        : perl-File-Temp-1:0.231.100-490.fc38.noarch           19/89 
  Verifying        : perl-Getopt-Long-1:2.54-2.fc38.noarch                20/89 
  Verifying        : perl-IO-Socket-IP-0.41-492.fc38.noarch               21/89 
  Verifying        : perl-IO-Socket-SSL-2.081-1.fc38.noarch               22/89 
  Verifying        : perl-MIME-Base64-3.16-490.fc38.x86_64                23/89 
  Verifying        : perl-Mozilla-CA-20221114-2.fc38.noarch               24/89 
  Verifying        : perl-Net-SSLeay-1.92-5.fc38.x86_64                   25/89 
  Verifying        : perl-PathTools-3.84-490.fc38.x86_64                  26/89 
  Verifying        : perl-Pod-Escapes-1:1.07-490.fc38.noarch              27/89 
  Verifying        : perl-Pod-Perldoc-3.28.01-491.fc38.noarch             28/89 
  Verifying        : perl-Pod-Simple-1:3.43-491.fc38.noarch               29/89 
  Verifying        : perl-Pod-Usage-4:2.03-4.fc38.noarch                  30/89 
  Verifying        : perl-Scalar-List-Utils-5:1.63-490.fc38.x86_64        31/89 
  Verifying        : perl-Socket-4:2.036-2.fc38.x86_64                    32/89 
  Verifying        : perl-Storable-1:3.26-490.fc38.x86_64                 33/89 
  Verifying        : perl-Term-ANSIColor-5.01-491.fc38.noarch             34/89 
  Verifying        : perl-Term-Cap-1.18-1.fc38.noarch                     35/89 
  Verifying        : perl-Text-ParseWords-3.31-490.fc38.noarch            36/89 
  Verifying        : perl-Time-Local-2:1.300-490.fc38.noarch              37/89 
  Verifying        : perl-URI-5.17-2.fc38.noarch                          38/89 
  Verifying        : perl-constant-1.33-491.fc38.noarch                   39/89 
  Verifying        : perl-libnet-3.15-1.fc38.noarch                       40/89 
  Verifying        : perl-parent-1:0.241-1.fc38.noarch                    41/89 
  Verifying        : perl-podlators-1:5.01-2.fc38.noarch                  42/89 
  Verifying        : qrencode-libs-4.1.1-4.fc38.x86_64                    43/89 
  Verifying        : util-linux-2.38.1-4.fc38.x86_64                      44/89 
  Verifying        : uuid-1.6.2-57.fc38.x86_64                            45/89 
  Verifying        : xkeyboard-config-2.38-1.fc38.noarch                  46/89 
  Verifying        : dbus-1:1.14.10-1.fc38.x86_64                         47/89 
  Verifying        : dbus-common-1:1.14.10-1.fc38.noarch                  48/89 
  Verifying        : device-mapper-1.02.197-1.fc38.x86_64                 49/89 
  Verifying        : device-mapper-libs-1.02.197-1.fc38.x86_64            50/89 
  Verifying        : diffutils-3.10-1.fc38.x86_64                         51/89 
  Verifying        : libxslt-1.1.39-1.fc38.x86_64                         52/89 
  Verifying        : perl-AutoLoader-5.74-498.fc38.noarch                 53/89 
  Verifying        : perl-B-1.83-498.fc38.x86_64                          54/89 
  Verifying        : perl-Class-Struct-0.66-498.fc38.noarch               55/89 
  Verifying        : perl-DynaLoader-1.52-498.fc38.x86_64                 56/89 
  Verifying        : perl-Errno-1.36-498.fc38.x86_64                      57/89 
  Verifying        : perl-Fcntl-1.15-498.fc38.x86_64                      58/89 
  Verifying        : perl-File-Basename-2.85-498.fc38.noarch              59/89 
  Verifying        : perl-File-stat-1.12-498.fc38.noarch                  60/89 
  Verifying        : perl-FileHandle-2.03-498.fc38.noarch                 61/89 
  Verifying        : perl-Getopt-Std-1.13-498.fc38.noarch                 62/89 
  Verifying        : perl-HTTP-Tiny-0.086-2.fc38.noarch                   63/89 
  Verifying        : perl-IO-1.50-498.fc38.x86_64                         64/89 
  Verifying        : perl-IPC-Open3-1.22-498.fc38.noarch                  65/89 
  Verifying        : perl-NDBM_File-1.15-498.fc38.x86_64                  66/89 
  Verifying        : perl-POSIX-2.03-498.fc38.x86_64                      67/89 
  Verifying        : perl-SelectSaver-1.02-498.fc38.noarch                68/89 
  Verifying        : perl-Symbol-1.09-498.fc38.noarch                     69/89 
  Verifying        : perl-Text-Tabs+Wrap-2023.0511-1.fc38.noarch          70/89 
  Verifying        : perl-base-2.27-498.fc38.noarch                       71/89 
  Verifying        : perl-if-0.61.000-498.fc38.noarch                     72/89 
  Verifying        : perl-interpreter-4:5.36.3-498.fc38.x86_64            73/89 
  Verifying        : perl-libs-4:5.36.3-498.fc38.x86_64                   74/89 
  Verifying        : perl-locale-1.10-498.fc38.noarch                     75/89 
  Verifying        : perl-mro-1.26-498.fc38.x86_64                        76/89 
  Verifying        : perl-overload-1.35-498.fc38.noarch                   77/89 
  Verifying        : perl-overloading-0.02-498.fc38.noarch                78/89 
  Verifying        : perl-vars-1.05-498.fc38.noarch                       79/89 
  Verifying        : postgresql-15.4-1.fc38.x86_64                        80/89 
  Verifying        : postgresql-contrib-15.4-1.fc38.x86_64                81/89 
  Verifying        : postgresql-private-libs-15.4-1.fc38.x86_64           82/89 
  Verifying        : postgresql-server-15.4-1.fc38.x86_64                 83/89 
  Verifying        : systemd-253.17-1.fc38.x86_64                         84/89 
  Verifying        : systemd-networkd-253.17-1.fc38.x86_64                85/89 
  Verifying        : systemd-pam-253.17-1.fc38.x86_64                     86/89 
  Verifying        : systemd-resolved-253.17-1.fc38.x86_64                87/89 
  Verifying        : systemd-libs-253.17-1.fc38.x86_64                    88/89 
  Verifying        : systemd-libs-253.14-1.fc38.x86_64                    89/89 
 
Upgraded:
  systemd-libs-253.17-1.fc38.x86_64                                             
Installed:
  cryptsetup-libs-2.6.1-1.fc38.x86_64                                           
  dbus-1:1.14.10-1.fc38.x86_64                                                  
  dbus-broker-33-1.fc38.x86_64                                                  
  dbus-common-1:1.14.10-1.fc38.noarch                                           
  device-mapper-1.02.197-1.fc38.x86_64                                          
  device-mapper-libs-1.02.197-1.fc38.x86_64                                     
  diffutils-3.10-1.fc38.x86_64                                                  
  groff-base-1.22.4-11.fc38.x86_64                                              
  kmod-libs-30-4.fc38.x86_64                                                    
  libargon2-20190702-2.fc38.x86_64                                              
  libfdisk-2.38.1-4.fc38.x86_64                                                 
  libicu-72.1-2.fc38.x86_64                                                     
  libseccomp-2.5.3-4.fc38.x86_64                                                
  libutempter-1.2.1-8.fc38.x86_64                                               
  libxkbcommon-1.5.0-2.fc38.x86_64                                              
  libxslt-1.1.39-1.fc38.x86_64                                                  
  ncurses-6.4-3.20230114.fc38.x86_64                                            
  perl-AutoLoader-5.74-498.fc38.noarch                                          
  perl-B-1.83-498.fc38.x86_64                                                   
  perl-Carp-1.52-490.fc38.noarch                                                
  perl-Class-Struct-0.66-498.fc38.noarch                                        
  perl-Data-Dumper-2.184-491.fc38.x86_64                                        
  perl-Digest-1.20-490.fc38.noarch                                              
  perl-Digest-MD5-2.58-490.fc38.x86_64                                          
  perl-DynaLoader-1.52-498.fc38.x86_64                                          
  perl-Encode-4:3.19-493.fc38.x86_64                                            
  perl-Errno-1.36-498.fc38.x86_64                                               
  perl-Exporter-5.77-490.fc38.noarch                                            
  perl-Fcntl-1.15-498.fc38.x86_64                                               
  perl-File-Basename-2.85-498.fc38.noarch                                       
  perl-File-Path-2.18-490.fc38.noarch                                           
  perl-File-Temp-1:0.231.100-490.fc38.noarch                                    
  perl-File-stat-1.12-498.fc38.noarch                                           
  perl-FileHandle-2.03-498.fc38.noarch                                          
  perl-Getopt-Long-1:2.54-2.fc38.noarch                                         
  perl-Getopt-Std-1.13-498.fc38.noarch                                          
  perl-HTTP-Tiny-0.086-2.fc38.noarch                                            
  perl-IO-1.50-498.fc38.x86_64                                                  
  perl-IO-Socket-IP-0.41-492.fc38.noarch                                        
  perl-IO-Socket-SSL-2.081-1.fc38.noarch                                        
  perl-IPC-Open3-1.22-498.fc38.noarch                                           
  perl-MIME-Base64-3.16-490.fc38.x86_64                                         
  perl-Mozilla-CA-20221114-2.fc38.noarch                                        
  perl-NDBM_File-1.15-498.fc38.x86_64                                           
  perl-Net-SSLeay-1.92-5.fc38.x86_64                                            
  perl-POSIX-2.03-498.fc38.x86_64                                               
  perl-PathTools-3.84-490.fc38.x86_64                                           
  perl-Pod-Escapes-1:1.07-490.fc38.noarch                                       
  perl-Pod-Perldoc-3.28.01-491.fc38.noarch                                      
  perl-Pod-Simple-1:3.43-491.fc38.noarch                                        
  perl-Pod-Usage-4:2.03-4.fc38.noarch                                           
  perl-Scalar-List-Utils-5:1.63-490.fc38.x86_64                                 
  perl-SelectSaver-1.02-498.fc38.noarch                                         
  perl-Socket-4:2.036-2.fc38.x86_64                                             
  perl-Storable-1:3.26-490.fc38.x86_64                                          
  perl-Symbol-1.09-498.fc38.noarch                                              
  perl-Term-ANSIColor-5.01-491.fc38.noarch                                      
  perl-Term-Cap-1.18-1.fc38.noarch                                              
  perl-Text-ParseWords-3.31-490.fc38.noarch                                     
  perl-Text-Tabs+Wrap-2023.0511-1.fc38.noarch                                   
  perl-Time-Local-2:1.300-490.fc38.noarch                                       
  perl-URI-5.17-2.fc38.noarch                                                   
  perl-base-2.27-498.fc38.noarch                                                
  perl-constant-1.33-491.fc38.noarch                                            
  perl-if-0.61.000-498.fc38.noarch                                              
  perl-interpreter-4:5.36.3-498.fc38.x86_64                                     
  perl-libnet-3.15-1.fc38.noarch                                                
  perl-libs-4:5.36.3-498.fc38.x86_64                                            
  perl-locale-1.10-498.fc38.noarch                                              
  perl-mro-1.26-498.fc38.x86_64                                                 
  perl-overload-1.35-498.fc38.noarch                                            
  perl-overloading-0.02-498.fc38.noarch                                         
  perl-parent-1:0.241-1.fc38.noarch                                             
  perl-podlators-1:5.01-2.fc38.noarch                                           
  perl-vars-1.05-498.fc38.noarch                                                
  postgresql-15.4-1.fc38.x86_64                                                 
  postgresql-contrib-15.4-1.fc38.x86_64                                         
  postgresql-private-libs-15.4-1.fc38.x86_64                                    
  postgresql-server-15.4-1.fc38.x86_64                                          
  qrencode-libs-4.1.1-4.fc38.x86_64                                             
  systemd-253.17-1.fc38.x86_64                                                  
  systemd-networkd-253.17-1.fc38.x86_64                                         
  systemd-pam-253.17-1.fc38.x86_64                                              
  systemd-resolved-253.17-1.fc38.x86_64                                         
  util-linux-2.38.1-4.fc38.x86_64                                               
  uuid-1.6.2-57.fc38.x86_64                                                     
  xkeyboard-config-2.38-1.fc38.noarch                                           
 
Complete!
[root@7294ed2f308e /]# sudo -u postgres /usr/bin/initdb /var/lib/pgsql/data --locale=C.UTF-8 --encoding=UTF8
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
 
The database cluster will be initialized with locale "C.UTF-8".
The default text search configuration will be set to "english".
 
Data page checksums are disabled.
 
fixing permissions on existing directory /var/lib/pgsql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
 
initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
 
Success. You can now start the database server using:
 
    /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start
 
[root@7294ed2f308e /]# sudo -u postgres /usr/bin/pg_ctl -D /var/lib/pgsql/data start
waiting for server to start....2024-05-30 09:52:24.410 UTC [234] LOG:  redirecting log output to logging collector process
2024-05-30 09:52:24.410 UTC [234] HINT:  Future log output will appear in directory "log".
 done
server started

Output, failed F39 run

[juckelman@midas docker]$ docker run -it registry.fedoraproject.org/fedora:39 bash
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
[root@e726e08856f9 /]# dnf -y install postgresql postgresql-contrib postgresql-server
Fedora 39 - x86_64                              5.5 MB/s |  89 MB     00:16    
Fedora 39 openh264 (From Cisco) - x86_64        4.3 kB/s | 2.6 kB     00:00    
Fedora 39 - x86_64 - Updates                    7.5 MB/s |  38 MB     00:05    
Dependencies resolved.

... trimmed dnf output to fit into post ...

--------------------------------------------------------------------------------
Total                                           4.5 MB/s |  39 MB     00:08     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Installing       : postgresql-private-libs-15.6-1.fc39.x86_64            1/88 
  Installing       : postgresql-15.6-1.fc39.x86_64                         2/88 
  Installing       : libfdisk-2.39.2-1.fc39.x86_64                         3/88 
  Installing       : xkeyboard-config-2.40-1.fc39.noarch                   4/88 
  Installing       : libxkbcommon-1.6.0-1.fc39.x86_64                      5/88 
  Installing       : libxslt-1.1.39-1.fc39.x86_64                          6/88 
  Running scriptlet: groff-base-1.23.0-3.fc39.x86_64                       7/88 
  Installing       : groff-base-1.23.0-3.fc39.x86_64                       7/88 
  Running scriptlet: groff-base-1.23.0-3.fc39.x86_64                       7/88 
  Installing       : uuid-1.6.2-60.fc39.x86_64                             8/88 
  Installing       : qrencode-libs-4.1.1-5.fc39.x86_64                     9/88 
  Installing       : ncurses-6.4-7.20230520.fc39.x86_64                   10/88 
  Installing       : perl-Digest-1.20-500.fc39.noarch                     11/88 
  Installing       : perl-Digest-MD5-2.58-500.fc39.x86_64                 12/88 
  Installing       : perl-B-1.88-502.fc39.x86_64                          13/88 
  Installing       : perl-FileHandle-2.05-502.fc39.noarch                 14/88 
  Installing       : perl-Data-Dumper-2.188-501.fc39.x86_64               15/88 
  Installing       : perl-libnet-3.15-501.fc39.noarch                     16/88 
  Installing       : perl-AutoLoader-5.74-502.fc39.noarch                 17/88 
  Installing       : perl-base-2.27-502.fc39.noarch                       18/88 
  Installing       : perl-URI-5.21-1.fc39.noarch                          19/88 
  Installing       : perl-Text-Tabs+Wrap-2023.0511-3.fc39.noarch          20/88 
  Installing       : perl-Time-Local-2:1.350-3.fc39.noarch                21/88 
  Installing       : perl-Mozilla-CA-20230801-1.fc39.noarch               22/88 
  Installing       : perl-if-0.61.000-502.fc39.noarch                     23/88 
  Installing       : perl-locale-1.10-502.fc39.noarch                     24/88 
  Installing       : perl-IO-Socket-IP-0.42-1.fc39.noarch                 25/88 
  Installing       : perl-File-Path-2.18-500.fc39.noarch                  26/88 
  Installing       : perl-IO-Socket-SSL-2.083-3.fc39.noarch               27/88 
  Installing       : perl-Net-SSLeay-1.92-10.fc39.x86_64                  28/88 
  Installing       : perl-Pod-Escapes-1:1.07-500.fc39.noarch              29/88 
  Installing       : perl-Term-ANSIColor-5.01-501.fc39.noarch             30/88 
  Installing       : perl-Class-Struct-0.68-502.fc39.noarch               31/88 
  Installing       : perl-POSIX-2.13-502.fc39.x86_64                      32/88 
  Installing       : perl-IPC-Open3-1.22-502.fc39.noarch                  33/88 
  Installing       : perl-File-Temp-1:0.231.100-500.fc39.noarch           34/88 
  Installing       : perl-HTTP-Tiny-0.088-3.fc39.noarch                   35/88 
  Installing       : perl-Pod-Simple-1:3.45-4.fc39.noarch                 36/88 
  Installing       : perl-Term-Cap-1.18-500.fc39.noarch                   37/88 
  Installing       : perl-Socket-4:2.037-3.fc39.x86_64                    38/88 
  Installing       : perl-SelectSaver-1.02-502.fc39.noarch                39/88 
  Installing       : perl-Symbol-1.09-502.fc39.noarch                     40/88 
  Installing       : perl-File-stat-1.13-502.fc39.noarch                  41/88 
  Installing       : perl-Pod-Perldoc-3.28.01-501.fc39.noarch             42/88 
  Installing       : perl-podlators-1:5.01-500.fc39.noarch                43/88 
  Installing       : perl-Text-ParseWords-3.31-500.fc39.noarch            44/88 
  Installing       : perl-Fcntl-1.15-502.fc39.x86_64                      45/88 
  Installing       : perl-mro-1.28-502.fc39.x86_64                        46/88 
  Installing       : perl-IO-1.52-502.fc39.x86_64                         47/88 
  Installing       : perl-overloading-0.02-502.fc39.noarch                48/88 
  Installing       : perl-Pod-Usage-4:2.03-500.fc39.noarch                49/88 
  Installing       : perl-MIME-Base64-3.16-500.fc39.x86_64                50/88 
  Installing       : perl-Scalar-List-Utils-5:1.63-500.fc39.x86_64        51/88 
  Installing       : perl-constant-1.33-501.fc39.noarch                   52/88 
  Installing       : perl-parent-1:0.241-500.fc39.noarch                  53/88 
  Installing       : perl-Errno-1.37-502.fc39.x86_64                      54/88 
  Installing       : perl-File-Basename-2.86-502.fc39.noarch              55/88 
  Installing       : perl-Getopt-Std-1.13-502.fc39.noarch                 56/88 
  Installing       : perl-Storable-1:3.32-500.fc39.x86_64                 57/88 
  Installing       : perl-overload-1.37-502.fc39.noarch                   58/88 
  Installing       : perl-vars-1.05-502.fc39.noarch                       59/88 
  Installing       : perl-Getopt-Long-1:2.54-500.fc39.noarch              60/88 
  Installing       : perl-Carp-1.54-500.fc39.noarch                       61/88 
  Installing       : perl-Exporter-5.77-500.fc39.noarch                   62/88 
  Installing       : perl-PathTools-3.89-500.fc39.x86_64                  63/88 
  Installing       : perl-NDBM_File-1.16-502.fc39.x86_64                  64/88 
  Installing       : perl-DynaLoader-1.54-502.fc39.x86_64                 65/88 
  Installing       : perl-Encode-4:3.19-500.fc39.x86_64                   66/88 
  Installing       : perl-libs-4:5.38.2-502.fc39.x86_64                   67/88 
  Installing       : perl-interpreter-4:5.38.2-502.fc39.x86_64            68/88 
  Installing       : libseccomp-2.5.3-6.fc39.x86_64                       69/88 
  Installing       : libicu-73.2-2.fc39.x86_64                            70/88 
  Installing       : libbpf-2:1.1.0-4.fc39.x86_64                         71/88 
  Installing       : libargon2-20190702-3.fc39.x86_64                     72/88 
  Installing       : kmod-libs-30-6.fc39.x86_64                           73/88 
  Installing       : diffutils-3.10-3.fc39.x86_64                         74/88 
  Installing       : dbus-common-1:1.14.10-1.fc39.noarch                  75/88 
  Running scriptlet: dbus-common-1:1.14.10-1.fc39.noarch                  75/88 
  Running scriptlet: dbus-broker-36-2.fc39.x86_64                         76/88 
  Installing       : dbus-broker-36-2.fc39.x86_64                         76/88 
  Running scriptlet: dbus-broker-36-2.fc39.x86_64                         76/88 
  Installing       : dbus-1:1.14.10-1.fc39.x86_64                         77/88 
  Running scriptlet: libutempter-1.2.1-10.fc39.x86_64                     78/88 
  Installing       : libutempter-1.2.1-10.fc39.x86_64                     78/88 
  Installing       : systemd-networkd-254.5-2.fc39.x86_64                 79/88 
  Running scriptlet: systemd-networkd-254.5-2.fc39.x86_64                 79/88 
  Installing       : systemd-pam-254.5-2.fc39.x86_64                      80/88 
  Installing       : systemd-resolved-254.5-2.fc39.x86_64                 81/88 
  Running scriptlet: systemd-resolved-254.5-2.fc39.x86_64                 81/88 
  Installing       : util-linux-2.39.2-1.fc39.x86_64                      82/88 
warning: /etc/adjtime created as /etc/adjtime.rpmnew
 
  Installing       : device-mapper-libs-1.02.197-1.fc39.x86_64            83/88 
  Installing       : cryptsetup-libs-2.6.1-3.fc39.x86_64                  84/88 
  Installing       : systemd-254.5-2.fc39.x86_64                          85/88 
  Running scriptlet: systemd-254.5-2.fc39.x86_64                          85/88 
Creating group 'input' with GID 104.
Creating group 'kvm' with GID 36.
Creating group 'render' with GID 105.
Creating group 'sgx' with GID 106.
Creating group 'systemd-journal' with GID 190.
Creating group 'systemd-network' with GID 192.
Creating user 'systemd-network' (systemd Network Management) with UID 192 and GID 192.
Creating group 'systemd-oom' with GID 999.
Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 999 and GID 999.
Creating group 'systemd-resolve' with GID 193.
Creating user 'systemd-resolve' (systemd Resolver) with UID 193 and GID 193.
 
  Installing       : device-mapper-1.02.197-1.fc39.x86_64                 86/88 
  Running scriptlet: postgresql-server-15.6-1.fc39.x86_64                 87/88 
  Installing       : postgresql-server-15.6-1.fc39.x86_64                 87/88 
  Running scriptlet: postgresql-server-15.6-1.fc39.x86_64                 87/88 
  Installing       : postgresql-contrib-15.6-1.fc39.x86_64                88/88 
  Running scriptlet: systemd-resolved-254.5-2.fc39.x86_64                 88/88 
  Running scriptlet: postgresql-contrib-15.6-1.fc39.x86_64                88/88 
  Verifying        : cryptsetup-libs-2.6.1-3.fc39.x86_64                   1/88 
  Verifying        : dbus-1:1.14.10-1.fc39.x86_64                          2/88 
  Verifying        : dbus-common-1:1.14.10-1.fc39.noarch                   3/88 
  Verifying        : diffutils-3.10-3.fc39.x86_64                          4/88 
  Verifying        : kmod-libs-30-6.fc39.x86_64                            5/88 
  Verifying        : libargon2-20190702-3.fc39.x86_64                      6/88 
  Verifying        : libbpf-2:1.1.0-4.fc39.x86_64                          7/88 
  Verifying        : libfdisk-2.39.2-1.fc39.x86_64                         8/88 
  Verifying        : libicu-73.2-2.fc39.x86_64                             9/88 
  Verifying        : libseccomp-2.5.3-6.fc39.x86_64                       10/88 
  Verifying        : libutempter-1.2.1-10.fc39.x86_64                     11/88 
  Verifying        : ncurses-6.4-7.20230520.fc39.x86_64                   12/88 
  Verifying        : perl-Carp-1.54-500.fc39.noarch                       13/88 
  Verifying        : perl-Data-Dumper-2.188-501.fc39.x86_64               14/88 
  Verifying        : perl-Digest-1.20-500.fc39.noarch                     15/88 
  Verifying        : perl-Digest-MD5-2.58-500.fc39.x86_64                 16/88 
  Verifying        : perl-Encode-4:3.19-500.fc39.x86_64                   17/88 
  Verifying        : perl-Exporter-5.77-500.fc39.noarch                   18/88 
  Verifying        : perl-File-Path-2.18-500.fc39.noarch                  19/88 
  Verifying        : perl-File-Temp-1:0.231.100-500.fc39.noarch           20/88 
  Verifying        : perl-Getopt-Long-1:2.54-500.fc39.noarch              21/88 
  Verifying        : perl-HTTP-Tiny-0.088-3.fc39.noarch                   22/88 
  Verifying        : perl-IO-Socket-IP-0.42-1.fc39.noarch                 23/88 
  Verifying        : perl-IO-Socket-SSL-2.083-3.fc39.noarch               24/88 
  Verifying        : perl-MIME-Base64-3.16-500.fc39.x86_64                25/88 
  Verifying        : perl-Mozilla-CA-20230801-1.fc39.noarch               26/88 
  Verifying        : perl-Net-SSLeay-1.92-10.fc39.x86_64                  27/88 
  Verifying        : perl-PathTools-3.89-500.fc39.x86_64                  28/88 
  Verifying        : perl-Pod-Escapes-1:1.07-500.fc39.noarch              29/88 
  Verifying        : perl-Pod-Perldoc-3.28.01-501.fc39.noarch             30/88 
  Verifying        : perl-Pod-Simple-1:3.45-4.fc39.noarch                 31/88 
  Verifying        : perl-Pod-Usage-4:2.03-500.fc39.noarch                32/88 
  Verifying        : perl-Scalar-List-Utils-5:1.63-500.fc39.x86_64        33/88 
  Verifying        : perl-Socket-4:2.037-3.fc39.x86_64                    34/88 
  Verifying        : perl-Storable-1:3.32-500.fc39.x86_64                 35/88 
  Verifying        : perl-Term-ANSIColor-5.01-501.fc39.noarch             36/88 
  Verifying        : perl-Term-Cap-1.18-500.fc39.noarch                   37/88 
  Verifying        : perl-Text-ParseWords-3.31-500.fc39.noarch            38/88 
  Verifying        : perl-Text-Tabs+Wrap-2023.0511-3.fc39.noarch          39/88 
  Verifying        : perl-Time-Local-2:1.350-3.fc39.noarch                40/88 
  Verifying        : perl-URI-5.21-1.fc39.noarch                          41/88 
  Verifying        : perl-constant-1.33-501.fc39.noarch                   42/88 
  Verifying        : perl-libnet-3.15-501.fc39.noarch                     43/88 
  Verifying        : perl-parent-1:0.241-500.fc39.noarch                  44/88 
  Verifying        : perl-podlators-1:5.01-500.fc39.noarch                45/88 
  Verifying        : qrencode-libs-4.1.1-5.fc39.x86_64                    46/88 
  Verifying        : systemd-254.5-2.fc39.x86_64                          47/88 
  Verifying        : systemd-networkd-254.5-2.fc39.x86_64                 48/88 
  Verifying        : systemd-pam-254.5-2.fc39.x86_64                      49/88 
  Verifying        : systemd-resolved-254.5-2.fc39.x86_64                 50/88 
  Verifying        : util-linux-2.39.2-1.fc39.x86_64                      51/88 
  Verifying        : uuid-1.6.2-60.fc39.x86_64                            52/88 
  Verifying        : dbus-broker-36-2.fc39.x86_64                         53/88 
  Verifying        : device-mapper-1.02.197-1.fc39.x86_64                 54/88 
  Verifying        : device-mapper-libs-1.02.197-1.fc39.x86_64            55/88 
  Verifying        : groff-base-1.23.0-3.fc39.x86_64                      56/88 
  Verifying        : libxkbcommon-1.6.0-1.fc39.x86_64                     57/88 
  Verifying        : libxslt-1.1.39-1.fc39.x86_64                         58/88 
  Verifying        : perl-AutoLoader-5.74-502.fc39.noarch                 59/88 
  Verifying        : perl-B-1.88-502.fc39.x86_64                          60/88 
  Verifying        : perl-Class-Struct-0.68-502.fc39.noarch               61/88 
  Verifying        : perl-DynaLoader-1.54-502.fc39.x86_64                 62/88 
  Verifying        : perl-Errno-1.37-502.fc39.x86_64                      63/88 
  Verifying        : perl-Fcntl-1.15-502.fc39.x86_64                      64/88 
  Verifying        : perl-File-Basename-2.86-502.fc39.noarch              65/88 
  Verifying        : perl-File-stat-1.13-502.fc39.noarch                  66/88 
  Verifying        : perl-FileHandle-2.05-502.fc39.noarch                 67/88 
  Verifying        : perl-Getopt-Std-1.13-502.fc39.noarch                 68/88 
  Verifying        : perl-IO-1.52-502.fc39.x86_64                         69/88 
  Verifying        : perl-IPC-Open3-1.22-502.fc39.noarch                  70/88 
  Verifying        : perl-NDBM_File-1.16-502.fc39.x86_64                  71/88 
  Verifying        : perl-POSIX-2.13-502.fc39.x86_64                      72/88 
  Verifying        : perl-SelectSaver-1.02-502.fc39.noarch                73/88 
  Verifying        : perl-Symbol-1.09-502.fc39.noarch                     74/88 
  Verifying        : perl-base-2.27-502.fc39.noarch                       75/88 
  Verifying        : perl-if-0.61.000-502.fc39.noarch                     76/88 
  Verifying        : perl-interpreter-4:5.38.2-502.fc39.x86_64            77/88 
  Verifying        : perl-libs-4:5.38.2-502.fc39.x86_64                   78/88 
  Verifying        : perl-locale-1.10-502.fc39.noarch                     79/88 
  Verifying        : perl-mro-1.28-502.fc39.x86_64                        80/88 
  Verifying        : perl-overload-1.37-502.fc39.noarch                   81/88 
  Verifying        : perl-overloading-0.02-502.fc39.noarch                82/88 
  Verifying        : perl-vars-1.05-502.fc39.noarch                       83/88 
  Verifying        : postgresql-15.6-1.fc39.x86_64                        84/88 
  Verifying        : postgresql-contrib-15.6-1.fc39.x86_64                85/88 
  Verifying        : postgresql-private-libs-15.6-1.fc39.x86_64           86/88 
  Verifying        : postgresql-server-15.6-1.fc39.x86_64                 87/88 
  Verifying        : xkeyboard-config-2.40-1.fc39.noarch                  88/88 
 
Installed:
  cryptsetup-libs-2.6.1-3.fc39.x86_64                                           
  dbus-1:1.14.10-1.fc39.x86_64                                                  
  dbus-broker-36-2.fc39.x86_64                                                  
  dbus-common-1:1.14.10-1.fc39.noarch                                           
  device-mapper-1.02.197-1.fc39.x86_64                                          
  device-mapper-libs-1.02.197-1.fc39.x86_64                                     
  diffutils-3.10-3.fc39.x86_64                                                  
  groff-base-1.23.0-3.fc39.x86_64                                               
  kmod-libs-30-6.fc39.x86_64                                                    
  libargon2-20190702-3.fc39.x86_64                                              
  libbpf-2:1.1.0-4.fc39.x86_64                                                  
  libfdisk-2.39.2-1.fc39.x86_64                                                 
  libicu-73.2-2.fc39.x86_64                                                     
  libseccomp-2.5.3-6.fc39.x86_64                                                
  libutempter-1.2.1-10.fc39.x86_64                                              
  libxkbcommon-1.6.0-1.fc39.x86_64                                              
  libxslt-1.1.39-1.fc39.x86_64                                                  
  ncurses-6.4-7.20230520.fc39.x86_64                                            
  perl-AutoLoader-5.74-502.fc39.noarch                                          
  perl-B-1.88-502.fc39.x86_64                                                   
  perl-Carp-1.54-500.fc39.noarch                                                
  perl-Class-Struct-0.68-502.fc39.noarch                                        
  perl-Data-Dumper-2.188-501.fc39.x86_64                                        
  perl-Digest-1.20-500.fc39.noarch                                              
  perl-Digest-MD5-2.58-500.fc39.x86_64                                          
  perl-DynaLoader-1.54-502.fc39.x86_64                                          
  perl-Encode-4:3.19-500.fc39.x86_64                                            
  perl-Errno-1.37-502.fc39.x86_64                                               
  perl-Exporter-5.77-500.fc39.noarch                                            
  perl-Fcntl-1.15-502.fc39.x86_64                                               
  perl-File-Basename-2.86-502.fc39.noarch                                       
  perl-File-Path-2.18-500.fc39.noarch                                           
  perl-File-Temp-1:0.231.100-500.fc39.noarch                                    
  perl-File-stat-1.13-502.fc39.noarch                                           
  perl-FileHandle-2.05-502.fc39.noarch                                          
  perl-Getopt-Long-1:2.54-500.fc39.noarch                                       
  perl-Getopt-Std-1.13-502.fc39.noarch                                          
  perl-HTTP-Tiny-0.088-3.fc39.noarch                                            
  perl-IO-1.52-502.fc39.x86_64                                                  
  perl-IO-Socket-IP-0.42-1.fc39.noarch                                          
  perl-IO-Socket-SSL-2.083-3.fc39.noarch                                        
  perl-IPC-Open3-1.22-502.fc39.noarch                                           
  perl-MIME-Base64-3.16-500.fc39.x86_64                                         
  perl-Mozilla-CA-20230801-1.fc39.noarch                                        
  perl-NDBM_File-1.16-502.fc39.x86_64                                           
  perl-Net-SSLeay-1.92-10.fc39.x86_64                                           
  perl-POSIX-2.13-502.fc39.x86_64                                               
  perl-PathTools-3.89-500.fc39.x86_64                                           
  perl-Pod-Escapes-1:1.07-500.fc39.noarch                                       
  perl-Pod-Perldoc-3.28.01-501.fc39.noarch                                      
  perl-Pod-Simple-1:3.45-4.fc39.noarch                                          
  perl-Pod-Usage-4:2.03-500.fc39.noarch                                         
  perl-Scalar-List-Utils-5:1.63-500.fc39.x86_64                                 
  perl-SelectSaver-1.02-502.fc39.noarch                                         
  perl-Socket-4:2.037-3.fc39.x86_64                                             
  perl-Storable-1:3.32-500.fc39.x86_64                                          
  perl-Symbol-1.09-502.fc39.noarch                                              
  perl-Term-ANSIColor-5.01-501.fc39.noarch                                      
  perl-Term-Cap-1.18-500.fc39.noarch                                            
  perl-Text-ParseWords-3.31-500.fc39.noarch                                     
  perl-Text-Tabs+Wrap-2023.0511-3.fc39.noarch                                   
  perl-Time-Local-2:1.350-3.fc39.noarch                                         
  perl-URI-5.21-1.fc39.noarch                                                   
  perl-base-2.27-502.fc39.noarch                                                
  perl-constant-1.33-501.fc39.noarch                                            
  perl-if-0.61.000-502.fc39.noarch                                              
  perl-interpreter-4:5.38.2-502.fc39.x86_64                                     
  perl-libnet-3.15-501.fc39.noarch                                              
  perl-libs-4:5.38.2-502.fc39.x86_64                                            
  perl-locale-1.10-502.fc39.noarch                                              
  perl-mro-1.28-502.fc39.x86_64                                                 
  perl-overload-1.37-502.fc39.noarch                                            
  perl-overloading-0.02-502.fc39.noarch                                         
  perl-parent-1:0.241-500.fc39.noarch                                           
  perl-podlators-1:5.01-500.fc39.noarch                                         
  perl-vars-1.05-502.fc39.noarch                                                
  postgresql-15.6-1.fc39.x86_64                                                 
  postgresql-contrib-15.6-1.fc39.x86_64                                         
  postgresql-private-libs-15.6-1.fc39.x86_64                                    
  postgresql-server-15.6-1.fc39.x86_64                                          
  qrencode-libs-4.1.1-5.fc39.x86_64                                             
  systemd-254.5-2.fc39.x86_64                                                   
  systemd-networkd-254.5-2.fc39.x86_64                                          
  systemd-pam-254.5-2.fc39.x86_64                                               
  systemd-resolved-254.5-2.fc39.x86_64                                          
  util-linux-2.39.2-1.fc39.x86_64                                               
  uuid-1.6.2-60.fc39.x86_64                                                     
  xkeyboard-config-2.40-1.fc39.noarch                                           
 
Complete!
[root@e726e08856f9 /]# sudo -u postgres /usr/bin/initdb /var/lib/pgsql/data --locale=C.UTF-8 --encoding=UTF8
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
 
The database cluster will be initialized with locale "C.UTF-8".
The default text search configuration will be set to "english".
 
Data page checksums are disabled.
 
fixing permissions on existing directory /var/lib/pgsql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default time zone ... Etc/UTC
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok
 
initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.
 
Success. You can now start the database server using:
 
    /usr/bin/pg_ctl -D /var/lib/pgsql/data -l logfile start
 
[root@e726e08856f9 /]# sudo -u postgres /usr/bin/pg_ctl -D /var/lib/pgsql/data start
waiting for server to start....2024-05-30 10:05:14.702 UTC [215] LOG:  redirecting log output to logging collector process
2024-05-30 10:05:14.702 UTC [215] HINT:  Future log output will appear in directory "log".
 stopped waiting
pg_ctl: could not start server
Examine the log output.

Interesting thing I just discovered: I can start postgres this way with F40.

1 Like

Would you instead like to stay on F40, or do you need to go back to F39 :thinking:

I don’t know yet. If the CI job this is for runs to the end with F40, then I don’t care about F39.

1 Like

Added f40

It worked with F40, so the problem is solved for me. Hopefully this helps somebody else who stumbles upon it.

1 Like

The content of the logfile would have been helpful

I agree! There is none.

No log file is written if you don’t specify the -l option to pg_ctl. If you do give -l logfile, logfile contains exactly the lines pg_ctl wrote to stderr without the option.

Having updated the image a few days ago, I’m now having the same problem starting postgres in an F40 image.

What can I do to troubleshoot this further?

1 Like

I know what the problem is: /var/run/postgres didn’t exist, so pg_ctl was failing to write a file there.

Creating that directory and making it owned by the postgres user is enough to solve the problem.

1 Like

Sorry, that should be /var/run/postgresql!