Join the community today
Become a Member

Postgresql error when running centmin

Discussion in 'AlmaLinux 8 & Rocky Linux 8 Beta Testing' started by duderuud, Oct 27, 2023.

  1. duderuud

    duderuud Premium Member Premium Member

    249
    82
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +178
    Local Time:
    11:45 AM
    1.25 x
    10.6
    1. Dedicated host @ Hetzner (AX102)
    2. Centmin Mod installed version info via command below:

    cminfo versions
    Code (Text):
    1st:
    130.00beta01.b433 #Fri Oct 27 09:50:21 CEST 2023
    


    3. Provide CPU, memory and disk info via these 3 commands below:
    lscpu
    Code (Text):
    Architecture:        x86_64
    CPU op-mode(s):      32-bit, 64-bit
    Byte Order:          Little Endian
    CPU(s):              32
    On-line CPU(s) list: 0-31
    Thread(s) per core:  2
    Core(s) per socket:  16
    Socket(s):           1
    NUMA node(s):        1
    Vendor ID:           AuthenticAMD
    BIOS Vendor ID:      Advanced Micro Devices, Inc.
    CPU family:          25
    Model:               97
    Model name:          AMD Ryzen 9 7950X3D 16-Core Processor
    BIOS Model name:     AMD Ryzen 9 7950X3D 16-Core Processor
    Stepping:            2
    CPU MHz:             4200.000
    CPU max MHz:         5758.5928
    CPU min MHz:         3000.0000
    BogoMIPS:            8383.25
    Virtualization:      AMD-V
    L1d cache:           32K
    L1i cache:           32K
    L2 cache:            1024K
    L3 cache:            98304K
    NUMA node0 CPU(s):   0-31
    

    free -mlt
    Code (Text):
                  total        used        free      shared  buff/cache   available
    Mem:         128023        3069      116733          17        8221      123769
    Low:         128023       11290      116733
    High:             0           0           0
    Swap:          4090           0        4090
    Total:       132114        3069      120824
    

    df -hT
    Code (Text):
    Filesystem     Type      Size  Used Avail Use% Mounted on
    devtmpfs       devtmpfs   63G     0   63G   0% /dev
    tmpfs          tmpfs      63G     0   63G   0% /dev/shm
    tmpfs          tmpfs      63G  868K   63G   1% /run
    tmpfs          tmpfs      63G     0   63G   0% /sys/fs/cgroup
    /dev/md3       ext4      1.8T   14G  1.7T   1% /
    /dev/md2       ext3      989M  486M  453M  52% /boot
    /dev/md0       vfat      256M  5.8M  250M   3% /boot/efi
    tmpfs          tmpfs      13G     0   13G   0% /run/user/0
    tmpfs          tmpfs      63G     0   63G   0% /tmp
    


    Fresh install of CMM. When running centmin.sh the following error pops up:
    Code (Text):
    /usr/local/src/centminmod/inc/postgresql.inc: line 241: syntax error near unexpected token `;'
    /usr/local/src/centminmod/inc/postgresql.inc: line 241: `    if [[ ! -f /usr/pgsql-15/bin/pg_config || ! -f /usr/pgsql-15/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-15-redhat.repo ]] || ; then'
    


    Affected line in postgresql.inc:
    Code (Text):
    if [[ ! -f /usr/pgsql-15/bin/pg_config || ! -f /usr/pgsql-15/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-15-redhat.repo ]] || ; then
    


    I think it should be:
    Code (Text):
    if [[ ! -f /usr/pgsql-15/bin/pg_config || ! -f /usr/pgsql-15/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-15-redhat.repo ]]; then
    


    When changing line 241 the next error pops up:
    Code (Text):
    /usr/local/src/centminmod/inc/postgresql.inc: line 321: syntax error near unexpected token `;'
    /usr/local/src/centminmod/inc/postgresql.inc: line 321: `    if [[ ! -f /usr/pgsql-16/bin/pg_config || ! -f /usr/pgsql-16/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-16-redhat.repo ]] || ; then'
    


    Line 321:
    Code (Text):
    if [[ ! -f /usr/pgsql-16/bin/pg_config || ! -f /usr/pgsql-16/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-16-redhat.repo ]] || ; then
    


    Changing that to
    Code (Text):
    if [[ ! -f /usr/pgsql-16/bin/pg_config || ! -f /usr/pgsql-16/lib/libpq.a || ! -f /etc/yum.repos.d/pgdg-16-redhat.repo ]]; then
    



    solves the problem, CMM runs without problems.
     
    Last edited: Oct 27, 2023
  2. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. MaximilianKohler

    MaximilianKohler Member

    200
    6
    18
    Jun 23, 2023
    Ratings:
    +33
    Local Time:
    2:45 AM
  5. eva2000

    eva2000 Administrator Staff Member

    54,529
    12,212
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,781
    Local Time:
    8:45 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+