{"action":"created","issue":{"url":"https://api.github.com/repos/retspen/webvirtcloud/issues/40","labels_url":"https://api.github.com/repos/retspen/webvirtcloud/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/retspen/webvirtcloud/issues/40/comments","events_url":"https://api.github.com/repos/retspen/webvirtcloud/issues/40/events","html_url":"https://github.com/retspen/webvirtcloud/issues/40","id":98666826,"number":40,"title":"502 Bad Gateway","user":{"login":"ikolubr","id":2576482,"avatar_url":"https://avatars.githubusercontent.com/u/2576482?v=3","gravatar_id":"","url":"https://api.github.com/users/ikolubr","html_url":"https://github.com/ikolubr","followers_url":"https://api.github.com/users/ikolubr/followers","following_url":"https://api.github.com/users/ikolubr/following{/other_user}","gists_url":"https://api.github.com/users/ikolubr/gists{/gist_id}","starred_url":"https://api.github.com/users/ikolubr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikolubr/subscriptions","organizations_url":"https://api.github.com/users/ikolubr/orgs","repos_url":"https://api.github.com/users/ikolubr/repos","events_url":"https://api.github.com/users/ikolubr/events{/privacy}","received_events_url":"https://api.github.com/users/ikolubr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":47,"created_at":"2015-08-03T04:02:45Z","updated_at":"2015-08-03T08:55:06Z","closed_at":null,"body":"Hi guys,\r\nSo I gad webvirtmgr installed and running perfectly. I saw the development of this one and decided to try it out.\r\nSo 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.\r\nAll I did differently from the readme was to remove the .conf related to webvirtmgr.\r\n\r\nError I'm getting on nginx log:\r\n[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\"\r\n\r\nSupervisor log:\r\n2015-08-02 21:11:40,387 WARN received SIGTERM indicating exit request\r\n2015-08-02 21:11:40,388 INFO waiting for gstfsd to die\r\n2015-08-02 21:11:40,391 INFO stopped: gstfsd (terminated by SIGTERM)\r\n2015-08-02 21:11:45,556 CRIT Supervisor running as root (no user in config file)\r\n2015-08-02 21:11:45,556 WARN Included extra file \"/etc/supervisor/conf.d/webvirtcloud.conf\" during parsing\r\n2015-08-02 21:11:45,556 WARN Included extra file \"/etc/supervisor/conf.d/gstfsd.conf\" during parsing\r\n2015-08-02 21:11:45,601 INFO RPC interface 'supervisor' initialized\r\n2015-08-02 21:11:45,601 CRIT Server 'unix_http_server' running without any HTTP authentication checking\r\n2015-08-02 21:11:45,603 INFO daemonizing the supervisord process\r\n2015-08-02 21:11:45,604 INFO supervisord started with pid 1873\r\n2015-08-02 21:11:46,607 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'\r\n2015-08-02 21:11:46,609 INFO spawned: 'novncd' with pid 1874\r\n2015-08-02 21:11:46,613 INFO spawned: 'gstfsd' with pid 1875\r\n2015-08-02 21:11:46,658 INFO exited: novncd (exit status 1; not expected)\r\n2015-08-02 21:11:47,661 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'\r\n2015-08-02 21:11:47,663 INFO spawned: 'novncd' with pid 1876\r\n2015-08-02 21:11:47,664 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2015-08-02 21:11:47,708 INFO exited: novncd (exit status 1; not expected)\r\n2015-08-02 21:11:49,713 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'\r\n2015-08-02 21:11:49,715 INFO spawned: 'novncd' with pid 1877\r\n2015-08-02 21:11:49,760 INFO exited: novncd (exit status 1; not expected)\r\n2015-08-02 21:11:52,766 INFO spawnerr: can't find command '/srv/webvirtcloud/venv/bin/gunicorn'\r\n2015-08-02 21:11:52,766 INFO gave up: webvirtcloud entered FATAL state, too many start retries too quickly\r\n2015-08-02 21:11:52,769 INFO spawned: 'novncd' with pid 1878\r\n2015-08-02 21:11:52,812 INFO exited: novncd (exit status 1; not expected)\r\n2015-08-02 21:11:53,814 INFO gave up: novncd entered FATAL state, too many start retries too quickly\r\n\r\nAny ideas here?\r\n\r\nThank you,\r\nIgor"},"comment":{"url":"https://api.github.com/repos/retspen/webvirtcloud/issues/comments/127168584","html_url":"https://github.com/retspen/webvirtcloud/issues/40#issuecomment-127168584","issue_url":"https://api.github.com/repos/retspen/webvirtcloud/issues/40","id":127168584,"user":{"login":"ikolubr","id":2576482,"avatar_url":"https://avatars.githubusercontent.com/u/2576482?v=3","gravatar_id":"","url":"https://api.github.com/users/ikolubr","html_url":"https://github.com/ikolubr","followers_url":"https://api.github.com/users/ikolubr/followers","following_url":"https://api.github.com/users/ikolubr/following{/other_user}","gists_url":"https://api.github.com/users/ikolubr/gists{/gist_id}","starred_url":"https://api.github.com/users/ikolubr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikolubr/subscriptions","organizations_url":"https://api.github.com/users/ikolubr/orgs","repos_url":"https://api.github.com/users/ikolubr/repos","events_url":"https://api.github.com/users/ikolubr/events{/privacy}","received_events_url":"https://api.github.com/users/ikolubr/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T08:55:06Z","updated_at":"2015-08-03T08:55:06Z","body":"supervisord.log:\r\n2015-08-03 01:39:16,487 WARN received SIGTERM indicating exit request\r\n2015-08-03 01:39:16,487 INFO waiting for webvirtcloud, novncd, gstfsd to die\r\n2015-08-03 01:39:16,490 INFO stopped: gstfsd (terminated by SIGTERM)\r\n2015-08-03 01:39:16,547 INFO stopped: novncd (exit status 0)\r\n2015-08-03 01:39:16,703 INFO stopped: webvirtcloud (exit status 0)\r\n2015-08-03 01:39:21,594 CRIT Supervisor running as root (no user in config file)\r\n2015-08-03 01:39:21,594 WARN Included extra file \"/etc/supervisor/conf.d/webvirtcloud.conf\" during parsing\r\n2015-08-03 01:39:21,594 WARN Included extra file \"/etc/supervisor/conf.d/gstfsd.conf\" during parsing\r\n2015-08-03 01:39:21,633 INFO RPC interface 'supervisor' initialized\r\n2015-08-03 01:39:21,634 CRIT Server 'unix_http_server' running without any HTTP authentication checking\r\n2015-08-03 01:39:21,635 INFO daemonizing the supervisord process\r\n2015-08-03 01:39:21,636 INFO supervisord started with pid 2112\r\n2015-08-03 01:39:22,641 INFO spawned: 'webvirtcloud' with pid 2113\r\n2015-08-03 01:39:22,644 INFO spawned: 'novncd' with pid 2114\r\n2015-08-03 01:39:22,648 INFO spawned: 'gstfsd' with pid 2115\r\n2015-08-03 01:39:24,277 INFO success: webvirtcloud entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2015-08-03 01:39:24,277 INFO success: novncd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n2015-08-03 01:39:24,277 INFO success: gstfsd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)\r\n\r\nwebvirtcloud-stdout:\r\n[2015-08-03 08:52:20 +0000] [2141] [ERROR] Error handling request\r\nTraceback (most recent call last):\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py\", line 130, in handle\r\n    self.handle_request(listener, req, client, addr)\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py\", line 171, in handle_request\r\n    respiter = self.wsgi(environ, resp.start_response)\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py\", line 189, in __call__\r\n    response = self.get_response(request)\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py\", line 218, in get_response\r\n    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py\", line 264, in handle_uncaught_exception\r\n    if resolver.urlconf_module is None:\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/core/urlresolvers.py\", line 396, in urlconf_module\r\n    self._urlconf_module = import_module(self.urlconf_name)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\n  File \"/srv/webvirtcloud/webvirtcloud/urls.py\", line 8, in <module>\r\n    url(r'^instance/', include('instances.urls')),\r\n  File \"/srv/webvirtcloud/venv/local/lib/python2.7/site-packages/django/conf/urls/__init__.py\", line 33, in include\r\n    urlconf_module = import_module(urlconf_module)\r\n  File \"/usr/lib/python2.7/importlib/__init__.py\", line 37, in import_module\r\n    __import__(name)\r\n  File \"/srv/webvirtcloud/instances/urls.py\", line 2, in <module>\r\n    from . import views\r\n  File \"/srv/webvirtcloud/instances/views.py\", line 15, in <module>\r\n    from vrtManager.hostdetails import wvmHostDetails\r\n  File \"/srv/webvirtcloud/vrtManager/hostdetails.py\", line 2, in <module>\r\n    from vrtManager.connection import wvmConnect\r\n  File \"/srv/webvirtcloud/vrtManager/connection.py\", line 1, in <module>\r\n    import libvirt\r\nImportError: No module named libvirt\r\n127.0.0.1 - - [03/Aug/2015:08:52:20 +0000] \"GET / HTTP/1.0\" 500 - \"-\" \"-\"\r\n\r\nwebvirtcloud-stderr:\r\nnothing here"}}