mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-04-25 15:35:57 +03:00
[GH-ISSUE #40] 502 Bad Gateway #26
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/webvirtcloud#26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@savichev commented on GitHub (Aug 3, 2015):
Hi! I see that the file is not found.
You perform these steps in the installation instructions?
@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
@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?
@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
@savichev commented on GitHub (Aug 3, 2015):
and
@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
@savichev commented on GitHub (Aug 3, 2015):
@savichev commented on GitHub (Aug 3, 2015):
It seems that all the recommendations made
@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
@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
@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
@savichev commented on GitHub (Aug 3, 2015):
You execute?
@ikolubr commented on GitHub (Aug 3, 2015):
Yes I did. It installed the package but nothing changed.
@savichev commented on GitHub (Aug 3, 2015):
I have no bugs =(
@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
@savichev commented on GitHub (Aug 3, 2015):
OS Debian 8 amd64 "Jessie"
@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. -.-
@savichev commented on GitHub (Aug 3, 2015):
I suggest the steps to do the installation environment
We look changes
@savichev commented on GitHub (Aug 3, 2015):
analogically
@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
@savichev commented on GitHub (Aug 3, 2015):
CentOS?
https://github.com/retspen/webvirtcloud#install-webvirtcloud-panel-centos
@ikolubr commented on GitHub (Aug 3, 2015):
ubuntu 14.04 server
@savichev commented on GitHub (Aug 3, 2015):
selinux enable?
If enabe then
and in files
parameter is present
@ikolubr commented on GitHub (Aug 3, 2015):
not installed
@savichev commented on GitHub (Aug 3, 2015):
@ikolubr commented on GitHub (Aug 3, 2015):
woof@host:
$ supervisorctl status$ sudo supervisorctl statuserror: <class 'socket.error'>, [Errno 13] Permission denied: file: /usr/lib/python2.7/socket.py line: 224
woof@host:
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
@savichev commented on GitHub (Aug 3, 2015):
@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
@choclo commented on GitHub (Aug 3, 2015):
Can you paste what's on your supervisor.conf file?
@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
@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.
@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.
@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.
@savichev commented on GitHub (Aug 3, 2015):
Ok,
@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
@savichev commented on GitHub (Aug 3, 2015):
@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
@ikolubr commented on GitHub (Aug 3, 2015):
still getting internal server error on browser
@savichev commented on GitHub (Aug 3, 2015):
@savichev commented on GitHub (Aug 3, 2015):
run browser
and refresh Ctrl+F5
@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
@savichev commented on GitHub (Aug 3, 2015):
error 502?
@ikolubr commented on GitHub (Aug 3, 2015):
no. the bad gateway went away.
now it just says internal server error
@savichev commented on GitHub (Aug 3, 2015):
need logs
@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.
@savichev commented on GitHub (Aug 3, 2015):
ok, logs
@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
@savichev commented on GitHub (Aug 3, 2015):
ок
@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 - "-" "-"@savichev commented on GitHub (Aug 3, 2015):
?
@ikolubr commented on GitHub (Aug 3, 2015):
booom!
working!
@savichev commented on GitHub (Aug 3, 2015):
👍
@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?
@savichev commented on GitHub (Aug 3, 2015):
Project webvirtcloud have status beta =)
But it is quite stable
Regarding donations, you need to contact @retspen
@ikolubr commented on GitHub (Aug 3, 2015):
ok. Will do!
@ikolubr commented on GitHub (Aug 3, 2015):
thx a bunch!
@savichev commented on GitHub (Aug 3, 2015):
@ikolubr
Please close ticket