Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bX09G-0002ta-Kv for pgadmin-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 06:04:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bX09G-0006V3-7j for pgadmin-hackers@arkaria.postgresql.org; Tue, 09 Aug 2016 06:04:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bX09E-0006UA-PQ for pgadmin-hackers@postgresql.org; Tue, 09 Aug 2016 06:04:21 +0000 Received: from mail-ua0-x229.google.com ([2607:f8b0:400c:c08::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bX09B-0004CS-Fo for pgadmin-hackers@postgresql.org; Tue, 09 Aug 2016 06:04:19 +0000 Received: by mail-ua0-x229.google.com with SMTP id n59so3690191uan.2 for ; Mon, 08 Aug 2016 23:04:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=GZIOrkHtpilMkhq024l7mt4zCZWsOvkxLQpT/A25tMU=; b=ku2wYlCw5a3g6jRqlbpKjh7oahXq/QamG5xKm0XmZYihM5Lyx0B5SBmYzRTCb50ibj bX9aZ/zKfMttLPXWHIsz2EeelCknepjDkVmIzvthOBHZFEdFqboQMpiH9YoRu4eusYKl I9WFH5YCkIqYFbQcozY7GcODtIiXGlSXnYaD41oHJH+wORH4z/DwAVYVPUr/0I1xGp54 /GNk/Wz/oBWUVr1Wjwni5efhXWlDJRE+3UTQneeznGLS1viqGsERzng78tfTdm1D4Zc3 25/qA6i4dblQPHiJdU299D2h5NtLLtbMtpVODpKYQh5I4pMTRK3+Kkc0+bG21KQJoYvk RppA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GZIOrkHtpilMkhq024l7mt4zCZWsOvkxLQpT/A25tMU=; b=ThePeAIhD3GAuMtytq7nuQRlgS+7QK/hPam9DaMUBapRi9WIDYYvjBxWvUUC2eF1IT nwRzSMPy60iH0F65Pk0cPt+86//Zn0/6hv9uPEzz0vOIDvuXSHLrGg2sZIU6DAnbq29V uWPC1qliLBMwXJbXkggM1FmBCFfjVy0aC7RZsFusDpVpQ1f/dZy4gqGJgsztB3zO3j2v qCFQH/NcALKV0fSsVfwGvJxZvvpxcvC1Ex+yrd8NLW6ANOopKnsaMKiKbAl5jZSwQ2d3 q97G7xK/n5Tpcfy6KtTl3MeqSki7JXOqJt4q1a/VJwR3As8I6wbtcTziWNhABjDdS9GZ u6Bg== X-Gm-Message-State: AEkooutOSyXxma/GAWU8TpPESDy5h2lTLdDmfAxjyPlTFXlz8SzVT2/97Sfip6ySdxCTNp4pOnCXybBtXRQP2w== X-Received: by 10.31.164.13 with SMTP id n13mr50180194vke.15.1470722656447; Mon, 08 Aug 2016 23:04:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.5.202 with HTTP; Mon, 8 Aug 2016 23:04:16 -0700 (PDT) From: Mahesh Balumuri Date: Tue, 9 Aug 2016 11:34:16 +0530 Message-ID: Subject: Error while running pgAdmin4 with apache wsgi - Ubuntu To: pgadmin-hackers@postgresql.org Content-Type: multipart/alternative; boundary=001a11416af88034cd05399d4d61 X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a11416af88034cd05399d4d61 Content-Type: text/plain; charset=UTF-8 HI, I am trying to run the pgadmin4 in apache with wsgi module ( Ubuntu 14.04 ). I am getting the below error in the apache error log. [Wed Aug 03 02:27:33.552337 2016] [:error] [pid 25054:tid 140070015198976] ' (HEAD, POST, OPTIONS, GET) -> security.reset_password>, [Wed Aug 03 02:27:33.552340 2016] [:error] [pid 25054:tid 140070015198976] ' (HEAD, OPTIONS, GET) -> about.static>]) [Wed Aug 03 02:27:33.552665 2016] [:error] [pid 25054:tid 140070015198976] DEBUG:pgadmin:Not running under the desktop runtime, port: 8081 [Wed Aug 03 02:27:33.552731 2016] [:error] [pid 25054:tid 140070015198976] Starting pgAdmin 4. Please navigate to http://localhost:8081 in your browser. [Wed Aug 03 02:27:33.571950 2016] [:error] [pid 25054:tid 140070015198976] INFO:werkzeug: * Running on http://localhost:8081/ [Wed Aug 03 02:27:33.572419 2016] [:warn] [pid 25054:tid 140070015198976] mod_wsgi (pid=25054): Callback registration for signal 15 ignored. [Wed Aug 03 02:27:33.573519 2016] [:warn] [pid 25054:tid 140070015198976] File "/opt/pgadmin4/pgAdmin4.wsgi", line 10, in [Wed Aug 03 02:27:33.573540 2016] [:warn] [pid 25054:tid 140070015198976] from pgAdmin4 import app as application [Wed Aug 03 02:27:33.573552 2016] [:warn] [pid 25054:tid 140070015198976] File "/opt/pgadmin4/web/pgAdmin4.py", line 94, in [Wed Aug 03 02:27:33.573561 2016] [:warn] [pid 25054:tid 140070015198976] threaded=config.THREADED_MODE [Wed Aug 03 02:27:33.573573 2016] [:warn] [pid 25054:tid 140070015198976] File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 843, in run [Wed Aug 03 02:27:33.573583 2016] [:warn] [pid 25054:tid 140070015198976] run_simple(host, port, self, **options) [Wed Aug 03 02:27:33.573594 2016] [:warn] [pid 25054:tid 140070015198976] File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 708, in run_simple [Wed Aug 03 02:27:33.573603 2016] [:warn] [pid 25054:tid 140070015198976] run_with_reloader(inner, extra_files, reloader_interval) [Wed Aug 03 02:27:33.573614 2016] [:warn] [pid 25054:tid 140070015198976] File "/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py", line 609, in run_with_reloader [Wed Aug 03 02:27:33.573624 2016] [:warn] [pid 25054:tid 140070015198976] signal.signal(signal.SIGTERM, lambda *args: sys.exit(0)) [Wed Aug 03 02:27:33.573854 2016] [:error] [pid 25054:tid 140070015198976] INFO:werkzeug: * Restarting with reloader /usr/bin/python: can't open file 'mod_wsgi': [Errno 2] No such file or directory [Wed Aug 03 02:27:33.620002 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] mod_wsgi (pid=25054): Target WSGI script '/opt/pgadmin4/pgAdmin4.wsgi' cannot be loaded as Python module., referer: http://localhost/ [Wed Aug 03 02:27:33.620093 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] mod_wsgi (pid=25054): SystemExit exception raised by WSGI script '/opt/pgadmin4/pgAdmin4.wsgi' ignored., referer: http://localhost/ [Wed Aug 03 02:27:33.620161 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] Traceback (most recent call last):, referer: http://localhost/ [Wed Aug 03 02:27:33.620266 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] File "/opt/pgadmin4/pgAdmin4.wsgi", line 10, in , referer: http://localhost/ [Wed Aug 03 02:27:33.620355 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] from pgAdmin4 import app as application, referer: http://localhost/ [Wed Aug 03 02:27:33.620375 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] File "/opt/pgadmin4/web/pgAdmin4.py", line 94, in , referer: http://localhost/ [Wed Aug 03 02:27:33.620400 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] threaded=config.THREADED_MODE, referer: http://localhost/ [Wed Aug 03 02:27:33.620421 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 843, in run, referer: http://localhost/ [Wed Aug 03 02:27:33.620450 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] run_simple(host, port, self, **options), referer: http://localhost/ [Wed Aug 03 02:27:33.620467 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] File "/usr/local/lib/python2.7/ dist-packages/werkzeug/serving.py", line 708, in run_simple, referer: http://localhost/ [Wed Aug 03 02:27:33.620493 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] run_with_reloader(inner, extra_files, reloader_interval), referer: http://localhost/ [Wed Aug 03 02:27:33.620510 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] File "/usr/local/lib/python2.7/ dist-packages/werkzeug/serving.py", line 617, in run_with_reloader, referer: http://localhost/ [Wed Aug 03 02:27:33.620530 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] sys.exit(restart_with_reloader()), referer: http://localhost/ [Wed Aug 03 02:27:33.620565 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] SystemExit: 2, referer: http://localhost/ Can you please help me to configure and run the same with apache wsgi. Thanks, Mahesh --001a11416af88034cd05399d4d61 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
HI,

I am = trying to run the pgadmin4 in apache with wsgi module ( Ubuntu 14.04 ).
=
I am getting the below error in the apache error log.

[Wed Aug 03 02:27:33.552337 2016] [:error] [pid 25054:tid 140070015198976]=C2= =A0=20 <Rule '/reset/<token>' (HEAD, POST, OPTIONS, GET) ->=20 security.reset_password>,
[Wed Aug 03 02:27:33.552340 2016]=20 [:error] [pid 25054:tid 140070015198976]=C2=A0 <Rule=20 '/about/<filename>' (HEAD, OPTIONS, GET) -> about.static&g= t;])
[Wed Aug 03 02:27:33.552665 2016] [:error] [pid 25054:tid 140070015= 198976] DEBUG:pgadmin:Not running under the desktop= runtime, port: 8081
[Wed Aug 03 02:27:33.552731 2016] [:error] [pid 250= 54:tid 140070015198976] Starting pgAdmin 4. Please = navigate to http://loca= lhost:8081 in your browser.
[Wed Aug 03 02:27:33.571950 2016] [:erro= r] [pid 25054:tid 140070015198976] INFO:werkzeug: * Running on http://localhost:8081/
[Wed Aug 03 02:27:33.572419 2016] [:warn] [pid 25054:tid 140070015198976]=20 mod_wsgi (pid=3D25054): Callback registration for signal 15 ignored.
[We= d Aug 03 02:27:33.573519 2016] [:warn] [pid 25054:tid 140070015198976]=C2=A0= =C2=A0=20 File "/opt/pgadmin4/pgAdmin4.wsgi", line 10, in <module>[Wed Aug 03 02:27:33.573540 2016] [:warn] [pid 25054:tid 140070015198976]= =C2=A0=C2=A0=C2=A0=C2=A0 from pgAdmin4 import app as application
[Wed Au= g 03 02:27:33.573552 2016] [:warn] [pid 25054:tid 140070015198976]=C2=A0=C2= =A0 File "/opt/pgadmin4/web/pgAdmin4.py", line 94, in <mo= dule>
[Wed Aug 03 02:27:33.573561 2016] [:warn] [pid 25054:tid 140070= 015198976]=C2=A0=C2=A0=C2=A0=C2=A0 threaded=3Dconfig.THREADED_MODE
[Wed = Aug 03 02:27:33.573573 2016] [:warn] [pid 25054:tid 140070015198976]=C2=A0= =C2=A0 File "/usr/local/lib/python2.7/dist-packages/flask/app.py&= quot;, line 843, in run
[Wed Aug 03 02:27:33.573583 2016] [:warn] [pid 2= 5054:tid 140070015198976]=C2=A0=C2=A0=C2=A0=C2=A0 run_simple(host, port, se= lf, **options)
[Wed Aug 03 02:27:33.573594 2016] [:warn] [pid 25054:tid = 140070015198976]=C2=A0=C2=A0 File "/usr/local/lib/python2.7/dist-= packages/werkzeug/serving.py", line 708, in run_simple
[Wed Aug 03 02:27:33.573603 2016] [:warn] [pid 25054:tid=20 140070015198976]=C2=A0=C2=A0=C2=A0=C2=A0 run_with_reloader(inner, extra_fil= es,=20 reloader_interval)
[Wed Aug 03 02:27:33.573614 2016] [:warn] [pid 25054:= tid 140070015198976]=C2=A0=C2=A0 File "/usr/local/lib/python2.7/d= ist-packages/werkzeug/serving.py", line 609, in run_with_reloader=
[Wed Aug 03 02:27:33.573624 2016] [:warn] [pid 25054:tid=20 140070015198976]=C2=A0=C2=A0=C2=A0=C2=A0 signal.signal(signal.SIGTERM, lamb= da *args:=20 sys.exit(0))
[Wed Aug 03 02:27:33.573854 2016] [:error] [pid 25054:tid 1= 40070015198976] INFO:werkzeug: * Restarting with reloader
/usr/bin/pytho= n: can't open file 'mod_wsgi': [Errno 2] No such file or direct= ory
[Wed Aug 03 02:27:33.620002 2016] [:error] [pid 25054:tid 1400700151= 98976] [client 127.0.0= .1:38036] mod_wsgi (pid=3D25054): Target WSGI script '/opt/pgadmin4= /pgAdmin4.wsgi' cannot be loaded as Python module., referer: http://localhost/
[Wed Aug 03 = 02:27:33.620093 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] mod_w= sgi (pid=3D25054): SystemExit exception raised by WSGI script '/opt/pga= dmin4/pgAdmin4.wsgi' ignored., referer: http://localhost/
[Wed Aug 03 02:27:33.620161 2016]= [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] Traceback (most recent cal= l last):, referer: http://l= ocalhost/
[Wed Aug 03 02:27:33.620266 2016] [:error] [pid 25054:tid = 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0 File "/opt/pgadmin4/pgAdmin4.wsgi&= quot;, line 10, in <module>, referer: http://localhost/
[Wed Aug 03 02:27:33.620355 2016]= [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0=C2=A0=C2=A0 fr= om pgAdmin4 import app as application, referer: http://localhost/
[Wed Aug 03 02:27:33.620375 2= 016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0 File "= ;/opt/pgadmin4/web/pgAdmin4.py", line 94, in <module>, refe= rer: http://localhost/<= br>[Wed Aug 03 02:27:33.620400 2016] [:error] [pid 25054:tid 14007001519897= 6] [client 127.0.0.1:3= 8036]=C2=A0=C2=A0=C2=A0=C2=A0 threaded=3Dconfig.THREADED_MODE, referer:= http://localhost/
[= Wed Aug 03 02:27:33.620421 2016] [:error] [pid 25054:tid 140070015198976] [= client 127.0.0.1:38036= ]=C2=A0=C2=A0 File "/usr/local/lib/python2.7/dist-packages/fl= ask/app.py", line 843, in run, referer: http://localhost/
[Wed Aug 03 02:27:33.620450 2016= ] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0=C2=A0=C2=A0 r= un_simple(host, port, self, **options), referer: http://localhost/
[Wed Aug 03 02:27:33.620467 = 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0 File &quo= t;/usr/local/lib/python2.7/dist-packages/werkzeug/serving.py"= ;, line 708, in run_simple, referer: http://localhost/
[Wed Aug 03 02:27:33.620493 2016] [:er= ror] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0=C2=A0=C2=A0 run_wit= h_reloader(inner, extra_files, reloader_interval), referer: http://localhost/
[Wed Aug 03 02:27= :33.620510 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2= =A0 File "/usr/local/lib/python2.7/dist-packages/werkzeug/se= rving.py", line 617, in run_with_reloader, referer: http://localhost/
[Wed Aug 03 02:27:33= .620530 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036]=C2=A0=C2=A0= =C2=A0=C2=A0 sys.exit(restart_with_reloader()), referer: http://localhost/
[Wed Aug 03 02:= 27:33.620565 2016] [:error] [pid 25054:tid 140070015198976] [client 127.0.0.1:38036] SystemEx= it: 2, referer: http://loca= lhost/


Can you please help me to configure and run the= same with apache wsgi.

Thanks,
Mahesh
--001a11416af88034cd05399d4d61--