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 1stf9w-000bcv-Mk for pgadmin-support@arkaria.postgresql.org; Thu, 26 Sep 2024 03:27:17 +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 1stf9v-000xNp-DK for pgadmin-support@arkaria.postgresql.org; Thu, 26 Sep 2024 03:27:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1stf9u-000xNh-Sc for pgadmin-support@lists.postgresql.org; Thu, 26 Sep 2024 03:27:15 +0000 Received: from mail-oi1-x22c.google.com ([2607:f8b0:4864:20::22c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1stf9r-0015ql-1C for pgadmin-support@postgresql.org; Thu, 26 Sep 2024 03:27:12 +0000 Received: by mail-oi1-x22c.google.com with SMTP id 5614622812f47-3e27a6d0bb5so370360b6e.2 for ; Wed, 25 Sep 2024 20:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1727321230; x=1727926030; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aRiEvFA1ZPRUMyXD0hKlsRlHTF4oprjod2HvZG3wdg8=; b=Ojcbn94J1SNK6xzx76xwdXvhnngt/mOjBbz3pwCn2vhTmXjumy/jU0Y4zEaQ2wgWU8 q2RGozDoho4ir3UD/BIqG3utJyqS3NwWvIs90dOS8J9fmmJdv75KMEvmQTvxWLAF6SZW Xc7122E+ZZMHvu8Eb4D7+8oZ8+0H4FlIcdocBirMyunLTF/EnkheM2g/5VLecfm5IKeU 4qpwZwETDPlASItujBgkR9oOEP/pUp8WbQcl+BORMn5fF3vHOmp1NYokBtYGrCvQH/Po BxwNi/X+pN82aZeBmU5f4gdLloGyfQc/kMuqIwSXOqVyFxIUPw4TucehLIyxBh7/ZYEA SqFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727321230; x=1727926030; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aRiEvFA1ZPRUMyXD0hKlsRlHTF4oprjod2HvZG3wdg8=; b=sKOqzoZFJdBEa+frZ1iOTN9HTFfISGCrTyDWLIYjJPIKL8aqT8Re/iDEUligPIRJN5 hE1MlBMHSCtVqidvBd6tZ3HrK2GQOE+Uutdq+4QagPURWeZxqHS8j7bvZZc+VdkxKB4P 0wxuP607xD6D3o6iYkoIg2nsucbePd+JNB2df3ggcAYVZN0uLbrjlCzhSeom/nN/nR+w Ks6o/8vHyVwRllmevOqfDh1xKAoVaw5+EKenxpp5YD+bww2TCzgddSK54cnOp531B9L8 cm1cnt9mASj08b7C4Ho3hX0kQC9CxjZAPxevQ8Er0F2bAke2gFEmuar4/3AoEXbf6jRY JXOA== X-Gm-Message-State: AOJu0YxURq2+bHZ2o44btPllO1YS/+/Q9HSGnefuTPY5U/hI24aYkDtL 9dY2FzbbycpETT9ivYAIUle2Y8sRjBWkj4Xwrb2rr2tSxuIf78MLejXM/PzDOdN6sTFqqZnpIXy tdEQyIab21zC+MEtSZQTVQ3ZNbb8F6grfs/epjlcUi4IlqFM= X-Google-Smtp-Source: AGHT+IFjkCQuKTMdrxH93VdLcmYy0CnVPZcWUb1mWwRYu3Fi5vdIG4PYcvq7L/7xTTZE04P+ysp8hCV0aigcbkkQayE= X-Received: by 2002:a05:6808:1649:b0:3e0:3ffc:757 with SMTP id 5614622812f47-3e29b66192emr3937315b6e.9.1727321230056; Wed, 25 Sep 2024 20:27:10 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aditya Toshniwal Date: Thu, 26 Sep 2024 08:56:33 +0530 Message-ID: Subject: Re: Unable to run PGAdmin in Ubuntu 24 To: Steven Adams Cc: pgAdmin Support Content-Type: multipart/alternative; boundary="00000000000054b9760622fd501e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000054b9760622fd501e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Steven, Please try to uninstall first and then install again. On Thu, Sep 26, 2024 at 4:18=E2=80=AFAM Steven Adams wrote: > I just tried this command: > sudo apt reinstall pgadmin4 > > It gave me this error: > Reinstallation of pgadmin4 is not possible, it cannot be downloaded. > ------------------------------ > *From:* Aditya Toshniwal > *Sent:* Tuesday, September 24, 2024 11:51 PM > *To:* Steven Adams > *Cc:* pgadmin-support@lists.postgresql.org < > pgadmin-support@lists.postgresql.org> > *Subject:* Re: Unable to run PGAdmin in Ubuntu 24 > > Hi Steven, > > What is your pgAdmin version? You'll have to uninstall and install pgAdmi= n > again. > > On Wed, Sep 25, 2024 at 4:54=E2=80=AFAM Steven Adams > wrote: > > Hello, > > I'm using PostgreSQL and PGAdmin on a Ubuntu server. Both worked when th= e > server was on Ubuntu version 22, but after it was upgraded to 24, PGAdmin > started causing an internal server error. The Apache error log shows thi= s: > > [Mon Sep 16 11:24:55.627995 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] mod_wsgi (pid=3D163422): Failed to exec Python script fi= le > '/usr/pgadmin4/web/pgAdmin4.wsgi'. > [Mon Sep 16 11:24:55.628053 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] mod_wsgi (pid=3D163422): Exception occurred processing > WSGI script '/usr/pgadmin4/web/pgAdmin4.wsgi'. > [Mon Sep 16 11:24:55.628970 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] Traceback (most recent call last): > [Mon Sep 16 11:24:55.633940 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] File "/usr/pgadmin4/web/pgAdmin4.wsgi", line 25, in > > [Mon Sep 16 11:24:55.633983 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] import config > [Mon Sep 16 11:24:55.634000 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] File "/usr/pgadmin4/web/config.py", line 33, in > > [Mon Sep 16 11:24:55.634006 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] from pgadmin.utils import env, IS_WIN, fs_short_path > [Mon Sep 16 11:24:55.634017 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] File "/usr/pgadmin4/web/pgadmin/__init__.py", line 24, > in > [Mon Sep 16 11:24:55.634022 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] from flask import Flask, abort, request, > current_app, session, url_for > [Mon Sep 16 11:24:55.634045 2024] [wsgi:error] [pid 163422] [remote > 127.0.0.1:37332] ModuleNotFoundError: No module named 'flask' > > I've never seen this sort of error before, so any advice would be > appreciated. > > > > -- > Thanks, > Aditya Toshniwal > pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com* > > "Don't Complain about Heat, Plant a TREE" > --=20 Thanks, Aditya Toshniwal pgAdmin Hacker | Sr. Software Architect | *enterprisedb.com* "Don't Complain about Heat, Plant a TREE" --00000000000054b9760622fd501e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Steven,

Please try to uninstall first and then ins= tall again.

On Thu, Sep 26, 2024 at 4:18=E2=80=AFAM Steven Adams <<= a href=3D"mailto:stevenadams@spiralxllc.com">stevenadams@spiralxllc.com= > wrote:
I just tried this command:
sudo apt reinstall pgadmin4

It gave me this error:
Reinstallation of pgadmin4 is not possible, it cannot be downloaded.

From: A= ditya Toshniwal <aditya.toshniwal@enterprisedb.com>
Sent: Tuesday, September 24, 2024 11:51 PM
To: Steven Adams <stevenadams@spiralxllc.com>
Cc: pgadmin-support@lists.postgresql.org <pgadmin-support@lis= ts.postgresql.org>
Subject: Re: Unable to run PGAdmin in Ubuntu 24
=C2=A0
Hi=C2=A0Steven,

What is your pgAdmin version?= You'll have to uninstall and install pgAdmin again.

On Wed, Sep 25, 2024 at 4:54=E2=80=AFAM Steven Adams <<= a href=3D"mailto:stevenadams@spiralxllc.com" target=3D"_blank">stevenadams@= spiralxllc.com> wrote:
Hello,

I'm using PostgreSQL and PGAdmin on a Ubuntu server.=C2=A0 Both worked = when the server was on Ubuntu version 22, but after it was upgraded to 24, = PGAdmin started causing an internal server error.=C2=A0 The Apache error lo= g shows this:

[Mon Sep 16 11:24:55.627995 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] mod_wsgi (pid=3D163422): Failed to exec Python script = file '/usr/pgadmin4/web/pgAdmin4.wsgi'.
[Mon Sep 16 11:24:55.628053 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] mod_wsgi (pid=3D163422): Exception occurred processing= WSGI script '/usr/pgadmin4/web/pgAdmin4.wsgi'.
[Mon Sep 16 11:24:55.628970 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] Traceback (most recent call last):
[Mon Sep 16 11:24:55.633940 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 File "/usr/pgadmin4/web/pgAdmin4.wsgi"= ;, line 25, in <module>
[Mon Sep 16 11:24:55.633983 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 =C2=A0 import config
[Mon Sep 16 11:24:55.634000 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 File "/usr/pgadmin4/web/config.py", l= ine 33, in <module>
[Mon Sep 16 11:24:55.634006 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 =C2=A0 from pgadmin.utils import env, IS_WIN, f= s_short_path
[Mon Sep 16 11:24:55.634017 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 File "/usr/pgadmin4/web/pgadmin/__init__.p= y", line 24, in <module>
[Mon Sep 16 11:24:55.634022 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] =C2=A0 =C2=A0 from flask import Flask, abort, request,= current_app, session, url_for
[Mon Sep 16 11:24:55.634045 2024] [wsgi:error] [pid 163422] [remote 127.0.0.1:37332] ModuleNotFoundError: No module named 'flask'

I've never seen this sort of error before, so any advice would be appre= ciated.


--
Thanks,<= /font>
Aditya Toshniwal
pgAdm= in Hacker=C2=A0| Sr. S<= /font>oftware= Architect=C2=A0| enterprisedb.com
&q= uot;Don't Complain about Heat, Plant a TREE"


--
Thanks,
Aditya Toshniwal
pgAdmin Hacker=C2=A0| Sr. Software Architect=C2=A0| enterprisedb.com