Here's the output of booktype-celery.error.log. There seems to be something wrong with the NAME Value in the database. Any suggestions?$ sudo supervisorctl
celeryd RUNNING pid 9651, uptime 0:04:25
supervisor>quit
$ cat /var/www/booktype/instance1/logs/booktype-celery.error.log
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 253, in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 201, in on_error
R = I.handle_error_state(task, eager=eager)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 85, in handle_error_state
}[self.state](task, store_errors=store_errors)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 118, in handle_failure
req.id, exc, einfo.traceback, request=req,
File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 133, in mark_as_failure
traceback=traceback, request=request)
File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 271, in store_result
request=request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/backends/database.py", line 29, in _store_result
traceback=traceback, children=self.current_task_children(request),
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 42, in _inner
return fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 181, in store_result
'meta': {'children': children}})
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 87, in update_or_create
return get_queryset(self).update_or_create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 70, in update_or_create
obj, created = self.get_or_create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 465, in get_or_create
return self.get(**lookup), False
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 381, in get
num = len(clone)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 240, in __len__
self._fetch_all()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 1074, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 52, in __iter__
results = compiler.execute_sql()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 846, in execute_sql
cursor = self.connection.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 170, in connect
conn_params = self.get_connection_params()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql/base.py", line 157, in get_connection_params
"settings.DATABASES is improperly configured. "
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the NAME value.
[2017-03-22 16:56:33,669: INFO/MainProcess] Received task: booktype.apps.edit.tasks.publish_book[b2b4490e-af1a-48de-83ab-1150bd39c2cf]
[2017-03-22 16:56:33,670: DEBUG/Worker-7] {'username': u'klocke', 'bookid': u'1', 'clientid': u'268', 'sputnikid': u'v2gr79cachi68ovran0m2u4qz9gos5jx:268', 'version': u'1.0', 'formats': [u'epub']}
[2017-03-22 16:56:33,675: CRITICAL/MainProcess] Task booktype.apps.edit.tasks.publish_book[b2b4490e-af1a-48de-83ab-1150bd39c2cf] INTERNAL ERROR: ImproperlyConfigured('settings.DATABASES is improperly configured. Please supply the NAME value.',)
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 253, in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 201, in on_error
R = I.handle_error_state(task, eager=eager)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 85, in handle_error_state
}[self.state](task, store_errors=store_errors)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 118, in handle_failure
req.id, exc, einfo.traceback, request=req,
File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 133, in mark_as_failure
traceback=traceback, request=request)
File "/usr/local/lib/python2.7/dist-packages/celery/backends/base.py", line 271, in store_result
request=request, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/backends/database.py", line 29, in _store_result
traceback=traceback, children=self.current_task_children(request),
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 42, in _inner
return fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 181, in store_result
'meta': {'children': children}})
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 87, in update_or_create
return get_queryset(self).update_or_create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/djcelery/managers.py", line 70, in update_or_create
obj, created = self.get_or_create(**kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 465, in get_or_create
return self.get(**lookup), False
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 381, in get
num = len(clone)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 240, in __len__
self._fetch_all()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 1074, in _fetch_all
self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 52, in __iter__
results = compiler.execute_sql()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 846, in execute_sql
cursor = self.connection.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/base/base.py", line 170, in connect
conn_params = self.get_connection_params()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql/base.py", line 157, in get_connection_params
"settings.DATABASES is improperly configured. "
ImproperlyConfigured: settings.DATABASES is improperly configured. Please supply the NAME value.
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'booktype-db',
$ cat /var/www/booktype/instance1/instance1_site/settings/prod.py | grep NAME
'NAME': 'booktype-db',
$ cat /var/www/booktype/instance1/instance1_site/settings/prod.py | grep ENGINE
'ENGINE': 'django.db.backends.postgresql_psycopg2',
It looks like you're new here. If you want to get involved, click one of these buttons!