[GH-ISSUE #40] 502 Bad Gateway #26

Closed
opened 2026-02-27 15:57:02 +03:00 by kerem · 57 comments
Owner

Originally created by @ikolubr on GitHub (Aug 3, 2015).
Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/40

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

Originally created by @ikolubr on GitHub (Aug 3, 2015). Original GitHub issue: https://github.com/retspen/webvirtcloud/issues/40 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
kerem closed this issue 2026-02-27 15:57:02 +03:00
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

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
<!-- gh-comment-id:127122683 --> @savichev commented on GitHub (Aug 3, 2015): Hi! I see that the file is not found. ``` bash /srv/webvirtcloud/venv/bin/gunicorn ``` You perform these steps in the [installation instructions](https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel-ubuntu)? ``` bash cd /srv/webvirtcloud virtualenv venv source venv/bin/activate pip install -r conf/requirements.txt ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

Yes, I did.
I had to do sudo virtualenv venv. Otherwise it would throw errors.

I also had to do sudo for the pip install:
(venv)woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt
Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5))
Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded
Running setup.py (path:/tmp/pip-t6T1tY-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
/usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
warnings.warn(msg)
libxslt stub generator not found, libxslt not built

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))
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2))
Cleaning up…

Had to sudo the migrate as well:
(venv)woof@host:/srv/webvirtcloud$ sudo python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: staticfiles, messages
Apply all migrations: logs, sessions, admin, create, contenttypes, auth, instances, computes, accounts
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
No migrations to apply.

Igor

On Aug 2, 2015, at 9:43 PM, savichev notifications@github.com wrote:

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

Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:127128694 --> @ikolubr commented on GitHub (Aug 3, 2015): Yes, I did. I had to do sudo virtualenv venv. Otherwise it would throw errors. I also had to do sudo for the pip install: (venv)woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5)) Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded Running setup.py (path:/tmp/pip-t6T1tY-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz /usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) libxslt stub generator not found, libxslt not built 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)) Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1)) Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3)) Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2)) Cleaning up… Had to sudo the migrate as well: (venv)woof@host:/srv/webvirtcloud$ sudo python manage.py migrate Operations to perform: Synchronize unmigrated apps: staticfiles, messages Apply all migrations: logs, sessions, admin, create, contenttypes, auth, instances, computes, accounts Synchronizing apps without migrations: Creating tables... Running deferred SQL... Installing custom SQL... Running migrations: No migrations to apply. Igor > On Aug 2, 2015, at 9:43 PM, savichev notifications@github.com wrote: > > 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 > — > Reply to this email directly or view it on GitHub.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

Ок.
Try this recommendation.
https://github.com/retspen/webvirtcloud/issues/22#issuecomment-121242048

And the file is present in this path?

/srv/webvirtcloud/venv/bin/gunicorn
<!-- gh-comment-id:127129020 --> @savichev commented on GitHub (Aug 3, 2015): Ок. Try this recommendation. https://github.com/retspen/webvirtcloud/issues/22#issuecomment-121242048 And the file is present in this path? ``` /srv/webvirtcloud/venv/bin/gunicorn ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

No it is not:
(venv)woof@host:/srv/webvirtcloud$ ls -a venv/bin/
activate activate.fish easy_install pip pip2.7 python2
activate.csh activate_this.py easy_install-2.7 pip2 python python2.7

Igor

On Aug 2, 2015, at 10:28 PM, savichev notifications@github.com wrote:

Ок.
The file is present in this path?

/srv/webvirtcloud/venv/bin/gunicorn


Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:127129203 --> @ikolubr commented on GitHub (Aug 3, 2015): No it is not: (venv)woof@host:/srv/webvirtcloud$ ls -a venv/bin/ activate activate.fish easy_install pip pip2.7 python2 activate.csh activate_this.py easy_install-2.7 pip2 python python2.7 Igor > On Aug 2, 2015, at 10:28 PM, savichev notifications@github.com wrote: > > Ок. > The file is present in this path? > > /srv/webvirtcloud/venv/bin/gunicorn > > — > Reply to this email directly or view it on GitHub.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

sudo apt-get install libxml2-utils python-libxml2 python-lxml

and

cd /srv/webvirtcloud
sudo pip install -r conf/requirements.txt
<!-- gh-comment-id:127129884 --> @savichev commented on GitHub (Aug 3, 2015): ``` sudo apt-get install libxml2-utils python-libxml2 python-lxml ``` and ``` cd /srv/webvirtcloud sudo pip install -r conf/requirements.txt ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

Everything was already installed.
Out put of the pip install:

woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt
Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5))
Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded
Running setup.py (path:/tmp/pip-ZQCI3B-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
/usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
warnings.warn(msg)
libxslt stub generator not found, libxslt not built

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))
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2))
Cleaning up…

Igor

On Aug 2, 2015, at 10:33 PM, savichev notifications@github.com wrote:

sudo apt-get install libxml2-utils python-libxml2 python-lxml

and

cd /srv/webvirtcloud
sudo pip install -r conf/requirements.txt


Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:127131268 --> @ikolubr commented on GitHub (Aug 3, 2015): Everything was already installed. Out put of the pip install: woof@host:/srv/webvirtcloud$ sudo pip install -r conf/requirements.txt Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5)) Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded Running setup.py (path:/tmp/pip-ZQCI3B-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz /usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) libxslt stub generator not found, libxslt not built 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)) Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1)) Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3)) Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2)) Cleaning up… Igor > On Aug 2, 2015, at 10:33 PM, savichev notifications@github.com wrote: > > sudo apt-get install libxml2-utils python-libxml2 python-lxml > > and > > cd /srv/webvirtcloud > sudo pip install -r conf/requirements.txt > > — > Reply to this email directly or view it on GitHub.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

sudo apt-get install python-libxslt1
<!-- gh-comment-id:127131299 --> @savichev commented on GitHub (Aug 3, 2015): ``` sudo apt-get install python-libxslt1 ```
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

It seems that all the recommendations made

sudo service nginx restart
sudo service supervisor restart
<!-- gh-comment-id:127131573 --> @savichev commented on GitHub (Aug 3, 2015): It seems that all the recommendations made ``` sudo service nginx restart sudo service supervisor restart ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

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
Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5))
Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded
Running setup.py (path:/tmp/pip-E9ZPlQ-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
/usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license'
warnings.warn(msg)
libxslt stub generator not found, libxslt not built

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))
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2))
Cleaning up…

Restarted services but still 502 bad gateway… supervisor log still complaining about gunicorn

P.S> really appreciated the help on the fly! Seriously.
Igor

On Aug 2, 2015, at 10:38 PM, savichev notifications@github.com wrote:

sudo apt-get install python-libxslt1


Reply to this email directly or view it on GitHub.

<!-- gh-comment-id:127131966 --> @ikolubr commented on GitHub (Aug 3, 2015): 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 Downloading/unpacking https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5)) Downloading libxml2-python-2.9.1.tar.gz (265kB): 265kB downloaded Running setup.py (path:/tmp/pip-E9ZPlQ-build/setup.py) egg_info for package from https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz /usr/lib/python2.7/distutils/dist.py:251: UserWarning: 'licence' distribution option is deprecated; use 'license' warnings.warn(msg) libxslt stub generator not found, libxslt not built 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)) Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1)) Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3)) Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2)) Cleaning up… Restarted services but still 502 bad gateway… supervisor log still complaining about gunicorn P.S> really appreciated the help on the fly! Seriously. Igor > On Aug 2, 2015, at 10:38 PM, savichev notifications@github.com wrote: > > sudo apt-get install python-libxslt1 > > — > Reply to this email directly or view it on GitHub.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

@ikolubr
Now all the work?
Ignore the error (I think they do not affect the operation)

@retspen need update package https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz

