New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
502 Bad Gateway #40
Comments
Hi! I see that the file is not found. /srv/webvirtcloud/venv/bin/gunicorn You perform these steps in the installation instructions? cd /srv/webvirtcloud
virtualenv venv
source venv/bin/activate
pip install -r conf/requirements.txt |
Yes, I did. I also had to do sudo for the pip install: Requirement already satisfied (use --upgrade to upgrade): libxml2-python==2.9.1 from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 5)) Had to sudo the migrate as well: Igor
|
Ок. And the file is present in this path?
|
No it is not: Igor
|
and
|
Everything was already installed. woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt Requirement already satisfied (use --upgrade to upgrade): libxml2-python==2.9.1 from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 5)) Igor
|
|
It seems that all the recommendations made
|
It installed the package, ran pip install but no gunicorn present on the venv/bin folder. The output of the pip install says the unicorn requirement is satisfied: woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt Requirement already satisfied (use --upgrade to upgrade): libxml2-python==2.9.1 from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 5)) Restarted services but still 502 bad gateway… supervisor log still complaining about gunicorn P.S> really appreciated the help on the fly! Seriously.
|
@ikolubr @retspen need update package https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz |
Sorry didn’t get this last entry!! Igor
|
You execute?
|
Yes I did. It installed the package but nothing changed. |
I have no bugs =(
|
woof@host:/srv/webvirtcloud$ sudo -H pip install -r conf/requirements.txt no gunicorn in bin folder. |
OS Debian 8 amd64 "Jessie"
|
did al the commands... this is the output: (venv)woof@host:/srv/webvirtcloud$ ls -ls venv/bin/ That's all in the folder. -.- |
I suggest the steps to do the installation environment
We look changes
|
analogically
|
K, so tried: sudo venv/bin/pip install gunicorn==19.3.0 restarted services... but now I get and internal error instead of 502 bad gateway in the browser. this is supervisor.log: |
CentOS?
https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel-centos |
ubuntu 14.04 server |
selinux enable?
and in files
parameter is present
|
not installed |
|
woof@host: |
|
woof@host:/srv/webvirtcloud$ sudo git pull |
Can you paste what's on your supervisor.conf file? |
supervisrod.conf [unix_http_server] [supervisord] ; the below section must remain in the config file for RPC [supervisorctl] ; The [include] section can just contain the "files" setting. This [include] webvirtcloud.conf [program:novncd] gstfsd.conf [program:gstfsd] |
ok... so set back the gunicorn and RESTARTED supervisor.... woof@host:/srv/webvirtcloud$ sudo supervisorctl status tried to restart nginx but still getting the internal error on browser. |
2015-08-03 01:29:00,281 CRIT Server 'unix_http_server' running without any HTTP authentication checking still on supervisor log, don't know if that matters. |
Ok,
|
woof@host:/srv/webvirtcloud$ source venv/bin/activate |
|
(venv)woof@host:/srv/webvirtcloud$ sudo supervisorctl status |
still getting internal server error on browser |
|
run browser |
I did restart nginx.. I cleared cache, crtl+f5, ctrl+r, opened another browser... still internal server error |
error 502? |
no. the bad gateway went away. |
need logs
|
nginx access.log: nginx error.log: |
ok, logs
|
supervisord.log: webvirtcloud-stdout: webvirtcloud-stderr: |
ок
|
after pip install, restarting supervisor, nginx: |
?
|
booom! |
👍 |
I have no words... Another question... was all this because I had webvirtmgr installed? Thank God I'm playing on our test server... but I'm willing to use on our production server... should I? |
Project webvirtcloud have status beta =) Regarding donations, you need to contact @retspen |
ok. Will do! |
thx a bunch! |
@ikolubr |
Hi guys,
So I gad webvirtmgr installed and running perfectly. I saw the development of this one and decided to try it out.
So I followed the steps on a ubuntu server and all I get is a 502 Bad Gateway when trying to acces the server on a browser.
All I did differently from the readme was to remove the .conf related to webvirtmgr.
Error I'm getting on nginx log:
[error] 1900#0: *3 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.1.2, server: , request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8000/", host: "10.0.1.66"
Supervisor log:
2015-08-02 21:11:40,387 WARN received SIGTERM indicating exit request
2015-08-02 21:11:40,388 INFO waiting for gstfsd to die
2015-08-02 21:11:40,391 INFO stopped: gstfsd (terminated by SIGTERM)
2015-08-02 21:11:45,556 CRIT Supervisor running as root (no user in config file)
2015-08-02 21:11:45,556 WARN Included extra file "/etc/supervisor/conf.d/webvirtcloud.conf" during parsing
2015-08-02 21:11:45,556 WARN Included extra file "/etc/supervisor/conf.d/gstfsd.conf" during parsing
2015-08-02 21:11:45,601 INFO RPC interface 'supervisor' initialized
2015-08-02 21:11:45,601 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-08-02 21:11:45,603 INFO daemonizing the supervisord process
2015-08-02 21:11:45,604 INFO supervisord started with pid 1873
2015-08-02 21:11:46,607 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'
2015-08-02 21:11:46,609 INFO spawned: 'novncd' with pid 1874
2015-08-02 21:11:46,613 INFO spawned: 'gstfsd' with pid 1875
2015-08-02 21:11:46,658 INFO exited: novncd (exit status 1; not expected)
2015-08-02 21:11:47,661 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'
2015-08-02 21:11:47,663 INFO spawned: 'novncd' with pid 1876
2015-08-02 21:11:47,664 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-02 21:11:47,708 INFO exited: novncd (exit status 1; not expected)
2015-08-02 21:11:49,713 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'
2015-08-02 21:11:49,715 INFO spawned: 'novncd' with pid 1877
2015-08-02 21:11:49,760 INFO exited: novncd (exit status 1; not expected)
2015-08-02 21:11:52,766 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'
2015-08-02 21:11:52,766 INFO gave up: webvirtcloud entered FATAL state, too many start retries too quickly
2015-08-02 21:11:52,769 INFO spawned: 'novncd' with pid 1878
2015-08-02 21:11:52,812 INFO exited: novncd (exit status 1; not expected)
2015-08-02 21:11:53,814 INFO gave up: novncd entered FATAL state, too many start retries too quickly
Any ideas here?
Thank you,
Igor
The text was updated successfully, but these errors were encountered: