From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 62114138334 for ; Wed, 7 Nov 2018 15:57:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5BB1BE0A8C; Wed, 7 Nov 2018 15:57:08 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 58DBFE0A4A for ; Wed, 7 Nov 2018 15:57:07 +0000 (UTC) Received: from mail.localdomain ([37.209.58.89]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LiTrM-1foeok2MPs-00ckVN for ; Wed, 07 Nov 2018 16:56:54 +0100 Received: from main.localnet (main.fritz.box [192.168.2.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.localdomain (Postfix) with ESMTPSA id 45AA11FFDE for ; Wed, 7 Nov 2018 16:56:52 +0100 (CET) From: Petric Frank To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Problem executing pgAdmin4 Date: Wed, 07 Nov 2018 16:56:52 +0100 Message-ID: <3773074.2eBRju3bLs@main> In-Reply-To: References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:ppM+tEXU+0IBx3q2wercQe+QFvlzp8O1hoFlkx1FN4SSGnPUyC+ 667BfLC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b/UEXmH/ZBvNs0ct3/sjwV2VPin4hsNiRHK7T QytZ/5UAlcATPB3pOAFAbGnzkT47lq/iAs2dBrj9yV/DxqFXS7ruojeftT5Rt2 X-Archives-Salt: c6c99d28-2def-4140-8b20-993ece654f9d X-Archives-Hash: 51966df948db353cc8106739dfb2b4cb Am Dienstag, 6. November 2018, 21:24:37 CET schrieb Jack: > On 2018.11.06 00:19, Petric Frank wrote: > > Am Dienstag, 6. November 2018, 01:00:04 CET schrieb Jack: > > > On 2018.11.05 14:21, Petric Frank wrote: > >>> pgadmin3 is masked now. So i installed pgadmin4 (current stable > >>> verion 3.0). Installed w/o problems. > >>>=20 > > > > But when executing it (in a terminal window) i get a dialog box > >=20 > > saying > >=20 > > > > An error occurred initialising the application server: > > > > An error occurred initialising the application server: > > > > %1 > > > >=20 > > > > and the terminal window is filled pagewise with > > > > ----------------------- cut --------------------------- > > > > Python path: "/usr/lib64/python3.6/site-packages" > > > > Python Home: "" > > > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py" > > > > "Failed to launch the application server, server thread exiting. > > > > \u0000=E2=9E=91\u0000\u0000\u0000=E6=A6=A0\u1C93=E7=BF=B1\u0000=EB= =A8=80=E1=B0=86=E7=BF=B1 > >=20 > > \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000F\u0000\u000= 0\u > >=20 > > > > 0000=EF=BC=84 > >=20 > > \u09FF=EF=BC=8D=EF=BC=86=CF=BF\uFFFF\u0005\u0A0E=EF=BC=8B=EF=BC=88\u07F= E\uFFFF\uFFFF=EF=BC=82\uFFFF=EF=BC=8C=E6=94=8D=E5=85=87=E9=A1=BB=EA=BE=AD= =E6=87=B0=E4=80=8C=E7=BF=B1\u0000\uEAB > >=20 > > > > 0=E1=9C=8A=E7=BF=B1 > >=20 > > \u0000=E3=99=94\uE4C8=E5=B8=9A=EA=BF=A7\u0000\u0000\u0000\u0000\u0000\u= 0000\u0000\u0000=E7=9B=9A=E9=A5=87=E4=A5=9F=E7=92=8A=EA=99=90=E4=80=8C=E7= =BF=B1 > >=20 > > \u0000\uA8C8=E1=9C=89=E7=BF=B1\u0000=E9=AF=A9=EC=8A=84=E9=BC=97=E4=B7= =B7\u0E70=E4=80=8B=E7=BF=B1\u0000=E5=81=88=E4=80=8C=E7=BF=B1\u0000=E2=9C=A0= =E5=BE=B0=E2=BC=AC=E8=98=89=EC=A2=B8=E2=A0=AA=E7=BF=B1\u0000=EA=83=98=E1=9C= =8B=E7=BF=B1\u0000=E2=B7=AC=ED=96=89=E8=86=80=EA=88=8B > >=20 > > > > =EA=88=A8=E4=80=8C=E7=BF=B1 > >=20 > > \u0000=E5=9E=80=E1=9C=8B=E7=BF=B1\u0000=E6=B2=A6=E2=BB=8B=E4=8E=9B=E7= =B7=92=EC=A7=90=E2=A0=AA=E7=BF=B1\u0000=E5=9A=A0=E1=9C=8B=E7=BF=B1\u0000=E6= =AE=B5=EA=89=80=EA=92=85=ED=85=A3=E9=81=B0=E2=A0=A4=E7=BF=B1\u0000=E6=92=88= =E1=9C=8B=E7=BF=B1\u0000=E2=BB=B2=E5=B9=95=E7=82=88=EB=A9=95=E8=83=B0=E4=80= =8C=E7=BF=B1\u0000=E6=94=90 > >=20 > > > > =E1=9C=8B=E7=BF=B1 > >=20 > > \u0000\uE6A3=E1=93=90=E6=BA=AA=EA=BB=8A=EC=AB=A8=E2=A0=AA=E7=BF=B1\u000= 0=E6=96=98=E1=9C=8B=E7=BF=B1\u0000\uF42F=EB=81=92=E4=99=AD=E3=94=8B=E6=98= =B0=E4=80=8C=E7=BF=B1\u0000=E6=98=A0=E1=9C=8B=E7=BF=B1\u0000=E7=9B=B0\uE66A= =E2=8D=B7=EC=BA=AA=E9=99=90=E1=AE=91=E7=BF=B1\ > >=20 > > > > u0000 > >=20 > > =EC=A2=B8=E1=9C=8A=E7=BF=B1\u0000=EB=B1=BE=D7=A1=E2=8F=A4=E9=B1=91=EB= =A3=B0=E2=A0=81=E7=BF=B1\u0000=EC=B6=B8=E1=9C=8A=E7=BF=B1\u0000=EA=A2=A6=E8= =94=9E=E8=A0=B9=EA=BE=9E=E3=A8=88=E4=80=90=E7=BF=B1\u0000=EC=B8=88=E1=9C=8A= =E7=BF=B1\u0000\uF20E=E3=A5=91=E4=B6=AB=ED=85=93=EC=9B=80=E2=A1=8C=E7=BF=B1= \u0000=E9=A5=A0\ > >=20 > > > > u1CBB ... > > > > ----------------------- cut --------------------------- > > > >=20 > > > > Selecting "Ok " in the dialog box i get an other tabbed dialog box > > > > asking for > > > > a browser command (currently empty) and Python paths (preset > >=20 > > values > >=20 > > > > seem ok). > > > >=20 > > > > Entering "/usr/bin/firefox %URL%" as browser command does not > >=20 > > change > >=20 > > > > anything. > > > >=20 > > > > Any hints ? > > > >=20 > > > > Info: > > > > Kernel 4.14.65 (Gentoo) > > > > KDE Plasma (kde-plasma/plasma-meta-5.13.5) > > > > Memory 16 G > > > > Apache installed but not running > > > > Browsers konqueror and firefox available > > > > pgadmin3 still installed > > > > Python 2.7, 3.6 and 3.5 installed (=3D "eselect python list" > >=20 > > output) > >=20 > > > > regards > > > >=20 > > > > Petric > > >=20 > > > Interesting. I only get > > > ------------- > > > Python path: "/usr/lib64/python3.6/site-packages" > > > Python Home: "" > > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py" > > > ------------ > >>=20 > >> And then a popup that says "The application server could not be > >> contacted." > >>=20 > >> This is with eselect postgresql set to either 9.6 or 10. Also - all > >> above running as myself, although I get the same results with root > >> or postgres. It looks like although I have 10 installed, I never > >> initialized it, although 9.6 should work OK. > >>=20 > >> I'm now emerging the test version of pgAdmin4 to see if it makes any > >> difference. > >>=20 > > > Jack > >=20 > > Hello Jack, > >=20 > > if i remove the .pgadmin directory in my home i get - after a long > > wait a dialog box saying The application server could not be > > contacted. > >=20 > > In the terminal it prints: > > -------------------------- cut ------------------------------ > > Python path: "/usr/lib64/python3.6/site-packages" > > Python Home: "" > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py" > > NOTE: Configuring authentication for DESKTOP mode. > > -------------------------- cut ------------------------------ > >=20 > > Starting pgAdmin4 again i get the output and dialogs i wrote > > initially in this thread. >=20 > I installed pgadmin4-3.4-r1 and it works. 3.5 has been released > (https://www.pgadmin.org/) so I filed a version bump request > (https://bugs.gentoo.org/670556). I will try the upgrade. =46or documentation purposes i got version 3.0 running using this guide: 1. install dev-python/backports and dev-python/backports-csv (masked !) 2. extend file /usr/share/pgadmin4/web/config_local.py to contain: import os DATA_DIR =3D os.path.realpath(os.path.expanduser(u'~/.pgadmin/')) LOG_FILE =3D os.path.join(DATA_DIR, 'pgadmin4.log') SQLITE_PATH =3D os.path.join(DATA_DIR, 'pgadmin4.db') SESSION_DB_PATH =3D os.path.join(DATA_DIR, 'sessions') STORAGE_DIR =3D os.path.join(DATA_DIR, 'storage') SERVER_MODE =3D False UPGRADE_CHECK_ENABLED =3D False 3. start python /usr/share/pgadmin4/web/pgAdmin4.py 4. point your browser to localhost:5050 Hope that helps someone ... regards Petric