<!-- gh-comment-id:127132211 --> @savichev commented on GitHub (Aug 3, 2015): @ikolubr Now all the work? Ignore the error (I think they do not affect the operation) @retspen need update package https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

Sorry didn’t get this last entry!!
Nothing works… the update is what the pip tries to do, isn’t it?

Igor

On Aug 2, 2015, at 10:48 PM, savichev notifications@github.com wrote:

@ikolubr https://github.com/ikolubr
Now all the work?
Ignore the error (I think they do not affect the operation)

@retspen https://github.com/retspen need update package https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz

Reply to this email directly or view it on GitHub https://github.com/retspen/webvirtcloud/issues/40#issuecomment-127132211.

<!-- gh-comment-id:127133026 --> @ikolubr commented on GitHub (Aug 3, 2015): Sorry didn’t get this last entry!! Nothing works… the update is what the pip tries to do, isn’t it? Igor > On Aug 2, 2015, at 10:48 PM, savichev notifications@github.com wrote: > > @ikolubr https://github.com/ikolubr > Now all the work? > Ignore the error (I think they do not affect the operation) > > @retspen https://github.com/retspen need update package https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz > — > Reply to this email directly or view it on GitHub https://github.com/retspen/webvirtcloud/issues/40#issuecomment-127132211.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

You execute?

sudo apt-get install python-libxslt1
<!-- gh-comment-id:127141698 --> @savichev commented on GitHub (Aug 3, 2015): You execute? ``` sudo apt-get install python-libxslt1 ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

Yes I did. It installed the package but nothing changed.

<!-- gh-comment-id:127141913 --> @ikolubr commented on GitHub (Aug 3, 2015): Yes I did. It installed the package but nothing changed.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

cd /srv/webvirtcloud
pip install --upgrade pip
pip install --upgrade -r conf/requirements.txt

I have no bugs =(

root@vmcloud:/var/www/webvirtcloud# pip install --upgrade pip
Requirement already up-to-date: pip in ./venv/lib/python2.7/site-packages
root@vmcloud:/var/www/webvirtcloud# pip install --upgrade -r conf/requirements.txt
Collecting https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5))
  Using cached https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
Requirement already up-to-date: Django==1.8.2 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 1))
Requirement already up-to-date: websockify==0.6.0 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 2))
Requirement already up-to-date: gunicorn==19.3.0 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 3))
Requirement already up-to-date: libvirt-python==1.2.16 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 4))
Requirement already up-to-date: numpy in ./venv/lib/python2.7/site-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2))
Installing collected packages: libxml2-python
  Found existing installation: libxml2-python 2.9.1
    Uninstalling libxml2-python-2.9.1:
      Successfully uninstalled libxml2-python-2.9.1
  Running setup.py install for libxml2-python
Successfully installed libxml2-python-2.9.1
root@vmcloud:/var/www/webvirtcloud#
<!-- gh-comment-id:127145005 --> @savichev commented on GitHub (Aug 3, 2015): ``` cd /srv/webvirtcloud pip install --upgrade pip pip install --upgrade -r conf/requirements.txt ``` I have no bugs =( ``` root@vmcloud:/var/www/webvirtcloud# pip install --upgrade pip Requirement already up-to-date: pip in ./venv/lib/python2.7/site-packages root@vmcloud:/var/www/webvirtcloud# pip install --upgrade -r conf/requirements.txt Collecting https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5)) Using cached https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz Requirement already up-to-date: Django==1.8.2 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 1)) Requirement already up-to-date: websockify==0.6.0 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 2)) Requirement already up-to-date: gunicorn==19.3.0 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 3)) Requirement already up-to-date: libvirt-python==1.2.16 in ./venv/lib/python2.7/site-packages (from -r conf/requirements.txt (line 4)) Requirement already up-to-date: numpy in ./venv/lib/python2.7/site-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2)) Installing collected packages: libxml2-python Found existing installation: libxml2-python 2.9.1 Uninstalling libxml2-python-2.9.1: Successfully uninstalled libxml2-python-2.9.1 Running setup.py install for libxml2-python Successfully installed libxml2-python-2.9.1 root@vmcloud:/var/www/webvirtcloud# ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

woof@host:/srv/webvirtcloud$ sudo -H pip install -r conf/requirements.txt
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5))
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (265kB)
100% |████████████████████████████████| 266kB 437kB/s
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))
Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2))
Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3))
Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4))
Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2))
Building wheels for collected packages: libxml2-python
Running setup.py bdist_wheel for libxml2-python
Stored in directory: /root/.cache/pip/wheels/b3/25/81/df8f006792e4370ffcbfd4f1fb32d600689685b548ccaa700c
Successfully built libxml2-python

no gunicorn in bin folder.
same 502 error

<!-- gh-comment-id:127145578 --> @ikolubr commented on GitHub (Aug 3, 2015): woof@host:/srv/webvirtcloud$ sudo -H pip install -r conf/requirements.txt /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Collecting https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (from -r conf/requirements.txt (line 5)) /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning Downloading https://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz (265kB) 100% |████████████████████████████████| 266kB 437kB/s 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)) Requirement already satisfied (use --upgrade to upgrade): Django==1.8.2 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 1)) Requirement already satisfied (use --upgrade to upgrade): websockify==0.6.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): gunicorn==19.3.0 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 3)) Requirement already satisfied (use --upgrade to upgrade): libvirt-python==1.2.16 in /usr/local/lib/python2.7/dist-packages (from -r conf/requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): numpy in /usr/lib/python2.7/dist-packages (from websockify==0.6.0->-r conf/requirements.txt (line 2)) Building wheels for collected packages: libxml2-python Running setup.py bdist_wheel for libxml2-python Stored in directory: /root/.cache/pip/wheels/b3/25/81/df8f006792e4370ffcbfd4f1fb32d600689685b548ccaa700c Successfully built libxml2-python no gunicorn in bin folder. same 502 error
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

OS Debian 8 amd64 "Jessie"

