Skip to content

Instantly share code, notes, and snippets.

@mflu
Created November 26, 2014 09:08
Show Gist options
  • Save mflu/8d35b10785bbede0bbb4 to your computer and use it in GitHub Desktop.
Save mflu/8d35b10785bbede0bbb4 to your computer and use it in GitHub Desktop.
django_gunicorn_ovs
[root@ovs]# cat django_gunicorn_ovs.error
[2014-11-26 15:24:02 +0000] [7675] [DEBUG] Current configuration:
proxy_protocol: False
worker_connections: 1000
syslog: False
statsd_host: None
post_fork: <function post_fork at 0x2a90f50>
pythonpath: None
enable_stdio_inheritance: False
worker_class: gevent
ssl_version: 3
suppress_ragged_eofs: True
syslog_facility: user
when_ready: <function when_ready at 0x2a90c80>
pre_fork: <function pre_fork at 0x2a90de8>
cert_reqs: 0
preload_app: False
workers: 25
keepalive: 2
accesslog: /var/log/ovs/django_gunicorn_ovs.log
pidfile: /var/run/ovs_api.pid
worker_tmp_dir: None
group: 0
graceful_timeout: 30
spew: False
proc_name: ovs_api
umask: 0
on_reload: <function on_reload at 0x2a90b18>
post_worker_init: <function post_worker_init at 0x2a95140>
pre_exec: <function pre_exec at 0x2a95578>
limit_request_fields: 100
on_exit: <function on_exit at 0x2a95c08>
config: /opt/OpenvStorage/config/django_gunicorn_ovs.cfg.py
logconfig: None
check_config: False
do_handshake_on_connect: False
secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'}
proxy_allow_ips: ['127.0.0.1']
pre_request: <function pre_request at 0x2a956e0>
post_request: <function post_request at 0x2a957d0>
forwarded_allow_ips: ['127.0.0.1']
worker_int: <function worker_int at 0x2a952a8>
ca_certs: None
threads: 1
max_requests: 0
chdir: /opt/OpenvStorage/webapps
daemon: False
user: 0
limit_request_line: 4096
access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"
certfile: None
worker_exit: <function worker_exit at 0x2a95938>
paste: None
default_proc_name: api.wsgi
errorlog: /var/log/ovs/django_gunicorn_ovs.error
logger_class: gunicorn.glogging.Logger
syslog_addr: udp://localhost:514
syslog_prefix: None
ciphers: TLSv1
worker_abort: <function worker_abort at 0x2a95410>
loglevel: debug
bind: ['127.0.0.1:8002']
raw_env: []
reload: False
limit_request_field_size: 8190
nworkers_changed: <function nworkers_changed at 0x2a95aa0>
timeout: 600
on_starting: <function on_starting at 0x2a909b0>
debug: True
django_settings: None
tmp_upload_dir: None
keyfile: None
backlog: 2048
[2014-11-26 15:24:02 +0000] [7675] [INFO] Starting gunicorn 19.1.1
[2014-11-26 15:24:02 +0000] [7675] [DEBUG] Arbiter booted
[2014-11-26 15:24:02 +0000] [7675] [INFO] Listening at: http://127.0.0.1:8002 (7675)
[2014-11-26 15:24:02 +0000] [7675] [INFO] Using worker: gevent
[2014-11-26 15:24:02 +0000] [7680] [INFO] Booting worker with pid: 7680
[2014-11-26 15:24:02 +0000] [7681] [INFO] Booting worker with pid: 7681
[2014-11-26 15:24:02 +0000] [7682] [INFO] Booting worker with pid: 7682
[2014-11-26 15:24:02 +0000] [7683] [INFO] Booting worker with pid: 7683
[2014-11-26 15:24:02 +0000] [7684] [INFO] Booting worker with pid: 7684
[2014-11-26 15:24:02 +0000] [7685] [INFO] Booting worker with pid: 7685
[2014-11-26 15:24:02 +0000] [7686] [INFO] Booting worker with pid: 7686
[2014-11-26 15:24:02 +0000] [7687] [INFO] Booting worker with pid: 7687
[2014-11-26 15:24:03 +0000] [7688] [INFO] Booting worker with pid: 7688
[2014-11-26 15:24:03 +0000] [7689] [INFO] Booting worker with pid: 7689
[2014-11-26 15:24:03 +0000] [7690] [INFO] Booting worker with pid: 7690
[2014-11-26 15:24:03 +0000] [7691] [INFO] Booting worker with pid: 7691
[2014-11-26 15:24:03 +0000] [7692] [INFO] Booting worker with pid: 7692
[2014-11-26 15:24:03 +0000] [7699] [INFO] Booting worker with pid: 7699
[2014-11-26 15:24:03 +0000] [7704] [INFO] Booting worker with pid: 7704
[2014-11-26 15:24:03 +0000] [7705] [INFO] Booting worker with pid: 7705
[2014-11-26 15:24:03 +0000] [7706] [INFO] Booting worker with pid: 7706
[2014-11-26 15:24:03 +0000] [7707] [INFO] Booting worker with pid: 7707
[2014-11-26 15:24:03 +0000] [7708] [INFO] Booting worker with pid: 7708
[2014-11-26 15:24:03 +0000] [7709] [INFO] Booting worker with pid: 7709
[2014-11-26 15:24:03 +0000] [7710] [INFO] Booting worker with pid: 7710
[2014-11-26 15:24:03 +0000] [7711] [INFO] Booting worker with pid: 7711
[2014-11-26 15:24:03 +0000] [7712] [INFO] Booting worker with pid: 7712
[2014-11-26 15:24:03 +0000] [7713] [INFO] Booting worker with pid: 7713
[2014-11-26 15:24:03 +0000] [7714] [INFO] Booting worker with pid: 7714
[2014-11-26 15:24:03 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 15:25:03 +0000] [7713] [DEBUG] GET /
[2014-11-26 08:25:03 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 08:25:04 +0000] [7713] [DEBUG] GET /branding/
[2014-11-26 15:25:04 +0000] [7712] [DEBUG] GET /
[2014-11-26 08:25:04 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 15:25:04 +0000] [7706] [DEBUG] GET /
[2014-11-26 08:25:04 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 08:25:05 +0000] [7706] [DEBUG] Closing connection.
[2014-11-26 08:25:11 +0000] [7713] [DEBUG] POST /oauth2/token/
[2014-11-26 08:25:11 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 15:25:17 +0000] [7704] [DEBUG] POST /oauth2/token/
[2014-11-26 08:25:17 +0000] [7704] [DEBUG] Closing connection.
[2014-11-26 08:26:08 +0000] [7706] [DEBUG] GET /
[2014-11-26 08:26:08 +0000] [7706] [DEBUG] Closing connection.
[2014-11-26 08:26:08 +0000] [7706] [DEBUG] GET /
[2014-11-26 08:26:09 +0000] [7706] [DEBUG] Closing connection.
[2014-11-26 15:26:09 +0000] [7710] [DEBUG] GET /
[2014-11-26 15:26:10 +0000] [7714] [DEBUG] GET /
[2014-11-26 08:26:10 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 08:26:10 +0000] [7714] [DEBUG] Closing connection.
[2014-11-26 08:26:10 +0000] [7712] [DEBUG] GET /
[2014-11-26 08:26:10 +0000] [7710] [DEBUG] GET /
[2014-11-26 08:26:10 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 08:26:11 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 08:26:11 +0000] [7710] [DEBUG] GET /
[2014-11-26 15:26:11 +0000] [7687] [DEBUG] GET /
[2014-11-26 08:26:11 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 08:26:12 +0000] [7687] [DEBUG] Closing connection.
[2014-11-26 08:26:13 +0000] [7712] [DEBUG] GET /
[2014-11-26 15:26:13 +0000] [7707] [DEBUG] GET /
[2014-11-26 08:26:13 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 08:26:13 +0000] [7707] [DEBUG] Closing connection.
[2014-11-26 15:26:18 +0000] [7711] [DEBUG] GET /
[2014-11-26 08:26:18 +0000] [7713] [DEBUG] GET /
[2014-11-26 08:26:18 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 08:26:18 +0000] [7711] [DEBUG] Closing connection.
[2014-11-26 15:29:37 +0000] [7689] [DEBUG] POST /oauth2/token/
[2014-11-26 08:29:37 +0000] [7689] [DEBUG] Closing connection.
[2014-11-26 15:33:10 +0000] [7685] [DEBUG] POST /oauth2/token/
[2014-11-26 08:33:10 +0000] [7685] [DEBUG] Closing connection.
[2014-11-26 15:34:02 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 15:44:02 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 15:54:01 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 16:04:00 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 09:05:23 +0000] [7713] [DEBUG] GET /
[2014-11-26 09:05:23 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 09:05:23 +0000] [7689] [DEBUG] GET /branding/
[2014-11-26 09:05:23 +0000] [7713] [DEBUG] GET /
[2014-11-26 09:05:24 +0000] [7689] [DEBUG] Closing connection.
[2014-11-26 09:05:24 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 09:05:24 +0000] [7713] [DEBUG] GET /
[2014-11-26 09:05:24 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 16:05:29 +0000] [7684] [DEBUG] POST /oauth2/token/
[2014-11-26 09:05:29 +0000] [7684] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 47, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 100, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/OpenvStorage/webapps/api/urls.py", line 52, in <module>
url(r'', include(build_router_urls()))
File "/opt/OpenvStorage/webapps/api/urls.py", line 36, in build_router_urls
module = imp.load_source(name, os.path.join(path, filename))
File "/opt/OpenvStorage/webapps/api/backend/views/storagerouters.py", line 29, in <module>
from ovs.lib.storagerouter import StorageRouterController
File "/opt/OpenvStorage/ovs/lib/storagerouter.py", line 24, in <module>
from ovs.celery_run import celery
File "/opt/OpenvStorage/ovs/celery_run.py", line 24, in <module>
from kombu import Queue
File "/usr/lib/python2.7/site-packages/kombu/__init__.py", line 67, in __getattr__
module = __import__(object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 448, in <module>
for ep, args in entrypoints('kombu.serializers'): # pragma: no cover
File "/usr/lib/python2.7/site-packages/kombu/utils/__init__.py", line 410, in <genexpr>
return ((ep, ep.load()) for ep in iter_entry_points(namespace))
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 504, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2478, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2251, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2845, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2072, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2409, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1409, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1401, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1467, in _get
ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
[2014-11-26 09:05:31 +0000] [7684] [DEBUG] POST /oauth2/token/
[2014-11-26 09:05:31 +0000] [7684] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 47, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 100, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/OpenvStorage/webapps/api/urls.py", line 52, in <module>
url(r'', include(build_router_urls()))
File "/opt/OpenvStorage/webapps/api/urls.py", line 36, in build_router_urls
module = imp.load_source(name, os.path.join(path, filename))
File "/opt/OpenvStorage/webapps/api/backend/views/storagerouters.py", line 29, in <module>
from ovs.lib.storagerouter import StorageRouterController
File "/opt/OpenvStorage/ovs/lib/storagerouter.py", line 24, in <module>
from ovs.celery_run import celery
File "/opt/OpenvStorage/ovs/celery_run.py", line 24, in <module>
from kombu import Queue
File "/usr/lib/python2.7/site-packages/kombu/__init__.py", line 67, in __getattr__
module = __import__(object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 448, in <module>
for ep, args in entrypoints('kombu.serializers'): # pragma: no cover
File "/usr/lib/python2.7/site-packages/kombu/utils/__init__.py", line 410, in <genexpr>
return ((ep, ep.load()) for ep in iter_entry_points(namespace))
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 504, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2478, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2251, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2845, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2072, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2409, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1409, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1401, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1467, in _get
ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
[2014-11-26 09:05:36 +0000] [7684] [DEBUG] GET /
[2014-11-26 09:05:36 +0000] [7684] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 47, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 100, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/OpenvStorage/webapps/api/urls.py", line 52, in <module>
url(r'', include(build_router_urls()))
File "/opt/OpenvStorage/webapps/api/urls.py", line 36, in build_router_urls
module = imp.load_source(name, os.path.join(path, filename))
File "/opt/OpenvStorage/webapps/api/backend/views/storagerouters.py", line 29, in <module>
from ovs.lib.storagerouter import StorageRouterController
File "/opt/OpenvStorage/ovs/lib/storagerouter.py", line 24, in <module>
from ovs.celery_run import celery
File "/opt/OpenvStorage/ovs/celery_run.py", line 24, in <module>
from kombu import Queue
File "/usr/lib/python2.7/site-packages/kombu/__init__.py", line 67, in __getattr__
module = __import__(object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 448, in <module>
for ep, args in entrypoints('kombu.serializers'): # pragma: no cover
File "/usr/lib/python2.7/site-packages/kombu/utils/__init__.py", line 410, in <genexpr>
return ((ep, ep.load()) for ep in iter_entry_points(namespace))
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 504, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2478, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2251, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2845, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2072, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2409, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1409, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1401, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1467, in _get
ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
[2014-11-26 09:05:37 +0000] [7712] [DEBUG] GET /
[2014-11-26 09:05:37 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 09:05:38 +0000] [7711] [DEBUG] GET /
[2014-11-26 09:05:38 +0000] [7712] [DEBUG] GET /
[2014-11-26 09:05:38 +0000] [7711] [DEBUG] Closing connection.
[2014-11-26 09:05:38 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 09:05:39 +0000] [7714] [DEBUG] GET /
[2014-11-26 09:05:39 +0000] [7710] [DEBUG] GET /
[2014-11-26 09:05:39 +0000] [7714] [DEBUG] Closing connection.
[2014-11-26 09:05:39 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 09:05:39 +0000] [7710] [DEBUG] GET /
[2014-11-26 09:05:39 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 09:05:40 +0000] [7710] [DEBUG] GET /
[2014-11-26 09:05:40 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 09:05:40 +0000] [7689] [DEBUG] GET /
[2014-11-26 09:05:40 +0000] [7713] [DEBUG] GET /
[2014-11-26 09:05:40 +0000] [7689] [DEBUG] Closing connection.
[2014-11-26 09:05:40 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 09:13:15 +0000] [7687] [DEBUG] POST /oauth2/token/
[2014-11-26 09:13:15 +0000] [7687] [DEBUG] Closing connection.
[2014-11-26 09:13:17 +0000] [7714] [DEBUG] POST /oauth2/token/
[2014-11-26 09:13:17 +0000] [7714] [DEBUG] Closing connection.
[2014-11-26 09:13:19 +0000] [7712] [DEBUG] POST /oauth2/token/
[2014-11-26 09:13:19 +0000] [7712] [DEBUG] Closing connection.
[2014-11-26 09:13:20 +0000] [7689] [DEBUG] GET /
[2014-11-26 09:13:21 +0000] [7711] [DEBUG] GET /
[2014-11-26 09:13:21 +0000] [7689] [DEBUG] Closing connection.
[2014-11-26 09:13:21 +0000] [7711] [DEBUG] Closing connection.
[2014-11-26 09:13:22 +0000] [7689] [DEBUG] GET /
[2014-11-26 09:13:22 +0000] [7710] [DEBUG] GET /
[2014-11-26 09:13:22 +0000] [7689] [DEBUG] Closing connection.
[2014-11-26 09:13:22 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 09:13:22 +0000] [7710] [DEBUG] GET /
[2014-11-26 09:13:22 +0000] [7713] [DEBUG] GET /
[2014-11-26 09:13:23 +0000] [7710] [DEBUG] Closing connection.
[2014-11-26 09:13:23 +0000] [7713] [DEBUG] Closing connection.
[2014-11-26 16:13:24 +0000] [7688] [DEBUG] GET /
[2014-11-26 09:13:24 +0000] [7714] [DEBUG] GET /
[2014-11-26 09:13:24 +0000] [7688] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 47, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 100, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/OpenvStorage/webapps/api/urls.py", line 52, in <module>
url(r'', include(build_router_urls()))
File "/opt/OpenvStorage/webapps/api/urls.py", line 36, in build_router_urls
module = imp.load_source(name, os.path.join(path, filename))
File "/opt/OpenvStorage/webapps/api/backend/views/storagerouters.py", line 29, in <module>
from ovs.lib.storagerouter import StorageRouterController
File "/opt/OpenvStorage/ovs/lib/storagerouter.py", line 24, in <module>
from ovs.celery_run import celery
File "/opt/OpenvStorage/ovs/celery_run.py", line 24, in <module>
from kombu import Queue
File "/usr/lib/python2.7/site-packages/kombu/__init__.py", line 67, in __getattr__
module = __import__(object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 448, in <module>
for ep, args in entrypoints('kombu.serializers'): # pragma: no cover
File "/usr/lib/python2.7/site-packages/kombu/utils/__init__.py", line 410, in <genexpr>
return ((ep, ep.load()) for ep in iter_entry_points(namespace))
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 504, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2478, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2251, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2845, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2072, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2409, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1409, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1401, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1467, in _get
ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
[2014-11-26 09:13:24 +0000] [7714] [DEBUG] Closing connection.
[2014-11-26 16:13:59 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 16:23:58 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 16:33:57 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 16:43:56 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 16:47:17 +0000] [7691] [DEBUG] GET /
[2014-11-26 09:47:17 +0000] [7691] [ERROR] Error handling request
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 47, in handle
self.handle_request(listener_name, req, client, addr)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 160, in handle_request
super(GeventWorker, self).handle_request(*args)
File "/usr/lib/python2.7/site-packages/gunicorn/workers/async.py", line 100, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 255, in __call__
response = self.get_response(request)
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 178, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 220, in handle_uncaught_exception
if resolver.urlconf_module is None:
File "/usr/lib/python2.7/site-packages/django/core/urlresolvers.py", line 342, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/opt/OpenvStorage/webapps/api/urls.py", line 52, in <module>
url(r'', include(build_router_urls()))
File "/opt/OpenvStorage/webapps/api/urls.py", line 36, in build_router_urls
module = imp.load_source(name, os.path.join(path, filename))
File "/opt/OpenvStorage/webapps/api/backend/views/storagerouters.py", line 29, in <module>
from ovs.lib.storagerouter import StorageRouterController
File "/opt/OpenvStorage/ovs/lib/storagerouter.py", line 24, in <module>
from ovs.celery_run import celery
File "/opt/OpenvStorage/ovs/celery_run.py", line 24, in <module>
from kombu import Queue
File "/usr/lib/python2.7/site-packages/kombu/__init__.py", line 67, in __getattr__
module = __import__(object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 448, in <module>
for ep, args in entrypoints('kombu.serializers'): # pragma: no cover
File "/usr/lib/python2.7/site-packages/kombu/utils/__init__.py", line 410, in <genexpr>
return ((ep, ep.load()) for ep in iter_entry_points(namespace))
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 504, in iter_entry_points
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2478, in get_entry_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2251, in parse_map
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2845, in split_sections
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2072, in yield_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 2409, in _get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1409, in get_metadata_lines
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1401, in get_metadata
File "build/bdist.linux-x86_64/egg/pkg_resources.py", line 1467, in _get
ZipImportError: bad local file header in /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
[2014-11-26 16:53:55 +0000] [7675] [DEBUG] 25 workers
[2014-11-26 17:03:54 +0000] [7675] [DEBUG] 25 workers
[root@ovs]# cat django_gunicorn_ovs.log
127.0.0.1 - - [26/Nov/2014:08:25:03 +0100] "GET /?timestamp=1416986702956 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:25:04 +0100] "GET /branding/?timestamp=1416986704036 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:25:04 +0100] "GET /?timestamp=1416986704114 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:25:05 +0100] "GET /?timestamp=1416986704498 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:25:11 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:25:17 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:08 +0100] "GET /?timestamp=1416986768377 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:09 +0100] "GET /?timestamp=1416986768715 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:10 +0100] "GET /?timestamp=1416986769868 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:10 +0100] "GET /?timestamp=1416986770009 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:10 +0100] "GET /?timestamp=1416986770712 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:11 +0100] "GET /?timestamp=1416986770911 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:11 +0100] "GET /?timestamp=1416986771401 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:12 +0100] "GET /?timestamp=1416986771489 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:13 +0100] "GET /?timestamp=1416986773236 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:13 +0100] "GET /?timestamp=1416986773252 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:18 +0100] "GET /?timestamp=1416986778376 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:26:18 +0100] "GET /?timestamp=1416986778360 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:29:37 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:08:33:10 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:23 +0100] "GET /?timestamp=1416989122936 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:24 +0100] "GET /branding/?timestamp=1416989123717 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:24 +0100] "GET /?timestamp=1416989123794 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:24 +0100] "GET /?timestamp=1416989124160 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:29 +0100] "POST /oauth2/token/ HTTP/1.0" 500 - "-" "-"
127.0.0.1 - - [26/Nov/2014:09:05:31 +0100] "POST /oauth2/token/ HTTP/1.0" 500 - "-" "-"
127.0.0.1 - - [26/Nov/2014:09:05:36 +0100] "GET /?timestamp=1416989136814 HTTP/1.0" 500 - "-" "-"
127.0.0.1 - - [26/Nov/2014:09:05:37 +0100] "GET /?timestamp=1416989137086 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:38 +0100] "GET /?timestamp=1416989138491 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:38 +0100] "GET /?timestamp=1416989138573 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:39 +0100] "GET /?timestamp=1416989139245 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:39 +0100] "GET /?timestamp=1416989139320 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:39 +0100] "GET /?timestamp=1416989139635 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:40 +0100] "GET /?timestamp=1416989139919 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:40 +0100] "GET /?timestamp=1416989140465 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:05:40 +0100] "GET /?timestamp=1416989140553 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:15 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:17 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:19 +0100] "POST /oauth2/token/ HTTP/1.0" 400 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:21 +0100] "GET /?timestamp=1416989600871 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:21 +0100] "GET /?timestamp=1416989600890 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:22 +0100] "GET /?timestamp=1416989602058 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:22 +0100] "GET /?timestamp=1416989602074 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:23 +0100] "GET /?timestamp=1416989602795 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:23 +0100] "GET /?timestamp=1416989602813 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:13:24 +0100] "GET /?timestamp=1416989603979 HTTP/1.0" 500 - "-" "-"
127.0.0.1 - - [26/Nov/2014:09:13:24 +0100] "GET /?timestamp=1416989603995 HTTP/1.0" 200 - "https://10.23.73.152/" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36"
127.0.0.1 - - [26/Nov/2014:09:47:17 +0100] "GET / HTTP/1.0" 500 - "-" "-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment