Hi everyone!
I followed along this nice tutorial to setup my own booktype version for testing purpose. I did everything exactly as explained in the tutorial (just didn't installed the outgoing mail server for email notifications yet), but still get an error when I press the "Publish" button to export a book (please see the log excerpt).
Could someone support?
Cheers,
Joris
*** START FILE: /logs/booktype-celery.error.log ***
'side_margin': u'20', u'bleed_size': u'', u'size': u'A4'}}}}}
[2016-06-30 15:44:32,744: INFO/Worker-3] Starting new HTTP connection (1): booktype.electricelephantpublishing.de
[2016-06-30 15:44:33,438: ERROR/Worker-3] Could not load JSON data.
Traceback (most recent call last):
File "/usr/local/src/booktype/lib/booktype/utils/download.py", line 45, in fetch_url
dta = req.json()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 793, in json
return json.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[2016-06-30 15:44:33,443: ERROR/Worker-3] Could not send the publishing request to [http://booktype.electricelephantpublishing.de/_convert/]
[2016-06-30 15:44:33,460: INFO/MainProcess] Task booktype.apps.edit.tasks.publish_book[29987051-7482-4ee4-bfa5-336fccded577] succeeded in 0.861105453001s: None
[2016-06-30 15:45:50,948: INFO/MainProcess] Received task: booktype.apps.edit.tasks.publish_book[506047cd-6ab7-4b49-8260-51c217d58b19]
[2016-06-30 15:45:50,956: DEBUG/Worker-1] {'username': u'admin', 'bookid': u'1', 'clientid': u'21', 'sputnikid': u'ps1a24y29zubxnm1euwoehtovnsnnvs8:21', 'version': u'1.0', 'formats': [u'epub']}
[2016-06-30 15:45:51,021: DEBUG/Worker-1] {'input': 'input.epub', 'assets': {'input.epub': u'http://booktype.electricelephantpublishing.de/brainfood/_export/', 'epub_cover_image': 'http://booktype.electricelephantpublishing.de/brainfood/_cover/218bd41b7ed0bf62238f00ed30bd202ebb4df447/cover.jpg'}, 'outputs': {u'epub': {'profile': u'epub', 'output': 'brainfood_2016-06-30_15-45-51.epub', 'config': {'cover_image': 'epub_cover_image', 'theme': {'id': u'custom', 'custom': u'{"fontP": "serif", "lineHeightP": 100, "fontH1": "serif", "fontSizeH4": 100, "fontSizeH2": 140, "fontSizeH3": 120, "fontSizeH1": 160, "indentP": 0, "alignH1": "left", "colorH1": "000000"}'}, 'project_id': u'brainfood', 'settings': {u'cover_image': u'218bd41b7ed0bf62238f00ed30bd202ebb4df447/cover.jpg', u'styling': u''}}}}}
[2016-06-30 15:45:51,038: INFO/Worker-1] Starting new HTTP connection (1): booktype.electricelephantpublishing.de
[2016-06-30 15:45:51,663: ERROR/Worker-1] Could not load JSON data.
Traceback (most recent call last):
File "/usr/local/src/booktype/lib/booktype/utils/download.py", line 45, in fetch_url
dta = req.json()
File "/usr/lib/python2.7/dist-packages/requests/models.py", line 793, in json
return json.loads(self.text, **kwargs)
File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
[2016-06-30 15:45:51,665: ERROR/Worker-1] Could not send the publishing request to [http://booktype.electricelephantpublishing.de/_convert/]
[2016-06-30 15:45:51,676: INFO/MainProcess] Task booktype.apps.edit.tasks.publish_book[506047cd-6ab7-4b49-8260-51c217d58b19] succeeded in 0.724731087999s: None
*** END FILE: /logs/booktype-celery.error.log ***
EXPORT_ALLOWED_HOSTS = ['127.0.0.1', '*']
/var/www/booktype/instance1/instance1_site/settings/base.pyI would then suggest running the commands:
sudo supervisorctl restart allThis will restart the Celery workers and reload the Apache configuration. Then try publishing the EPUB again.
sudo service apache2 reload
It looks like you're new here. If you want to get involved, click one of these buttons!