Gentoo Archives: gentoo-user

From: Petric Frank <pfrank@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem executing pgAdmin4
Date: Wed, 07 Nov 2018 15:57:18
Message-Id: 3773074.2eBRju3bLs@main
In Reply to: Re: [gentoo-user] Problem executing pgAdmin4 by Jack
1 Am Dienstag, 6. November 2018, 21:24:37 CET schrieb Jack:
2 > On 2018.11.06 00:19, Petric Frank wrote:
3 > > Am Dienstag, 6. November 2018, 01:00:04 CET schrieb Jack:
4 > > > On 2018.11.05 14:21, Petric Frank wrote:
5 > >>> pgadmin3 is masked now. So i installed pgadmin4 (current stable
6 > >>> verion 3.0). Installed w/o problems.
7 > >>>
8 > > > > But when executing it (in a terminal window) i get a dialog box
9 > >
10 > > saying
11 > >
12 > > > > An error occurred initialising the application server:
13 > > > > An error occurred initialising the application server:
14 > > > > %1
15 > > > >
16 > > > > and the terminal window is filled pagewise with
17 > > > > ----------------------- cut ---------------------------
18 > > > > Python path: "/usr/lib64/python3.6/site-packages"
19 > > > > Python Home: ""
20 > > > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
21 > > > > "Failed to launch the application server, server thread exiting.
22 > > > > \u0000➑\u0000\u0000\u0000榠\u1C93翱\u0000먀ᰆ翱
23 > >
24 > > \u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000F\u0000\u0000\u
25 > >
26 > > > > 0000$
27 > >
28 > > \u09FF-&Ͽ\uFFFF\u0005\u0A0E+(\u07FE\uFFFF\uFFFF"\uFFFF,攍兇须꾭懰䀌翱\u0000\uEAB
29 > >
30 > > > > 0ᜊ翱
31 > >
32 > > \u0000㙔\uE4C8帚꿧\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000盚饇䥟璊Ꙑ䀌翱
33 > >
34 > > \u0000\uA8C8ᜉ翱\u0000鯩슄鼗䷷\u0E70䀋翱\u0000偈䀌翱\u0000✠徰⼬蘉좸⠪翱\u0000ꃘᜋ翱\u0000ⷬ행膀ꈋ
35 > >
36 > > > > ꈨ䀌翱
37 > >
38 > > \u0000垀ᜋ翱\u0000沦⻋䎛緒짐⠪翱\u0000嚠ᜋ翱\u0000段ꉀꒅ텣遰⠤翱\u0000撈ᜋ翱\u0000⻲幕炈멕胰䀌翱\u0000攐
39 > >
40 > > > > ᜋ翱
41 > >
42 > > \u0000\uE6A3ᓐ溪껊쫨⠪翱\u0000斘ᜋ翱\u0000\uF42F끒䙭㔋昰䀌翱\u0000映ᜋ翱\u0000盰\uE66A⍷캪限ᮑ翱\
43 > >
44 > > > > u0000
45 > >
46 > > 좸ᜊ翱\u0000뱾ס⏤鱑룰⠁翱\u0000춸ᜊ翱\u0000ꢦ蔞蠹꾞㨈䀐翱\u0000츈ᜊ翱\u0000\uF20E㥑䶫텓움⡌翱\u0000饠\
47 > >
48 > > > > u1CBB ...
49 > > > > ----------------------- cut ---------------------------
50 > > > >
51 > > > > Selecting "Ok " in the dialog box i get an other tabbed dialog box
52 > > > > asking for
53 > > > > a browser command (currently empty) and Python paths (preset
54 > >
55 > > values
56 > >
57 > > > > seem ok).
58 > > > >
59 > > > > Entering "/usr/bin/firefox %URL%" as browser command does not
60 > >
61 > > change
62 > >
63 > > > > anything.
64 > > > >
65 > > > > Any hints ?
66 > > > >
67 > > > > Info:
68 > > > > Kernel 4.14.65 (Gentoo)
69 > > > > KDE Plasma (kde-plasma/plasma-meta-5.13.5)
70 > > > > Memory 16 G
71 > > > > Apache installed but not running
72 > > > > Browsers konqueror and firefox available
73 > > > > pgadmin3 still installed
74 > > > > Python 2.7, 3.6 and 3.5 installed (= "eselect python list"
75 > >
76 > > output)
77 > >
78 > > > > regards
79 > > > >
80 > > > > Petric
81 > > >
82 > > > Interesting. I only get
83 > > > -------------
84 > > > Python path: "/usr/lib64/python3.6/site-packages"
85 > > > Python Home: ""
86 > > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
87 > > > ------------
88 > >>
89 > >> And then a popup that says "The application server could not be
90 > >> contacted."
91 > >>
92 > >> This is with eselect postgresql set to either 9.6 or 10. Also - all
93 > >> above running as myself, although I get the same results with root
94 > >> or postgres. It looks like although I have 10 installed, I never
95 > >> initialized it, although 9.6 should work OK.
96 > >>
97 > >> I'm now emerging the test version of pgAdmin4 to see if it makes any
98 > >> difference.
99 > >>
100 > > > Jack
101 > >
102 > > Hello Jack,
103 > >
104 > > if i remove the .pgadmin directory in my home i get - after a long
105 > > wait a dialog box saying The application server could not be
106 > > contacted.
107 > >
108 > > In the terminal it prints:
109 > > -------------------------- cut ------------------------------
110 > > Python path: "/usr/lib64/python3.6/site-packages"
111 > > Python Home: ""
112 > > Webapp path: "/usr/share/pgadmin4/web/pgAdmin4.py"
113 > > NOTE: Configuring authentication for DESKTOP mode.
114 > > -------------------------- cut ------------------------------
115 > >
116 > > Starting pgAdmin4 again i get the output and dialogs i wrote
117 > > initially in this thread.
118 >
119 > I installed pgadmin4-3.4-r1 and it works. 3.5 has been released
120 > (https://www.pgadmin.org/) so I filed a version bump request
121 > (https://bugs.gentoo.org/670556).
122
123 I will try the upgrade.
124
125 For documentation purposes i got version 3.0 running using this guide:
126
127 1. install dev-python/backports and dev-python/backports-csv (masked !)
128 2. extend file /usr/share/pgadmin4/web/config_local.py to contain:
129 import os
130 DATA_DIR = os.path.realpath(os.path.expanduser(u'~/.pgadmin/'))
131 LOG_FILE = os.path.join(DATA_DIR, 'pgadmin4.log')
132 SQLITE_PATH = os.path.join(DATA_DIR, 'pgadmin4.db')
133 SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
134 STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
135 SERVER_MODE = False
136 UPGRADE_CHECK_ENABLED = False
137
138 3. start python /usr/share/pgadmin4/web/pgAdmin4.py
139 4. point your browser to localhost:5050
140
141 Hope that helps someone ...
142
143 regards
144 Petric

Replies

Subject Author
Re: [gentoo-user] Problem executing pgAdmin4 Jack <ostroffjh@×××××××××××××××××.net>