Error while running with apache wsgi - Mailing list pgadmin-support

From Mahesh Balumuri
Subject Error while running with apache wsgi
Date
Msg-id CAE_Ngcg30o3T_GyzwUKFBaodGL-+1T+71NKJg5gzmtKTyk2pKw@mail.gmail.com
Whole thread Raw
List pgadmin-support
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]  <Rule '/reset/<token>' (HEAD, POST, OPTIONS, GET) -> security.reset_password>,
[Wed Aug 03 02:27:33.552340 2016] [:error] [pid 25054:tid 140070015198976]  <Rule '/about/<filename>' (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 <module>
[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 <module>
[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 <module>, 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 <module>, 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

pgadmin-support by date:

Previous
From: Dave Page
Date:
Subject: Re: pgAdmin4 performance
Next
From: Krzysztof O
Date:
Subject: pgAdmin4 1.0-beta3 - XSS in sidebar