cd /srv/webvirtcloud
rm -rf venv
virtualenv venv
source venv/bin/activate
pip install -r conf/requirements.txt
(venv)root@vmcloud:/srv/webvirtcloud# ls -la venv/bin/
итого 3776
drwxr-xr-x 2 root root    4096 авг  3 12:21 .
drwxr-xr-x 7 root root    4096 авг  3 12:17 ..
-rw-r--r-- 1 root root    2207 авг  3 12:17 activate
-rw-r--r-- 1 root root    1263 авг  3 12:17 activate.csh
-rw-r--r-- 1 root root    2476 авг  3 12:17 activate.fish
-rw-r--r-- 1 root root    1129 авг  3 12:17 activate_this.py
-rwxr-xr-x 1 root root     288 авг  3 12:17 django-admin
-rwxr-xr-x 1 root root     147 авг  3 12:17 django-admin.py
-rw-r--r-- 1 root root     304 авг  3 12:17 django-admin.pyc
-rwxr-xr-x 1 root root     255 авг  3 12:17 easy_install
-rwxr-xr-x 1 root root     255 авг  3 12:17 easy_install-2.7
-rwxr-xr-x 1 root root     701 авг  3 12:21 f2py2
-rwxr-xr-x 1 root root     242 авг  3 12:17 gunicorn
-rwxr-xr-x 1 root root     244 авг  3 12:17 gunicorn_django
-rwxr-xr-x 1 root root     244 авг  3 12:17 gunicorn_paster
-rwxr-xr-x 1 root root     227 авг  3 12:17 pip
-rwxr-xr-x 1 root root     227 авг  3 12:17 pip2
-rwxr-xr-x 1 root root     227 авг  3 12:17 pip2.7
lrwxrwxrwx 1 root root       7 авг  3 12:17 python -> python2
-rwxr-xr-x 1 root root 3785928 авг  3 12:17 python2
lrwxrwxrwx 1 root root       7 авг  3 12:17 python2.7 -> python2
-rwxr-xr-x 1 root root     339 авг  3 12:17 websockify
<!-- gh-comment-id:127146853 --> @savichev commented on GitHub (Aug 3, 2015): OS Debian 8 amd64 "Jessie" ``` cd /srv/webvirtcloud rm -rf venv virtualenv venv source venv/bin/activate pip install -r conf/requirements.txt ``` ``` (venv)root@vmcloud:/srv/webvirtcloud# ls -la venv/bin/ итого 3776 drwxr-xr-x 2 root root 4096 авг 3 12:21 . drwxr-xr-x 7 root root 4096 авг 3 12:17 .. -rw-r--r-- 1 root root 2207 авг 3 12:17 activate -rw-r--r-- 1 root root 1263 авг 3 12:17 activate.csh -rw-r--r-- 1 root root 2476 авг 3 12:17 activate.fish -rw-r--r-- 1 root root 1129 авг 3 12:17 activate_this.py -rwxr-xr-x 1 root root 288 авг 3 12:17 django-admin -rwxr-xr-x 1 root root 147 авг 3 12:17 django-admin.py -rw-r--r-- 1 root root 304 авг 3 12:17 django-admin.pyc -rwxr-xr-x 1 root root 255 авг 3 12:17 easy_install -rwxr-xr-x 1 root root 255 авг 3 12:17 easy_install-2.7 -rwxr-xr-x 1 root root 701 авг 3 12:21 f2py2 -rwxr-xr-x 1 root root 242 авг 3 12:17 gunicorn -rwxr-xr-x 1 root root 244 авг 3 12:17 gunicorn_django -rwxr-xr-x 1 root root 244 авг 3 12:17 gunicorn_paster -rwxr-xr-x 1 root root 227 авг 3 12:17 pip -rwxr-xr-x 1 root root 227 авг 3 12:17 pip2 -rwxr-xr-x 1 root root 227 авг 3 12:17 pip2.7 lrwxrwxrwx 1 root root 7 авг 3 12:17 python -> python2 -rwxr-xr-x 1 root root 3785928 авг 3 12:17 python2 lrwxrwxrwx 1 root root 7 авг 3 12:17 python2.7 -> python2 -rwxr-xr-x 1 root root 339 авг 3 12:17 websockify ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

did al the commands... this is the output:

(venv)woof@host:/srv/webvirtcloud$ ls -ls venv/bin/
total 3304
4 -rw-r--r-- 1 root root 2203 Aug 3 00:25 activate
4 -rw-r--r-- 1 root root 1259 Aug 3 00:25 activate.csh
4 -rw-r--r-- 1 root root 2472 Aug 3 00:25 activate.fish
4 -rw-r--r-- 1 root root 1129 Aug 3 00:25 activate_this.py
4 -rwxr-xr-x 1 root root 250 Aug 3 00:25 easy_install
4 -rwxr-xr-x 1 root root 250 Aug 3 00:25 easy_install-2.7
4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip
4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip2
4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip2.7
3268 -rwxr-xr-x 1 root root 3345416 Aug 3 00:25 python
0 lrwxrwxrwx 1 root root 6 Aug 3 00:25 python2 -> python
0 lrwxrwxrwx 1 root root 6 Aug 3 00:25 python2.7 -> python

That's all in the folder. -.-

<!-- gh-comment-id:127147303 --> @ikolubr commented on GitHub (Aug 3, 2015): did al the commands... this is the output: (venv)woof@host:/srv/webvirtcloud$ ls -ls venv/bin/ total 3304 4 -rw-r--r-- 1 root root 2203 Aug 3 00:25 activate 4 -rw-r--r-- 1 root root 1259 Aug 3 00:25 activate.csh 4 -rw-r--r-- 1 root root 2472 Aug 3 00:25 activate.fish 4 -rw-r--r-- 1 root root 1129 Aug 3 00:25 activate_this.py 4 -rwxr-xr-x 1 root root 250 Aug 3 00:25 easy_install 4 -rwxr-xr-x 1 root root 250 Aug 3 00:25 easy_install-2.7 4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip 4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip2 4 -rwxr-xr-x 1 root root 222 Aug 3 00:25 pip2.7 3268 -rwxr-xr-x 1 root root 3345416 Aug 3 00:25 python 0 lrwxrwxrwx 1 root root 6 Aug 3 00:25 python2 -> python 0 lrwxrwxrwx 1 root root 6 Aug 3 00:25 python2.7 -> python That's all in the folder. -.-
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

I suggest the steps to do the installation environment

(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade Django==1.8.2

Requirement already up-to-date: Django==1.8.2 in ./venv/lib/python2.7/site-packages
Cleaning up...

We look changes

(venv)woof@host:/srv/webvirtcloud$ ls -la ./venv/lib/python2.7/site-packages
итого 3804
drwxr-xr-x 17 root root    4096 авг  3 12:21 .
drwxr-xr-x  4 root root    4096 авг  3 12:17 ..
drwxr-xr-x 17 root root    4096 авг  3 12:17 django
drwxr-xr-x  2 root root    4096 авг  3 12:17 Django-1.8.2.dist-info
-rw-r--r--  1 root root   15061 авг  3 12:17 drv_libxml2.py
-rw-r--r--  1 root root   11602 авг  3 12:17 drv_libxml2.pyc
-rw-r--r--  1 root root     126 авг  3 12:17 easy_install.py
-rw-r--r--  1 root root     315 авг  3 12:17 easy_install.pyc
drwxr-xr-x  7 root root    4096 авг  3 12:17 gunicorn
drwxr-xr-x  2 root root    4096 авг  3 12:17 gunicorn-19.3.0.dist-info
-rw-r--r--  1 root root    1321 авг  3 12:17 libvirt_lxc.py
-rw-r--r--  1 root root    1193 авг  3 12:17 libvirt_lxc.pyc
-rwxr-xr-x  1 root root   62376 авг  3 12:17 libvirtmod_lxc.so
-rwxr-xr-x  1 root root   80560 авг  3 12:17 libvirtmod_qemu.so
-rwxr-xr-x  1 root root  860672 авг  3 12:17 libvirtmod.so
-rw-r--r--  1 root root  280920 авг  3 12:17 libvirt.py
-rw-r--r--  1 root root  322307 авг  3 12:17 libvirt.pyc
drwxr-xr-x  2 root root    4096 авг  3 12:17 libvirt_python-1.2.16-py2.7.egg-info
-rw-r--r--  1 root root    3149 авг  3 12:17 libvirt_qemu.py
-rw-r--r--  1 root root    3233 авг  3 12:17 libvirt_qemu.pyc
-rwxr-xr-x  1 root root 1117672 авг  3 12:17 libxml2mod.so
-rw-r--r--  1 root root  345539 авг  3 12:17 libxml2.py
-rw-r--r--  1 root root  471748 авг  3 12:17 libxml2.pyc
drwxr-xr-x  2 root root    4096 авг  3 12:17 libxml2_python-2.9.1-py2.7.egg-info
drwxr-xr-x  2 root root    4096 авг  3 12:17 _markerlib
drwxr-xr-x 16 root root    4096 авг  3 12:21 numpy
drwxr-xr-x  2 root root    4096 авг  3 12:21 numpy-1.9.2-py2.7.egg-info
drwxr-xr-x  5 root root    4096 авг  3 12:17 pip
drwxr-xr-x  2 root root    4096 авг  3 12:17 pip-1.5.6.dist-info
-rw-r--r--  1 root root  101340 авг  3 12:17 pkg_resources.py
-rw-r--r--  1 root root  108292 авг  3 12:17 pkg_resources.pyc
drwxr-xr-x  4 root root    4096 авг  3 12:17 setuptools
drwxr-xr-x  2 root root    4096 авг  3 12:17 setuptools-5.5.1.dist-info
drwxr-xr-x  2 root root    4096 авг  3 12:17 websockify
drwxr-xr-x  2 root root    4096 авг  3 12:17 websockify-0.6.0-py2.7.egg-info
<!-- gh-comment-id:127148886 --> @savichev commented on GitHub (Aug 3, 2015): I suggest the steps to do the installation environment ``` (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade Django==1.8.2 Requirement already up-to-date: Django==1.8.2 in ./venv/lib/python2.7/site-packages Cleaning up... ``` We look changes ``` (venv)woof@host:/srv/webvirtcloud$ ls -la ./venv/lib/python2.7/site-packages итого 3804 drwxr-xr-x 17 root root 4096 авг 3 12:21 . drwxr-xr-x 4 root root 4096 авг 3 12:17 .. drwxr-xr-x 17 root root 4096 авг 3 12:17 django drwxr-xr-x 2 root root 4096 авг 3 12:17 Django-1.8.2.dist-info -rw-r--r-- 1 root root 15061 авг 3 12:17 drv_libxml2.py -rw-r--r-- 1 root root 11602 авг 3 12:17 drv_libxml2.pyc -rw-r--r-- 1 root root 126 авг 3 12:17 easy_install.py -rw-r--r-- 1 root root 315 авг 3 12:17 easy_install.pyc drwxr-xr-x 7 root root 4096 авг 3 12:17 gunicorn drwxr-xr-x 2 root root 4096 авг 3 12:17 gunicorn-19.3.0.dist-info -rw-r--r-- 1 root root 1321 авг 3 12:17 libvirt_lxc.py -rw-r--r-- 1 root root 1193 авг 3 12:17 libvirt_lxc.pyc -rwxr-xr-x 1 root root 62376 авг 3 12:17 libvirtmod_lxc.so -rwxr-xr-x 1 root root 80560 авг 3 12:17 libvirtmod_qemu.so -rwxr-xr-x 1 root root 860672 авг 3 12:17 libvirtmod.so -rw-r--r-- 1 root root 280920 авг 3 12:17 libvirt.py -rw-r--r-- 1 root root 322307 авг 3 12:17 libvirt.pyc drwxr-xr-x 2 root root 4096 авг 3 12:17 libvirt_python-1.2.16-py2.7.egg-info -rw-r--r-- 1 root root 3149 авг 3 12:17 libvirt_qemu.py -rw-r--r-- 1 root root 3233 авг 3 12:17 libvirt_qemu.pyc -rwxr-xr-x 1 root root 1117672 авг 3 12:17 libxml2mod.so -rw-r--r-- 1 root root 345539 авг 3 12:17 libxml2.py -rw-r--r-- 1 root root 471748 авг 3 12:17 libxml2.pyc drwxr-xr-x 2 root root 4096 авг 3 12:17 libxml2_python-2.9.1-py2.7.egg-info drwxr-xr-x 2 root root 4096 авг 3 12:17 _markerlib drwxr-xr-x 16 root root 4096 авг 3 12:21 numpy drwxr-xr-x 2 root root 4096 авг 3 12:21 numpy-1.9.2-py2.7.egg-info drwxr-xr-x 5 root root 4096 авг 3 12:17 pip drwxr-xr-x 2 root root 4096 авг 3 12:17 pip-1.5.6.dist-info -rw-r--r-- 1 root root 101340 авг 3 12:17 pkg_resources.py -rw-r--r-- 1 root root 108292 авг 3 12:17 pkg_resources.pyc drwxr-xr-x 4 root root 4096 авг 3 12:17 setuptools drwxr-xr-x 2 root root 4096 авг 3 12:17 setuptools-5.5.1.dist-info drwxr-xr-x 2 root root 4096 авг 3 12:17 websockify drwxr-xr-x 2 root root 4096 авг 3 12:17 websockify-0.6.0-py2.7.egg-info ```
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

analogically

(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install websockify==0.6.0
(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install gunicorn==19.3.0
<!-- gh-comment-id:127149118 --> @savichev commented on GitHub (Aug 3, 2015): analogically ``` (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install websockify==0.6.0 ``` ``` (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install gunicorn==19.3.0 ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

K, so tried:
sudo pip install websockify and gunicorn and both came out saying that was already installed, so tried:

sudo venv/bin/pip install gunicorn==19.3.0
and it installed a whole bunch of things...
then output of ls -a venv/bin
(venv)woof@host:/srv/webvirtcloud$ ls -a venv/bin/
. activate.csh django-admin easy_install gunicorn pip python websockify
.. activate.fish django-admin.py easy_install-2.7 gunicorn_django pip2 python2
activate activate_this.py django-admin.pyc f2py gunicorn_paster pip2.7 python2.7

restarted services... but now I get and internal error instead of 502 bad gateway in the browser.

this is supervisor.log:
2015-08-03 00:45:31,231 WARN received SIGTERM indicating exit request
2015-08-03 00:45:31,232 INFO waiting for gstfsd to die
2015-08-03 00:45:31,235 INFO stopped: gstfsd (terminated by SIGTERM)
2015-08-03 00:45:36,336 CRIT Supervisor running as root (no user in config file)
2015-08-03 00:45:36,336 WARN Included extra file "/etc/supervisor/conf.d/webvirtcloud.conf" during parsing
2015-08-03 00:45:36,336 WARN Included extra file "/etc/supervisor/conf.d/gstfsd.conf" during parsing
2015-08-03 00:45:36,371 INFO RPC interface 'supervisor' initialized
2015-08-03 00:45:36,371 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-08-03 00:45:36,372 INFO daemonizing the supervisord process
2015-08-03 00:45:36,374 INFO supervisord started with pid 5321
2015-08-03 00:45:37,378 INFO spawned: 'webvirtcloud' with pid 5322
2015-08-03 00:45:37,382 INFO spawned: 'novncd' with pid 5323
2015-08-03 00:45:37,385 INFO spawned: 'gstfsd' with pid 5324
2015-08-03 00:45:37,885 INFO exited: novncd (exit status 1; not expected)
2015-08-03 00:45:39,000 INFO success: webvirtcloud entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-03 00:45:39,003 INFO spawned: 'novncd' with pid 5358
2015-08-03 00:45:39,004 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-03 00:45:39,388 INFO exited: novncd (exit status 1; not expected)
2015-08-03 00:45:41,395 INFO spawned: 'novncd' with pid 5361
2015-08-03 00:45:41,778 INFO exited: novncd (exit status 1; not expected)
2015-08-03 00:45:44,785 INFO spawned: 'novncd' with pid 5382
2015-08-03 00:45:45,170 INFO exited: novncd (exit status 1; not expected)
2015-08-03 00:45:46,172 INFO gave up: novncd entered FATAL state, too many start retries too quickly

<!-- gh-comment-id:127151768 --> @ikolubr commented on GitHub (Aug 3, 2015): K, so tried: sudo pip install websockify and gunicorn and both came out saying that was already installed, so tried: sudo venv/bin/pip install gunicorn==19.3.0 and it installed a whole bunch of things... then output of ls -a venv/bin (venv)woof@host:/srv/webvirtcloud$ ls -a venv/bin/ . activate.csh django-admin easy_install gunicorn pip python websockify .. activate.fish django-admin.py easy_install-2.7 gunicorn_django pip2 python2 activate activate_this.py django-admin.pyc f2py gunicorn_paster pip2.7 python2.7 restarted services... but now I get and internal error instead of 502 bad gateway in the browser. this is supervisor.log: 2015-08-03 00:45:31,231 WARN received SIGTERM indicating exit request 2015-08-03 00:45:31,232 INFO waiting for gstfsd to die 2015-08-03 00:45:31,235 INFO stopped: gstfsd (terminated by SIGTERM) 2015-08-03 00:45:36,336 CRIT Supervisor running as root (no user in config file) 2015-08-03 00:45:36,336 WARN Included extra file "/etc/supervisor/conf.d/webvirtcloud.conf" during parsing 2015-08-03 00:45:36,336 WARN Included extra file "/etc/supervisor/conf.d/gstfsd.conf" during parsing 2015-08-03 00:45:36,371 INFO RPC interface 'supervisor' initialized 2015-08-03 00:45:36,371 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2015-08-03 00:45:36,372 INFO daemonizing the supervisord process 2015-08-03 00:45:36,374 INFO supervisord started with pid 5321 2015-08-03 00:45:37,378 INFO spawned: 'webvirtcloud' with pid 5322 2015-08-03 00:45:37,382 INFO spawned: 'novncd' with pid 5323 2015-08-03 00:45:37,385 INFO spawned: 'gstfsd' with pid 5324 2015-08-03 00:45:37,885 INFO exited: novncd (exit status 1; not expected) 2015-08-03 00:45:39,000 INFO success: webvirtcloud entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2015-08-03 00:45:39,003 INFO spawned: 'novncd' with pid 5358 2015-08-03 00:45:39,004 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2015-08-03 00:45:39,388 INFO exited: novncd (exit status 1; not expected) 2015-08-03 00:45:41,395 INFO spawned: 'novncd' with pid 5361 2015-08-03 00:45:41,778 INFO exited: novncd (exit status 1; not expected) 2015-08-03 00:45:44,785 INFO spawned: 'novncd' with pid 5382 2015-08-03 00:45:45,170 INFO exited: novncd (exit status 1; not expected) 2015-08-03 00:45:46,172 INFO gave up: novncd entered FATAL state, too many start retries too quickly
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

CRIT Server 'unix_http_server' running without any HTTP authentication checking

CentOS?

sudo semanage fcontext -a -t httpd_sys_content_t "/srv/webvirtcloud(/.*)"

https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel-centos

<!-- gh-comment-id:127152780 --> @savichev commented on GitHub (Aug 3, 2015): ``` CRIT Server 'unix_http_server' running without any HTTP authentication checking ``` CentOS? ``` sudo semanage fcontext -a -t httpd_sys_content_t "/srv/webvirtcloud(/.*)" ``` https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel-centos
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

ubuntu 14.04 server

<!-- gh-comment-id:127153558 --> @ikolubr commented on GitHub (Aug 3, 2015): ubuntu 14.04 server
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

selinux enable?
If enabe then

sudo semanage fcontext -a -t httpd_sys_content_t "/srv/webvirtcloud(/.*)"

and in files

/etc/supervisor/conf.d/webvirtcloud.conf
/etc/supervisor/conf.d/gstfsd.conf

parameter is present

user=www-data
<!-- gh-comment-id:127154138 --> @savichev commented on GitHub (Aug 3, 2015): selinux enable? If enabe then ``` sudo semanage fcontext -a -t httpd_sys_content_t "/srv/webvirtcloud(/.*)" ``` and in files ``` /etc/supervisor/conf.d/webvirtcloud.conf /etc/supervisor/conf.d/gstfsd.conf ``` parameter is present ``` user=www-data ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

not installed

<!-- gh-comment-id:127155957 --> @ikolubr commented on GitHub (Aug 3, 2015): not installed
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

supervisorctl status
<!-- gh-comment-id:127157817 --> @savichev commented on GitHub (Aug 3, 2015): ``` supervisorctl status ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

woof@host:$ supervisorctl status
error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 224
woof@host:
$ sudo supervisorctl status
gstfsd RUNNING pid 1598, uptime 0:11:33
novncd FATAL Exited too quickly (process log may have details)
webvirtcloud RUNNING pid 1596, uptime 0:11:33

<!-- gh-comment-id:127158134 --> @ikolubr commented on GitHub (Aug 3, 2015): woof@host:~$ supervisorctl status error: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 224 woof@host:~$ sudo supervisorctl status gstfsd RUNNING pid 1598, uptime 0:11:33 novncd FATAL Exited too quickly (process log may have details) webvirtcloud RUNNING pid 1596, uptime 0:11:33
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

cd /srv/webvirtcloud
sudo git pull
sudo python manage.py migrate
sudo chown -R www-data:www-data /srv/webvirtcloud
sudo service supervisor restart
sudo supervisorctl status
<!-- gh-comment-id:127159097 --> @savichev commented on GitHub (Aug 3, 2015): ``` cd /srv/webvirtcloud sudo git pull sudo python manage.py migrate sudo chown -R www-data:www-data /srv/webvirtcloud sudo service supervisor restart sudo supervisorctl status ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

woof@host:/srv/webvirtcloud$ sudo git pull
Already up-to-date.
woof@host:/srv/webvirtcloud$ sudo python manage.py migrate
Operations to perform:
Synchronize unmigrated apps: staticfiles, messages
Apply all migrations: logs, sessions, admin, create, contenttypes, auth, instances, computes, accounts
Synchronizing apps without migrations:
Creating tables...
Running deferred SQL...
Installing custom SQL...
Running migrations:
No migrations to apply.
woof@host:/srv/webvirtcloud$ sudo chown -R www-data:www-data /srv/webvirtcloud
woof@host:/srv/webvirtcloud$ sudo service supervisor restart
Restarting supervisor: supervisord.
woof@host:/srv/webvirtcloud$ sudo supervisorctl status
gstfsd RUNNING pid 1817, uptime 0:00:04
novncd BACKOFF Exited too quickly (process log may have details)
webvirtcloud RUNNING pid 1815, uptime 0:00:04

<!-- gh-comment-id:127159773 --> @ikolubr commented on GitHub (Aug 3, 2015): woof@host:/srv/webvirtcloud$ sudo git pull Already up-to-date. woof@host:/srv/webvirtcloud$ sudo python manage.py migrate Operations to perform: Synchronize unmigrated apps: staticfiles, messages Apply all migrations: logs, sessions, admin, create, contenttypes, auth, instances, computes, accounts Synchronizing apps without migrations: Creating tables... Running deferred SQL... Installing custom SQL... Running migrations: No migrations to apply. woof@host:/srv/webvirtcloud$ sudo chown -R www-data:www-data /srv/webvirtcloud woof@host:/srv/webvirtcloud$ sudo service supervisor restart Restarting supervisor: supervisord. woof@host:/srv/webvirtcloud$ sudo supervisorctl status gstfsd RUNNING pid 1817, uptime 0:00:04 novncd BACKOFF Exited too quickly (process log may have details) webvirtcloud RUNNING pid 1815, uptime 0:00:04
Author
Owner

@choclo commented on GitHub (Aug 3, 2015):

Can you paste what's on your supervisor.conf file?

<!-- gh-comment-id:127160200 --> @choclo commented on GitHub (Aug 3, 2015): Can you paste what's on your supervisor.conf file?
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

supervisrod.conf
; supervisor config file

[unix_http_server]
file=/var/run/supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)

[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)

; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[supervisorctl]
serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket

; The [include] section can just contain the "files" setting. This
; setting can list multiple files (separated by whitespace or
; newlines). It can also contain wildcards. The filenames are
; interpreted as relative to this file. Included files cannot
; include files themselves.

[include]
files = /etc/supervisor/conf.d/*.conf

webvirtcloud.conf
[program:webvirtcloud]
command=/srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py
directory=/srv/webvirtcloud
user=www-data
autostart=true
autorestart=true
redirect_stderr=true

[program:novncd]
command=/srv/webvirtcloud/venv/bin/python /srv/webvirtcloud/console/novncd
directory=/srv/webvirtcloud
user=www-data
autostart=true
autorestart=true
redirect_stderr=true

gstfsd.conf

[program:gstfsd]
command=/usr/bin/python /usr/local/bin/gstfsd
directory=/usr/local/bin
user=root
autostart=true
autorestart=true
redirect_stderr=true

<!-- gh-comment-id:127161408 --> @ikolubr commented on GitHub (Aug 3, 2015): supervisrod.conf ; supervisor config file [unix_http_server] file=/var/run/supervisor.sock ; (the path to the socket file) chmod=0700 ; sockef file mode (default 0700) [supervisord] logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log) pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid) childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP) ; the below section must remain in the config file for RPC ; (supervisorctl/web interface) to work, additional interfaces may be ; added by defining them in separate rpcinterface: sections [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket ; The [include] section can just contain the "files" setting. This ; setting can list multiple files (separated by whitespace or ; newlines). It can also contain wildcards. The filenames are ; interpreted as relative to this file. Included files _cannot_ ; include files themselves. [include] files = /etc/supervisor/conf.d/*.conf webvirtcloud.conf [program:webvirtcloud] command=/srv/webvirtcloud/venv/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py directory=/srv/webvirtcloud user=www-data autostart=true autorestart=true redirect_stderr=true [program:novncd] command=/srv/webvirtcloud/venv/bin/python /srv/webvirtcloud/console/novncd directory=/srv/webvirtcloud user=www-data autostart=true autorestart=true redirect_stderr=true gstfsd.conf [program:gstfsd] command=/usr/bin/python /usr/local/bin/gstfsd directory=/usr/local/bin user=root autostart=true autorestart=true redirect_stderr=true
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

with the conf like this:
[program:webvirtcloud]
command=command=/usr/local/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py
directory=/srv/webvirtcloud
user=www-data
autostart=true
autorestart=true
redirect_stderr=true

[program:novncd]
command=/usr/bin/python /srv/webvirtcloud/console/novncd
directory=/srv/webvirtcloud
user=www-data
autostart=true
autorestart=true
redirect_stderr=true

my status:
woof@host:/srv/webvirtcloud$ sudo supervisorctl status
gstfsd RUNNING pid 1963, uptime 0:02:51
novncd RUNNING pid 1962, uptime 0:02:51
webvirtcloud FATAL can't find command 'command=/srv/webvirtcloud/venv/bin/gunicorn'

at least the novncd is going now, but it can't find gunicorn... I tried setting the gunicorn back to what is was but same error occurred.

<!-- gh-comment-id:127162811 --> @ikolubr commented on GitHub (Aug 3, 2015): with the conf like this: [program:webvirtcloud] command=command=/usr/local/bin/gunicorn webvirtcloud.wsgi:application -c /srv/webvirtcloud/gunicorn.conf.py directory=/srv/webvirtcloud user=www-data autostart=true autorestart=true redirect_stderr=true [program:novncd] command=/usr/bin/python /srv/webvirtcloud/console/novncd directory=/srv/webvirtcloud user=www-data autostart=true autorestart=true redirect_stderr=true my status: woof@host:/srv/webvirtcloud$ sudo supervisorctl status gstfsd RUNNING pid 1963, uptime 0:02:51 novncd RUNNING pid 1962, uptime 0:02:51 webvirtcloud FATAL can't find command 'command=/srv/webvirtcloud/venv/bin/gunicorn' at least the novncd is going now, but it can't find gunicorn... I tried setting the gunicorn back to what is was but same error occurred.
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

ok... so set back the gunicorn and RESTARTED supervisor....

woof@host:/srv/webvirtcloud$ sudo supervisorctl status
gstfsd RUNNING pid 2020, uptime 0:00:40
novncd RUNNING pid 2019, uptime 0:00:40
webvirtcloud RUNNING pid 2018, uptime 0:00:40

tried to restart nginx but still getting the internal error on browser.

<!-- gh-comment-id:127163268 --> @ikolubr commented on GitHub (Aug 3, 2015): ok... so set back the gunicorn and RESTARTED supervisor.... woof@host:/srv/webvirtcloud$ sudo supervisorctl status gstfsd RUNNING pid 2020, uptime 0:00:40 novncd RUNNING pid 2019, uptime 0:00:40 webvirtcloud RUNNING pid 2018, uptime 0:00:40 tried to restart nginx but still getting the internal error on browser.
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

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.

<!-- gh-comment-id:127163498 --> @ikolubr commented on GitHub (Aug 3, 2015): 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.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

Ok,

cd /srv/webvirtcloud
source venv/bin/activate
(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade gunicorn==19.3.0
(venv)woof@host:/srv/webvirtcloud$ ls -la venv/bin/
<!-- gh-comment-id:127164088 --> @savichev commented on GitHub (Aug 3, 2015): Ok, ``` cd /srv/webvirtcloud source venv/bin/activate (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade gunicorn==19.3.0 (venv)woof@host:/srv/webvirtcloud$ ls -la venv/bin/ ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

woof@host:/srv/webvirtcloud$ source venv/bin/activate
(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade gunicorn==19.3.0
Requirement already up-to-date: gunicorn==19.3.0 in ./venv/lib/python2.7/site-packages
Cleaning up...
(venv)woof@host:/srv/webvirtcloud$ ls -la venv/bin/
total 3344
drwxr-xr-x 2 www-data www-data 4096 Aug 3 00:44 .
drwxr-xr-x 7 www-data www-data 4096 Aug 3 00:44 ..
-rw-r--r-- 1 www-data www-data 2203 Aug 3 00:25 activate
-rw-r--r-- 1 www-data www-data 1259 Aug 3 00:25 activate.csh
-rw-r--r-- 1 www-data www-data 2472 Aug 3 00:25 activate.fish
-rw-r--r-- 1 www-data www-data 1129 Aug 3 00:25 activate_this.py
-rwxr-xr-x 1 www-data www-data 283 Aug 3 00:37 django-admin
-rwxr-xr-x 1 www-data www-data 142 Aug 3 00:37 django-admin.py
-rw-r--r-- 1 www-data www-data 311 Aug 3 00:37 django-admin.pyc
-rwxr-xr-x 1 www-data www-data 250 Aug 3 00:25 easy_install
-rwxr-xr-x 1 www-data www-data 250 Aug 3 00:25 easy_install-2.7
-rwxr-xr-x 1 www-data www-data 696 Aug 3 00:44 f2py
-rwxr-xr-x 1 www-data www-data 237 Aug 3 00:39 gunicorn
-rwxr-xr-x 1 www-data www-data 239 Aug 3 00:39 gunicorn_django
-rwxr-xr-x 1 www-data www-data 239 Aug 3 00:39 gunicorn_paster
-rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip
-rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip2
-rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip2.7
-rwxr-xr-x 1 www-data www-data 3345416 Aug 3 00:25 python
lrwxrwxrwx 1 www-data www-data 6 Aug 3 00:25 python2 -> python
lrwxrwxrwx 1 www-data www-data 6 Aug 3 00:25 python2.7 -> python
-rwxr-xr-x 1 www-data www-data 334 Aug 3 00:40 websockify

<!-- gh-comment-id:127164521 --> @ikolubr commented on GitHub (Aug 3, 2015): woof@host:/srv/webvirtcloud$ source venv/bin/activate (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade gunicorn==19.3.0 Requirement already up-to-date: gunicorn==19.3.0 in ./venv/lib/python2.7/site-packages Cleaning up... (venv)woof@host:/srv/webvirtcloud$ ls -la venv/bin/ total 3344 drwxr-xr-x 2 www-data www-data 4096 Aug 3 00:44 . drwxr-xr-x 7 www-data www-data 4096 Aug 3 00:44 .. -rw-r--r-- 1 www-data www-data 2203 Aug 3 00:25 activate -rw-r--r-- 1 www-data www-data 1259 Aug 3 00:25 activate.csh -rw-r--r-- 1 www-data www-data 2472 Aug 3 00:25 activate.fish -rw-r--r-- 1 www-data www-data 1129 Aug 3 00:25 activate_this.py -rwxr-xr-x 1 www-data www-data 283 Aug 3 00:37 django-admin -rwxr-xr-x 1 www-data www-data 142 Aug 3 00:37 django-admin.py -rw-r--r-- 1 www-data www-data 311 Aug 3 00:37 django-admin.pyc -rwxr-xr-x 1 www-data www-data 250 Aug 3 00:25 easy_install -rwxr-xr-x 1 www-data www-data 250 Aug 3 00:25 easy_install-2.7 -rwxr-xr-x 1 www-data www-data 696 Aug 3 00:44 f2py -rwxr-xr-x 1 www-data www-data 237 Aug 3 00:39 gunicorn -rwxr-xr-x 1 www-data www-data 239 Aug 3 00:39 gunicorn_django -rwxr-xr-x 1 www-data www-data 239 Aug 3 00:39 gunicorn_paster -rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip -rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip2 -rwxr-xr-x 1 www-data www-data 222 Aug 3 00:25 pip2.7 -rwxr-xr-x 1 www-data www-data 3345416 Aug 3 00:25 python lrwxrwxrwx 1 www-data www-data 6 Aug 3 00:25 python2 -> python lrwxrwxrwx 1 www-data www-data 6 Aug 3 00:25 python2.7 -> python -rwxr-xr-x 1 www-data www-data 334 Aug 3 00:40 websockify
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

sudo service supervisor restart
sudo supervisorctl status
<!-- gh-comment-id:127164631 --> @savichev commented on GitHub (Aug 3, 2015): ``` sudo service supervisor restart sudo supervisorctl status ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

(venv)woof@host:/srv/webvirtcloud$ sudo supervisorctl status
gstfsd RUNNING pid 2115, uptime 0:00:35
novncd RUNNING pid 2114, uptime 0:00:35
webvirtcloud RUNNING pid 2113, uptime 0:00:35

<!-- gh-comment-id:127164713 --> @ikolubr commented on GitHub (Aug 3, 2015): (venv)woof@host:/srv/webvirtcloud$ sudo supervisorctl status gstfsd RUNNING pid 2115, uptime 0:00:35 novncd RUNNING pid 2114, uptime 0:00:35 webvirtcloud RUNNING pid 2113, uptime 0:00:35
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

still getting internal server error on browser

<!-- gh-comment-id:127164779 --> @ikolubr commented on GitHub (Aug 3, 2015): still getting internal server error on browser
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

sudo service nginx restart
<!-- gh-comment-id:127164868 --> @savichev commented on GitHub (Aug 3, 2015): ``` sudo service nginx restart ```
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

run browser
and refresh Ctrl+F5

<!-- gh-comment-id:127164947 --> @savichev commented on GitHub (Aug 3, 2015): run browser and refresh Ctrl+F5
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

I did restart nginx.. I cleared cache, crtl+f5, ctrl+r, opened another browser... still internal server error

<!-- gh-comment-id:127165151 --> @ikolubr commented on GitHub (Aug 3, 2015): I did restart nginx.. I cleared cache, crtl+f5, ctrl+r, opened another browser... still internal server error
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

error 502?

<!-- gh-comment-id:127165227 --> @savichev commented on GitHub (Aug 3, 2015): error 502?
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

no. the bad gateway went away.
now it just says internal server error

<!-- gh-comment-id:127165313 --> @ikolubr commented on GitHub (Aug 3, 2015): no. the bad gateway went away. now it just says internal server error
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

need logs

/var/log/nginx/error.log
<!-- gh-comment-id:127166515 --> @savichev commented on GitHub (Aug 3, 2015): need logs ``` /var/log/nginx/error.log ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

nginx access.log:
10.0.1.2 - - [03/Aug/2015:01:41:52 -0700] "GET / HTTP/1.1" 500 141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12"
10.0.1.2 - - [03/Aug/2015:01:42:07 -0700] "GET / HTTP/1.1" 500 141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0"

nginx error.log:
nothing here.

<!-- gh-comment-id:127166698 --> @ikolubr commented on GitHub (Aug 3, 2015): nginx access.log: 10.0.1.2 - - [03/Aug/2015:01:41:52 -0700] "GET / HTTP/1.1" 500 141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/600.7.12 (KHTML, like Gecko) Version/8.0.7 Safari/600.7.12" 10.0.1.2 - - [03/Aug/2015:01:42:07 -0700] "GET / HTTP/1.1" 500 141 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:39.0) Gecko/20100101 Firefox/39.0" nginx error.log: nothing here.
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

ok, logs

/var/log/supervisor/webvirtcloud-
<!-- gh-comment-id:127167790 --> @savichev commented on GitHub (Aug 3, 2015): ok, logs ``` /var/log/supervisor/webvirtcloud- ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

supervisord.log:
2015-08-03 01:39:16,487 WARN received SIGTERM indicating exit request
2015-08-03 01:39:16,487 INFO waiting for webvirtcloud, novncd, gstfsd to die
2015-08-03 01:39:16,490 INFO stopped: gstfsd (terminated by SIGTERM)
2015-08-03 01:39:16,547 INFO stopped: novncd (exit status 0)
2015-08-03 01:39:16,703 INFO stopped: webvirtcloud (exit status 0)
2015-08-03 01:39:21,594 CRIT Supervisor running as root (no user in config file)
2015-08-03 01:39:21,594 WARN Included extra file "/etc/supervisor/conf.d/webvirtcloud.conf" during parsing
2015-08-03 01:39:21,594 WARN Included extra file "/etc/supervisor/conf.d/gstfsd.conf" during parsing
2015-08-03 01:39:21,633 INFO RPC interface 'supervisor' initialized
2015-08-03 01:39:21,634 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-08-03 01:39:21,635 INFO daemonizing the supervisord process
2015-08-03 01:39:21,636 INFO supervisord started with pid 2112
2015-08-03 01:39:22,641 INFO spawned: 'webvirtcloud' with pid 2113
2015-08-03 01:39:22,644 INFO spawned: 'novncd' with pid 2114
2015-08-03 01:39:22,648 INFO spawned: 'gstfsd' with pid 2115
2015-08-03 01:39:24,277 INFO success: webvirtcloud entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-03 01:39:24,277 INFO success: novncd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-08-03 01:39:24,277 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

webvirtcloud-stdout:
[2015-08-03 08:52:20 +0000] [2141] [ERROR] Error handling request
Traceback (most recent call last):
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle
self.handle_request(listener, req, client, addr)
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 171, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in call
response = self.get_response(request)
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/srv/webvirtcloud/webvirtcloud/urls.py", line 8, in
url(r'^instance/', include('instances.urls')),
File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/init.py", line 33, in include
urlconf_module = import_module(urlconf_module)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/srv/webvirtcloud/instances/urls.py", line 2, in
from . import views
File "/srv/webvirtcloud/instances/views.py", line 15, in
from vrtManager.hostdetails import wvmHostDetails
File "/srv/webvirtcloud/vrtManager/hostdetails.py", line 2, in
from vrtManager.connection import wvmConnect
File "/srv/webvirtcloud/vrtManager/connection.py", line 1, in
import libvirt
ImportError: No module named libvirt
127.0.0.1 - - [03/Aug/2015:08:52:20 +0000] "GET / HTTP/1.0" 500 - "-" "-"

webvirtcloud-stderr:
nothing here

<!-- gh-comment-id:127168584 --> @ikolubr commented on GitHub (Aug 3, 2015): supervisord.log: 2015-08-03 01:39:16,487 WARN received SIGTERM indicating exit request 2015-08-03 01:39:16,487 INFO waiting for webvirtcloud, novncd, gstfsd to die 2015-08-03 01:39:16,490 INFO stopped: gstfsd (terminated by SIGTERM) 2015-08-03 01:39:16,547 INFO stopped: novncd (exit status 0) 2015-08-03 01:39:16,703 INFO stopped: webvirtcloud (exit status 0) 2015-08-03 01:39:21,594 CRIT Supervisor running as root (no user in config file) 2015-08-03 01:39:21,594 WARN Included extra file "/etc/supervisor/conf.d/webvirtcloud.conf" during parsing 2015-08-03 01:39:21,594 WARN Included extra file "/etc/supervisor/conf.d/gstfsd.conf" during parsing 2015-08-03 01:39:21,633 INFO RPC interface 'supervisor' initialized 2015-08-03 01:39:21,634 CRIT Server 'unix_http_server' running without any HTTP authentication checking 2015-08-03 01:39:21,635 INFO daemonizing the supervisord process 2015-08-03 01:39:21,636 INFO supervisord started with pid 2112 2015-08-03 01:39:22,641 INFO spawned: 'webvirtcloud' with pid 2113 2015-08-03 01:39:22,644 INFO spawned: 'novncd' with pid 2114 2015-08-03 01:39:22,648 INFO spawned: 'gstfsd' with pid 2115 2015-08-03 01:39:24,277 INFO success: webvirtcloud entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2015-08-03 01:39:24,277 INFO success: novncd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2015-08-03 01:39:24,277 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) webvirtcloud-stdout: [2015-08-03 08:52:20 +0000] [2141] [ERROR] Error handling request Traceback (most recent call last): File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle self.handle_request(listener, req, client, addr) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 171, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in **call** response = self.get_response(request) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception if resolver.urlconf_module is None: File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module **import**(name) File "/srv/webvirtcloud/webvirtcloud/urls.py", line 8, in <module> url(r'^instance/', include('instances.urls')), File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/**init**.py", line 33, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/**init**.py", line 37, in import_module **import**(name) File "/srv/webvirtcloud/instances/urls.py", line 2, in <module> from . import views File "/srv/webvirtcloud/instances/views.py", line 15, in <module> from vrtManager.hostdetails import wvmHostDetails File "/srv/webvirtcloud/vrtManager/hostdetails.py", line 2, in <module> from vrtManager.connection import wvmConnect File "/srv/webvirtcloud/vrtManager/connection.py", line 1, in <module> import libvirt ImportError: No module named libvirt 127.0.0.1 - - [03/Aug/2015:08:52:20 +0000] "GET / HTTP/1.0" 500 - "-" "-" webvirtcloud-stderr: nothing here
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

ок

cd /srv/webvirtcloud
source venv/bin/activate
(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade libvirt-python==1.2.16
sudo service supervisor restart
sudo supervisorctl status
<!-- gh-comment-id:127168904 --> @savichev commented on GitHub (Aug 3, 2015): ок ``` cd /srv/webvirtcloud source venv/bin/activate (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade libvirt-python==1.2.16 ``` ``` sudo service supervisor restart sudo supervisorctl status ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

after pip install, restarting supervisor, nginx:
webvitcloud-stdout:
[2015-08-03 08:58:42 +0000] [2505] [ERROR] Error handling request Traceback (most recent call last): File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle self.handle_request(listener, req, client, addr) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 171, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception if resolver.urlconf_module is None: File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/srv/webvirtcloud/webvirtcloud/urls.py", line 8, in <module> url(r'^instance/', include('instances.urls')), File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/srv/webvirtcloud/instances/urls.py", line 2, in <module> from . import views File "/srv/webvirtcloud/instances/views.py", line 15, in <module> from vrtManager.hostdetails import wvmHostDetails File "/srv/webvirtcloud/vrtManager/hostdetails.py", line 2, in <module> from vrtManager.connection import wvmConnect File "/srv/webvirtcloud/vrtManager/connection.py", line 4, in <module> from vrtManager import util File "/srv/webvirtcloud/vrtManager/util.py", line 3, in <module> import libxml2 ImportError: No module named libxml2 127.0.0.1 - - [03/Aug/2015:08:58:42 +0000] "GET / HTTP/1.0" 500 - "-" "-"

<!-- gh-comment-id:127169600 --> @ikolubr commented on GitHub (Aug 3, 2015): after pip install, restarting supervisor, nginx: webvitcloud-stdout: `[2015-08-03 08:58:42 +0000] [2505] [ERROR] Error handling request Traceback (most recent call last): File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle self.handle_request(listener, req, client, addr) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 171, in handle_request respiter = self.wsgi(environ, resp.start_response) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in __call__ response = self.get_response(request) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 218, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 264, in handle_uncaught_exception if resolver.urlconf_module is None: File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 396, in urlconf_module self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/srv/webvirtcloud/webvirtcloud/urls.py", line 8, in <module> url(r'^instance/', include('instances.urls')), File "/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include urlconf_module = import_module(urlconf_module) File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) File "/srv/webvirtcloud/instances/urls.py", line 2, in <module> from . import views File "/srv/webvirtcloud/instances/views.py", line 15, in <module> from vrtManager.hostdetails import wvmHostDetails File "/srv/webvirtcloud/vrtManager/hostdetails.py", line 2, in <module> from vrtManager.connection import wvmConnect File "/srv/webvirtcloud/vrtManager/connection.py", line 4, in <module> from vrtManager import util File "/srv/webvirtcloud/vrtManager/util.py", line 3, in <module> import libxml2 ImportError: No module named libxml2 127.0.0.1 - - [03/Aug/2015:08:58:42 +0000] "GET / HTTP/1.0" 500 - "-" "-"`
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

cd /srv/webvirtcloud
source venv/bin/activate
(venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade http://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz
Successfully installed libxml2-python

?

sudo service supervisor restart
sudo supervisorctl status
<!-- gh-comment-id:127170013 --> @savichev commented on GitHub (Aug 3, 2015): ``` cd /srv/webvirtcloud source venv/bin/activate (venv)woof@host:/srv/webvirtcloud$ sudo venv/bin/pip install --upgrade http://github.com/retspen/retspen.github.io/raw/master/libxml2-python-2.9.1.tar.gz ``` ``` Successfully installed libxml2-python ``` ? ``` sudo service supervisor restart sudo supervisorctl status ```
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

booom!
working!

<!-- gh-comment-id:127171268 --> @ikolubr commented on GitHub (Aug 3, 2015): booom! working!
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

👍

<!-- gh-comment-id:127171447 --> @savichev commented on GitHub (Aug 3, 2015): :+1:
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

I have no words...
Thank you!
where do I donate?!

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?

<!-- gh-comment-id:127172227 --> @ikolubr commented on GitHub (Aug 3, 2015): I have no words... Thank you! where do I donate?! 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?
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

Project webvirtcloud have status beta =)
But it is quite stable

Regarding donations, you need to contact @retspen

<!-- gh-comment-id:127173343 --> @savichev commented on GitHub (Aug 3, 2015): Project webvirtcloud have status beta =) But it is quite stable Regarding donations, you need to contact @retspen
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

ok. Will do!

<!-- gh-comment-id:127174129 --> @ikolubr commented on GitHub (Aug 3, 2015): ok. Will do!
Author
Owner

@ikolubr commented on GitHub (Aug 3, 2015):

thx a bunch!

<!-- gh-comment-id:127174148 --> @ikolubr commented on GitHub (Aug 3, 2015): thx a bunch!
Author
Owner

@savichev commented on GitHub (Aug 3, 2015):

@ikolubr
Please close ticket

<!-- gh-comment-id:127186303 --> @savichev commented on GitHub (Aug 3, 2015): @ikolubr Please close ticket
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/webvirtcloud#26
No description provided.