Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCyeu-00Eu4d-SG for pgadmin-support@arkaria.postgresql.org; Mon, 18 Nov 2024 10:07:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tCyer-0047Qt-7Z for pgadmin-support@arkaria.postgresql.org; Mon, 18 Nov 2024 10:07:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tCyeq-0047Ql-Sw for pgadmin-support@lists.postgresql.org; Mon, 18 Nov 2024 10:07:01 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tCyem-002YQi-S9 for pgadmin-support@postgresql.org; Mon, 18 Nov 2024 10:07:00 +0000 Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-720c286bcd6so3167712b3a.3 for ; Mon, 18 Nov 2024 02:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731924416; x=1732529216; darn=postgresql.org; h=in-reply-to:disposition-notification-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QAL0P4k/EtfQgU6ikuyHMQsfRPLp8e328y61QmNDhH8=; b=YBXvZen+tH7HTbUJE+vGQ6BHnPXVUz1LLGm4M8CI/BXhKpZGCec5SkWDwkx68OzPsV UwWMpWmJhZdHJvpFXJD2rSH9mym6PUyZen/nkfzjvQxzH4rqE4vrjdxNF3e2ipLTpL1y 8XD/XAn5YjEzRrZoAsa2TZK9a6gxhvoYCZNxQwjfqkTy/+xWFMfqa4KWz3ndIKcuT+iv SsvhlaMm3uPUBlHBCz2l4M5SjQtUXcL2Vz3bnQxQb0M3sIM9twrC0Tbj2fVjGeqDRxXK xl+BD053LVFbAh7WNONZv0h7Blom4pxGsWMCnNMR6HLLQ/kWs6mCP8dN4YtsU2lF2EeG 8aFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731924416; x=1732529216; h=in-reply-to:disposition-notification-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QAL0P4k/EtfQgU6ikuyHMQsfRPLp8e328y61QmNDhH8=; b=R7Nzjdadnj1fzksNIGeVr25rtH6i5d9OscpEvjBXyUSJfa3KGHpBcoUmSDRo95mRXs 18nLR6uo5QxThwUHc64lFVXS5r/cjEefVBcjrUxCXe8wl9pU8r0WB3WtzuYuo+CiDOik RfAABnIGJgV9S2wtHbI5npVAdr9pLm5xXR6f7ZrAvJzzD8SeUwl2HTZCCl3WMw/bePip A/qYb4zP8YfxDJiQIP9tS4+GTNi3Sb73a5YX7sTLsdiriOJIWIlM1YS05sl8tGTEVGaq XQ9iZq5FBbXyhGe9LAVV2t5Z7kq8QF7mW0LvQGA/mlFJmecsbyGocDZ/pBjma/wvPvLp L8wg== X-Gm-Message-State: AOJu0YyRtmjiw9e7xxD28jUo7prS19qHBjK0FM1bK49EM1sLakLOTaJF 73BArPydPh0seM5TAcEIFtgJOD5bk1GhU9zKo6kYBHBSR+xp/nz+ X-Google-Smtp-Source: AGHT+IHaBv20Qxj/lNcL1HuSP7fpfxEncVHtTyy35KFEX9fj3VAuIPbelCA8GYJpUmx/is4PmsTcnA== X-Received: by 2002:a05:6a00:1ad1:b0:71e:52cd:9cd4 with SMTP id d2e1a72fcca58-72476c76d15mr19149815b3a.20.1731924415728; Mon, 18 Nov 2024 02:06:55 -0800 (PST) Received: from [10.0.12.15] ([158.140.184.2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-724771fc665sm5792641b3a.173.2024.11.18.02.06.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Nov 2024 02:06:55 -0800 (PST) Content-Type: multipart/alternative; boundary="------------5XKqoaUxlEihT4vRH15m7uxW" Message-ID: <5f4e5e21-813a-4d33-b3e8-3b9caca9354f@gmail.com> Date: Mon, 18 Nov 2024 17:06:38 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Cannot Run pgAdmin4 v8.13 on AlmaLinux 8 after upgrade from v8.12 To: Khushboo Vashi Cc: pgAdmin Support References: <1ca92999-e329-40a8-a388-302f9bb55e2e@gmail.com> <909690a7-3dbc-4f75-97b1-b5829d41df97@gmail.com> <2bf48205-a8ad-49fc-a5d8-ada1bee6573d@gmail.com> <3dd1d051-875a-4d9c-bfee-1753ace8a615@gmail.com> From: Surya Widyanto Content-Language: en-US Disposition-Notification-To: Surya Widyanto In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------5XKqoaUxlEihT4vRH15m7uxW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi, Just to confirm, I've restart the Apache. When I downgrade the pgAdmin4 to v8.12 on my AlmaLinux 9 (x64) machine, then restart the Apache server, I can access the pgAdmin4 via web browser again. It mean that there is something wrong with the v8.13 update package. Regards, ayrus02 On 18-11-2024 16:42, Khushboo Vashi wrote: > Hi, > > Make sure that your libpq is located at LIBDIR = /usr/lib64. This > error may occur when you have multiple libpq installed on your system. > Also do not forget to restart the apache server. > > Thanks, > Khushboo > > > > On Mon, Nov 18, 2024 at 3:06 PM Surya Widyanto wrote: > > Hi, > > Below are the output of pg_config on on my AlmaLinux 8 (x64) machine: > > BINDIR = /usr/bin > DOCDIR = /usr/share/doc/pgsql > HTMLDIR = /usr/share/doc/pgsql > INCLUDEDIR = /usr/include > PKGINCLUDEDIR = /usr/include/pgsql > INCLUDEDIR-SERVER = /usr/include/pgsql/server > LIBDIR = /usr/lib64 > PKGLIBDIR = /usr/lib64/pgsql > LOCALEDIR = /usr/share/locale > MANDIR = /usr/share/man > SHAREDIR = /usr/share/pgsql > SYSCONFDIR = /etc/pgsql > PGXS = /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk > CONFIGURE =  '--build=x86_64-redhat-linux-gnu' > '--host=x86_64-redhat-linux-gnu' '--program-prefix=' > '--disable-dependency-tracking' '--prefix=/usr' > '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' > '--sysconfdir=/etc' '--datadir=/usr/share' > '--includedir=/usr/include' '--libdir=/usr/lib64' > '--libexecdir=/usr/libexec' '--localstatedir=/var' > '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' > '--infodir=/usr/share/info' '--disable-rpath' '--with-openssl' > '--with-gssapi' '--with-includes=/usr/include' > '--with-libraries=/usr/lib64' '--enable-nls' '--with-ldap' > '--with-lz4' '--with-selinux' '--with-systemd' > '--with-system-tzdata=/usr/share/zoneinfo' > 'build_alias=x86_64-redhat-linux-gnu' > 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong > -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic > -fasynchronous-unwind-tables -fstack-clash-protection > -fcf-protection' 'LDFLAGS=-Wl,--as-needed' 'CXXFLAGS=-O2 -g -pipe > -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong > -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic > -fasynchronous-unwind-tables -fstack-clash-protection > -fcf-protection' > 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' > 'PYTHON=/usr/bin/python3' > CC = gcc > CPPFLAGS = -D_GNU_SOURCE -I/usr/include > CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Werror=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 > -Wcast-function-type -Wshadow=compatible-local -Wformat-security > -fno-strict-aliasing -fwrapv -fexcess-precision=standard > -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall > -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong > -grecord-gcc-switches > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic > -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection > CFLAGS_SL = -fPIC > LDFLAGS = -Wl,--as-needed -L/usr/lib64 -Wl,--as-needed > LDFLAGS_EX = > LDFLAGS_SL = > LIBS = -lpgcommon -lpgport -lselinux -llz4 -lssl -lcrypto > -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm > VERSION = PostgreSQL 17.0 > > Below are the output of pg_config on on my AlmaLinux 9 (x64) machine: > > BINDIR = /usr/bin > DOCDIR = /usr/share/doc/pgsql > HTMLDIR = /usr/share/doc/pgsql > INCLUDEDIR = /usr/include > PKGINCLUDEDIR = /usr/include/pgsql > INCLUDEDIR-SERVER = /usr/include/pgsql/server > LIBDIR = /usr/lib64 > PKGLIBDIR = /usr/lib64/pgsql > LOCALEDIR = /usr/share/locale > MANDIR = /usr/share/man > SHAREDIR = /usr/share/pgsql > SYSCONFDIR = /etc/pgsql > PGXS = /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk > CONFIGURE =  '--build=x86_64-redhat-linux-gnu' > '--host=x86_64-redhat-linux-gnu' '--program-prefix=' > '--disable-dependency-tracking' '--prefix=/usr' > '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' > '--sysconfdir=/etc' '--datadir=/usr/share' > '--includedir=/usr/include' '--libdir=/usr/lib64' > '--libexecdir=/usr/libexec' '--localstatedir=/var' > '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' > '--infodir=/usr/share/info' '--disable-rpath' '--with-openssl' > '--with-gssapi' '--with-includes=/usr/include' > '--with-libraries=/usr/lib64' '--enable-nls' '--with-ldap' > '--with-lz4' '--with-selinux' '--with-systemd' > '--with-system-tzdata=/usr/share/zoneinfo' > 'build_alias=x86_64-redhat-linux-gnu' > 'host_alias=x86_64-redhat-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 > -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches > -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -fstack-protector-strong > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 > -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables > -fstack-clash-protection -fcf-protection' > 'LDFLAGS=-Wl,--as-needed' 'CXX=g++' 'CXXFLAGS=-O2 -flto=auto > -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe > -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -fstack-protector-strong > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 > -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables > -fstack-clash-protection -fcf-protection' > 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' > 'PYTHON=/usr/bin/python3' > CC = gcc > CPPFLAGS = -D_GNU_SOURCE -I/usr/include > CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith > -Wdeclaration-after-statement -Werror=vla -Wendif-labels > -Wmissing-format-attribute -Wimplicit-fallthrough=3 > -Wcast-function-type -Wshadow=compatible-local -Wformat-security > -fno-strict-aliasing -fwrapv -fexcess-precision=standard > -Wno-format-truncation -Wno-stringop-truncation -O2 -flto=auto > -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe > -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 > -Wp,-D_GLIBCXX_ASSERTIONS > -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 > -fstack-protector-strong > -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 > -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables > -fstack-clash-protection -fcf-protection > CFLAGS_SL = -fPIC > LDFLAGS = -Wl,--as-needed -L/usr/lib64 -Wl,--as-needed > LDFLAGS_EX = > LDFLAGS_SL = > LIBS = -lpgcommon -lpgport -lselinux -llz4 -lssl -lcrypto > -lgssapi_krb5 -lz -lreadline -lm > VERSION = PostgreSQL 17.0 > > Regards, > ayrus02 > > > On 18-11-2024 16:26, Khushboo Vashi wrote: >> >> >> On Mon, Nov 18, 2024 at 2:48 PM Surya Widyanto >> wrote: >> >> Hi, >> >> Below are the output of *dnf list libpq5** on my AlmaLinux 8 >> (x64) machine: >> >> Last metadata expiration check: 3:28:40 ago on Mon 18 Nov >> 2024 12:43:19 PM WIB. >> Installed Packages >> libpq5.x86_64 - 17.0-43PGDG.rhel8 - @pgAdmin4 >> Available Packages >> libpq5-devel.x86_64 - 17.0-43PGDG.rhel8 - pgAdmin4 >> libpq5-devel.x86_64 - 17.0-43PGDG.rhel8 - pgdg-common >> >> This looks fine. >> What's the output of pg_config ? >> >> And below are the output of *dnf list libpq5** on my >> AlmaLinux 9 (x64) machine: >> >> Last metadata expiration check: 0:38:20 ago on Sen 18 Nov >> 2024 03:33:43 . >> Installed Packages >> libpq5.x86_64 - 17.0-43PGDG.rhel9 - @pgdg-common >> Available Packages >> libpq5-devel.x86_64 - 17.0-43PGDG.rhel9 - pgAdmin4 >> libpq5-devel.x86_64 - 17.0-43PGDG.rhel9 - pgdg-common >> >> Regards, >> ayrus02 >> >> On 18-11-2024 16:06, Khushboo Vashi wrote: >>> >>> >>> On Mon, Nov 18, 2024 at 1:13 PM Surya Widyanto >>> wrote: >>> >>> Hi, >>> >>> I've upgraded the libpq5 to version 17.0-43PGDG.rhel8 >>> I've also restart the apache server. >>> >>> >>> What's the output of `yum list libpq5*` ? >>> >>> >>> But the problem still exist. With the same error in log >>> file. >>> >>> I've also can confirm that this also happened on my >>> other server running AlmaLinux 9 (x64). >>> My other server also has libpq5 with version >>> 17.0-43PGDG.rhel9 and also running as Web Mode via Apache. >>> >>> Regards, >>> ayrus02 >>> >>> On 18-11-2024 14:21, Khushboo Vashi wrote: >>>> Hi, >>>> >>>> On Mon, Nov 18, 2024 at 12:24 PM Surya Widyanto >>>> wrote: >>>> >>>> Hi Vashi, >>>> >>>> Yes, I can confirm it is installed with version: >>>> libpq5.x86_64 - v16.3-43PGDG.rhel8 >>>> >>>> >>>> During the pgAdmin upgrade on your system, the libpq5 >>>> should have been upgraded to the latest (v17), which >>>> didn't happen in your case. >>>> Can you please upgrade libpq5 to the latest version? It >>>> should fix this issue. >>>> >>>> Thanks, >>>> Khushboo >>>> >>>> >>>> Regards, >>>> ayrus02 >>>> >>>> On 18-11-2024 13:48, Khushboo Vashi wrote: >>>>> Is libpq5 installed on your system? >>>>> >>>>> On Mon, Nov 18, 2024 at 12:11 PM Surya Widyanto >>>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> Today, I've upgraded my pgAdmin4 version from >>>>> v8.12 to v8.13 using dnf on AlmaLinux 8. >>>>> >>>>> My pgAdmin4 is installed as web mode and >>>>> accessed via Apache. >>>>> >>>>> After upgrading to v8.13, when I access the >>>>> pgAdmin4 address from web browser, it give an >>>>> error 500. When I look at the error log, it >>>>> contains the line below: >>>>> >>>>> mod_wsgi (pid=3535715): Failed to exec Python >>>>> script file '/usr/pgadmin4/web/pgAdmin4.wsgi'. >>>>> mod_wsgi (pid=3535715): Exception occurred >>>>> processing WSGI script >>>>> '/usr/pgadmin4/web/pgAdmin4.wsgi'. >>>>> Traceback (most recent call last): >>>>> ImportError: no pq wrapper available. >>>>> Attempts made: >>>>> - couldn't import psycopg 'c' implementation: >>>>> /usr/pgadmin4/venv/lib64/python3.9/site-packages/psycopg_c/pq.cpython-39-x86_64-linux-gnu.so >>>>> : >>>>> undefined symbol: PQchangePassword >>>>> - couldn't import psycopg 'binary' >>>>> implementation: No module named 'psycopg_binary' >>>>> - couldn't import psycopg 'python' >>>>> implementation: >>>>> >>>>> The primary concern is at *undefined symbol: >>>>> PQchangePassword* >>>>> >>>>> Is there any bug or I have do the update wrongly?* >>>>> * >>>>> >>>>> Regards, >>>>> ayrus02* >>>>> * >>>>> >>>> >>> >> > --------------5XKqoaUxlEihT4vRH15m7uxW Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hi,

Just to confirm, I've restart the Apache.
When I downgrade the pgAdmin4 to v8.12 on my AlmaLinux 9 (x64) machine, then restart the Apache server, I can access the pgAdmin4 via web browser again.
It mean that there is something wrong with the v8.13 update package.

Regards,
ayrus02

On 18-11-2024 16:42, Khushboo Vashi wrote:
Hi,

Make sure that your libpq is located at LIBDIR = /usr/lib64. This error may occur when you have multiple libpq installed on your system. Also do not forget to restart the apache server.

Thanks,
Khushboo



On Mon, Nov 18, 2024 at 3:06 PM Surya Widyanto <ayrus02@gmail.com> wrote:
Hi,

Below are the output of pg_config on on my AlmaLinux 8 (x64) machine:

BINDIR = /usr/bin
DOCDIR = /usr/share/doc/pgsql
HTMLDIR = /usr/share/doc/pgsql
INCLUDEDIR = /usr/include
PKGINCLUDEDIR = /usr/include/pgsql
INCLUDEDIR-SERVER = /usr/include/pgsql/server
LIBDIR = /usr/lib64
PKGLIBDIR = /usr/lib64/pgsql
LOCALEDIR = /usr/share/locale
MANDIR = /usr/share/man
SHAREDIR = /usr/share/pgsql
SYSCONFDIR = /etc/pgsql
PGXS = /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk
CONFIGURE =  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-rpath' '--with-openssl' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--with-ldap' '--with-lz4' '--with-selinux' '--with-systemd' '--with-system-tzdata=/usr/share/zoneinfo' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,--as-needed' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'PYTHON=/usr/bin/python3'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -L/usr/lib64 -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lpthread -lrt -ldl -lm
VERSION = PostgreSQL 17.0

Below are the output of pg_config on on my AlmaLinux 9 (x64) machine:

BINDIR = /usr/bin
DOCDIR = /usr/share/doc/pgsql
HTMLDIR = /usr/share/doc/pgsql
INCLUDEDIR = /usr/include
PKGINCLUDEDIR = /usr/include/pgsql
INCLUDEDIR-SERVER = /usr/include/pgsql/server
LIBDIR = /usr/lib64
PKGLIBDIR = /usr/lib64/pgsql
LOCALEDIR = /usr/share/locale
MANDIR = /usr/share/man
SHAREDIR = /usr/share/pgsql
SYSCONFDIR = /etc/pgsql
PGXS = /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mk
CONFIGURE =  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-rpath' '--with-openssl' '--with-gssapi' '--with-includes=/usr/include' '--with-libraries=/usr/lib64' '--enable-nls' '--with-ldap' '--with-lz4' '--with-selinux' '--with-systemd' '--with-system-tzdata=/usr/share/zoneinfo' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CC=gcc' 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,--as-needed' 'CXX=g++' 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' 'PYTHON=/usr/bin/python3'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/include
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wcast-function-type -Wshadow=compatible-local -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed -L/usr/lib64 -Wl,--as-needed
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lselinux -llz4 -lssl -lcrypto -lgssapi_krb5 -lz -lreadline -lm
VERSION = PostgreSQL 17.0

Regards,
ayrus02


On 18-11-2024 16:26, Khushboo Vashi wrote:


On Mon, Nov 18, 2024 at 2:48 PM Surya Widyanto <ayrus02@gmail.com> wrote:
Hi,

Below are the output of dnf list libpq5* on my AlmaLinux 8 (x64) machine:

Last metadata expiration check: 3:28:40 ago on Mon 18 Nov 2024 12:43:19 PM WIB.
Installed Packages
libpq5.x86_64 - 17.0-43PGDG.rhel8 - @pgAdmin4
Available Packages
libpq5-devel.x86_64 - 17.0-43PGDG.rhel8 - pgAdmin4
libpq5-devel.x86_64 - 17.0-43PGDG.rhel8 - pgdg-common


This looks fine.
What's the output of pg_config ? 
And below are the output of dnf list libpq5* on my AlmaLinux 9 (x64) machine:

Last metadata expiration check: 0:38:20 ago on Sen 18 Nov 2024 03:33:43 .
Installed Packages
libpq5.x86_64 - 17.0-43PGDG.rhel9 - @pgdg-common
Available Packages
libpq5-devel.x86_64 - 17.0-43PGDG.rhel9 - pgAdmin4
libpq5-devel.x86_64 - 17.0-43PGDG.rhel9 - pgdg-common


Regards,
ayrus02

On 18-11-2024 16:06, Khushboo Vashi wrote:


On Mon, Nov 18, 2024 at 1:13 PM Surya Widyanto <ayrus02@gmail.com> wrote:
Hi,

I've upgraded the libpq5 to version 17.0-43PGDG.rhel8
I've also restart the apache server.

What's the output of `yum list libpq5*` ?

But the problem still exist. With the same error in log file.

I've also can confirm that this also happened on my other server running AlmaLinux 9 (x64).
My other server also has libpq5 with version 17.0-43PGDG.rhel9 and also running as Web Mode via Apache.

Regards,
ayrus02

On 18-11-2024 14:21, Khushboo Vashi wrote:
Hi,

On Mon, Nov 18, 2024 at 12:24 PM Surya Widyanto <ayrus02@gmail.com> wrote:
Hi Vashi,

Yes, I can confirm it is installed with version:
libpq5.x86_64 - v16.3-43PGDG.rhel8

During the pgAdmin upgrade on your system, the libpq5 should have been upgraded to the latest (v17), which didn't happen in your case.
Can you please upgrade libpq5 to the latest version? It should fix this issue.

Thanks,
Khushboo

Regards,
ayrus02

On 18-11-2024 13:48, Khushboo Vashi wrote:
Is libpq5 installed on your system?

On Mon, Nov 18, 2024 at 12:11 PM Surya Widyanto <ayrus02@gmail.com> wrote:

Hi,

Today, I've upgraded my pgAdmin4 version from v8.12 to v8.13 using dnf on AlmaLinux 8.

My pgAdmin4 is installed as web mode and accessed via Apache.

After upgrading to v8.13, when I access the pgAdmin4 address from web browser, it give an error 500. When I look at the error log, it contains the line below:

mod_wsgi (pid=3535715): Failed to exec Python script file '/usr/pgadmin4/web/pgAdmin4.wsgi'.
mod_wsgi (pid=3535715): Exception occurred processing WSGI script '/usr/pgadmin4/web/pgAdmin4.wsgi'.
Traceback (most recent call last):
ImportError: no pq wrapper available.
Attempts made:
- couldn't import psycopg 'c' implementation: /usr/pgadmin4/venv/lib64/python3.9/site-packages/psycopg_c/pq.cpython-39-x86_64-linux-gnu.so: undefined symbol: PQchangePassword
- couldn't import psycopg 'binary' implementation: No module named 'psycopg_binary'
- couldn't import psycopg 'python' implementation:

The primary concern is at undefined symbol: PQchangePassword

Is there any bug or I have do the update wrongly?

Regards,
ayrus02






--------------5XKqoaUxlEihT4vRH15m7uxW--