Hi all , i'm trying to install synnefo on two nodes and i actually follow the administrator's intallation guide 0.19 (on Debian Jessie). When testing astakos ,my browser show me this : ''502 proxy error Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET Reason: Error reading from remote server /astakos . Apache/2.4.10 (Debian) Server at
debian.myowncloud.tg Port 443 ''
Above all this , it seems like apache failed to make connection with gunicorn. Before testing astakos, i restart apache and gunicorn.When i verify if gunicorn process is loaded, i get this output :
root@debian:~# ps -ef | grep gunicorn root 23920 1 6 10:48 ? synnefo 23971 23920 0 10:48 ? synnefo 23972 23920 0 10:48 ? synnefo 23974 23920 0 10:48 ? synnefo 23975 23920 0 10:48 ? synnefo 23976 23920 0 10:48 ? root root 23977 23920 0 10:48 ? 00:00:00 gunicorn: master [synnefo] 00:00:00 gunicorn: worker [synnefo] 00:00:00 gunicorn: worker [synnefo] 00:00:00 gunicorn: worker [synnefo] 00:00:00 gunicorn: worker [synnefo] 00:00:00 gunicorn: worker [synnefo] 00:00:00 gunicorn: worker [synnefo] 23979 8716 0 10:48 pts/2 00:00:00 grep gunicorn root 23980 23920 0 10:48 ?
The gunicorn status show this :
root@debian:~# service gunicorn status
00:00:00 gunicorn: worker [synnefo] ● gunicorn.service - (null) Loaded: loaded (/etc/init.d/gunicorn) Active: active (exited) since jeu. 2017-09-14 10:10:43 CEST; 18min ago Process: 12658 ExecStop=/etc/init.d/gunicorn stop (code=exited, status=0/SUCCESS) Process: 12665 ExecStart=/etc/init.d/gunicorn start (code=exited, status=0/SUCCESS) sept. 14 10:10:43
debian.myowncloud.tg gunicorn[12665]: Starting Gunicorn workers: [synnefo]. sept. 14 10:10:43
debian.myowncloud.tg systemd[1]: Started (null).
After getting the '' 502 proxy error '', i run this command again :
root@debian:~# ps -ef | grep gunicorn
i didn't seen any output , it seems like gunicorn process is dead.
Here are respectively the differents outputs of gunicorn and apache log file.
root@debian:~# tail -f /var/log/synnefo/gunicorn.log
2017-09-14 10:16:31 [18761] [INFO] Worker exiting (pid: 18761) 2017-09-14 10:16:31 [18770] [INFO] Booting worker with pid: 18770 2017-09-14 10:16:31 [18764] [INFO] Worker exiting (pid: 18764) 2017-09-14 10:16:31 [18771] [INFO] Booting worker with pid: 18771 2017-09-14 10:16:31 [18765] [INFO] Worker exiting (pid: 18765) 2017-09-14 10:16:31 [18772] [INFO] Booting worker with pid: 18772 2017-09-14 10:16:31 [18773] [INFO] Booting worker with pid: 18773 2017-09-14 10:16:31 [18766] [INFO] Worker exiting (pid: 18766) 2017-09-14 10:16:31 [18774] [INFO] Booting worker with pid: 18774 2017-09-14 10:16:31 [18767] [INFO] Worker exiting (pid: 18767) 2017-09-14 10:16:31 [12671] [INFO] Unhandled exception in main loop: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 174, in run self.sleep() File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 308, in sleep oldest = min(w.tmp.last_update() for w in worker_values) File "/usr/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 308, in <genexpr> oldest = min(w.tmp.last_update() for w in worker_values) File "/usr/lib/python2.7/dist-packages/gunicorn/workers/workertmp.py", line 50, in last_update return os.fstat(self._tmp.fileno()).st_ctime ValueError: I/O operation on closed file 2017-09-14 10:16:31 [18770] [INFO] Worker exiting (pid: 18770) 2017-09-14 10:16:31 [18773] [INFO] Worker exiting (pid: 18773) 2017-09-14 10:16:31 [18769] [INFO] Worker exiting (pid: 18769) 2017-09-14 10:16:31 [18771] [INFO] Worker exiting (pid: 18771) 2017-09-14 10:16:31 [18772] [INFO] Worker exiting (pid: 18772) 2017-09-14 10:16:31 [18774] [INFO] Worker exiting (pid: 18774)
root@debian:~# tail -f /var/log/apache2/error.log [Thu Sep 14 10:08:07.328955 2017] [wsgi:warn] [pid 9291] mod_wsgi: Runtime using Python/
2.7.9. [Thu Sep 14 10:08:07.332363 2017] [mpm_prefork:notice] [pid 9291] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations [Thu Sep 14 10:08:07.332414 2017] [core:notice] [pid 9291] AH00094: Command line: '/usr/sbin/apache2' [Thu Sep 14 10:10:11.062446 2017] [proxy_http:error] [pid 9298] (104)Connection reset by peer: [client
192.168.1.3:41006] AH01102: error reading status line from remote server localhost:8080
[Thu Sep 14 10:10:11.062510 2017] [proxy:error] [pid 9298] [client
192.168.1.3:41006] AH00898: Error reading from remote server returned by /astakos [Thu Sep 14 10:10:36.941806 2017] [mpm_prefork:notice] [pid 9291] AH00169: caught SIGTERM, shutting down [Thu Sep 14 10:10:38.029562 2017] [wsgi:warn] [pid 12615] mod_wsgi: Compiled for Python/
2.7.8. [Thu Sep 14 10:10:38.029583 2017] [wsgi:warn] [pid 12615] mod_wsgi: Runtime using Python/
2.7.9. [Thu Sep 14 10:10:38.032733 2017] [mpm_prefork:notice] [pid 12615] AH00163: Apache/2.4.10 (Debian) OpenSSL/1.0.1t mod_wsgi/4.3.0 Python/2.7.9 configured -- resuming normal operations [Thu Sep 14 10:10:38.032778 2017] [core:notice] [pid 12615] AH00094: Command line: '/usr/sbin/apache2' [Thu Sep 14 10:15:57.968639 2017] [proxy_http:error] [pid 12622] (70007)The timeout specified has expired: [client
192.168.1.3:41039] AH01102: error reading status line from remote server localhost:8080 [Thu Sep 14 10:15:57.968693 2017] [proxy:error] [pid 12622] [client
192.168.1.3:41039] AH00898: Error reading from remote server returned by /astakos
Also this log file can serve.
root@debian:~# tail -f /var/log/gunicorn/wsgi.log File "/usr/lib/python2.7/dist-packages/gunicorn/app/base.py", line 66, in wsgi self.callable = self.load() File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load return self.load_wsgiapp() File "/usr/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python2.7/dist-packages/gunicorn/util.py", line 365, in import_app __import__(module) ImportError: No module named app.module 2017-09-07 19:37:41 [4888] [INFO] Worker exiting (pid: 4888)
Please somebody can help me ? i'm very desperate.Thanks in advance and i very much wish to read you promptly.