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