{"action":"created","issue":{"url":"https://api.github.com/repos/janeczku/calibre-web/issues/187","repository_url":"https://api.github.com/repos/janeczku/calibre-web","labels_url":"https://api.github.com/repos/janeczku/calibre-web/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/janeczku/calibre-web/issues/187/comments","events_url":"https://api.github.com/repos/janeczku/calibre-web/issues/187/events","html_url":"https://github.com/janeczku/calibre-web/issues/187","id":224043605,"number":187,"title":"kindlegen fails with Internal Server Error","user":{"login":"gdx775","id":26342462,"avatar_url":"https://avatars3.githubusercontent.com/u/26342462?v=3","gravatar_id":"","url":"https://api.github.com/users/gdx775","html_url":"https://github.com/gdx775","followers_url":"https://api.github.com/users/gdx775/followers","following_url":"https://api.github.com/users/gdx775/following{/other_user}","gists_url":"https://api.github.com/users/gdx775/gists{/gist_id}","starred_url":"https://api.github.com/users/gdx775/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdx775/subscriptions","organizations_url":"https://api.github.com/users/gdx775/orgs","repos_url":"https://api.github.com/users/gdx775/repos","events_url":"https://api.github.com/users/gdx775/events{/privacy}","received_events_url":"https://api.github.com/users/gdx775/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-04-25T07:17:16Z","updated_at":"2017-04-25T19:55:53Z","closed_at":"2017-04-25T19:08:03Z","body":"When using the Send to Kindle functionality (emails confirmed as working),  the application returns an Internal Server Error. Both the application files and kindle2gen are both owned by the running user and have the executable bit set.\r\n\r\nkindle2gen is recognised as being present within the about page. \r\n\r\nFurther information can be provided if needed."},"comment":{"url":"https://api.github.com/repos/janeczku/calibre-web/issues/comments/297146395","html_url":"https://github.com/janeczku/calibre-web/issues/187#issuecomment-297146395","issue_url":"https://api.github.com/repos/janeczku/calibre-web/issues/187","id":297146395,"user":{"login":"gdx775","id":26342462,"avatar_url":"https://avatars3.githubusercontent.com/u/26342462?v=3","gravatar_id":"","url":"https://api.github.com/users/gdx775","html_url":"https://github.com/gdx775","followers_url":"https://api.github.com/users/gdx775/followers","following_url":"https://api.github.com/users/gdx775/following{/other_user}","gists_url":"https://api.github.com/users/gdx775/gists{/gist_id}","starred_url":"https://api.github.com/users/gdx775/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdx775/subscriptions","organizations_url":"https://api.github.com/users/gdx775/orgs","repos_url":"https://api.github.com/users/gdx775/repos","events_url":"https://api.github.com/users/gdx775/events{/privacy}","received_events_url":"https://api.github.com/users/gdx775/received_events","type":"User","site_admin":false},"created_at":"2017-04-25T19:55:53Z","updated_at":"2017-04-25T19:55:53Z","body":"Seems to still be present after a git pull? Seems to have been a couple of changes made to helper.py? Latest log shows:\n\n/opt/calibre-web# cat calibre-web.log\n[2017-04-25 20:50:04,606] {/opt/calibre-web/cps/web.py:211} INFO - Starting Calibre Web...\n[2017-04-25 20:50:04,658] {/opt/calibre-web/cps.py:28} INFO - Attempting to start gevent\n[2017-04-25 20:51:07,146] {/usr/local/lib/python2.7/dist-packages/flask/app.py:1560} ERROR - Exception on /send/67 [GET]\nTraceback (most recent call last):\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1982, in wsgi_app\n    response = self.full_dispatch_request()\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1614, in full_dispatch_request\n    rv = self.handle_user_exception(e)\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1517, in handle_user_exception\n    reraise(exc_type, exc_value, tb)\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1612, in full_dispatch_request\n    rv = self.dispatch_request()\n  File \"/usr/local/lib/python2.7/dist-packages/flask/app.py\", line 1598, in dispatch_request\n    return self.view_functions[rule.endpoint](**req.view_args)  File \"/usr/local/lib/python2.7/dist-packages/flask_login/utils.py\", line 228, in decorated_view\n    return func(*args, **kwargs)\n  File \"/opt/calibre-web/cps/web.py\", line 446, in inner\n    return f(*args, **kwargs)\n  File \"/opt/calibre-web/cps/web.py\", line 1817, in send_to_kindle\n    result = helper.send_mail(book_id, current_user.kindle_mail, config.config_calibre_dir)\n  File \"/opt/calibre-web/cps/helper.py\", line 207, in send_mail\n    filepath = make_mobi(book.id, calibrepath)\n  File \"/opt/calibre-web/cps/helper.py\", line 84, in make_mobi    stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n  File \"/usr/lib/python2.7/subprocess.py\", line 711, in __init__\n    errread, errwrite)\n  File \"/usr/lib/python2.7/subprocess.py\", line 1343, in _execute_child\n    raise child_exception\nOSError: [Errno 2] No such file or directory"}}
{"actor":{"display_login":"gdx775"}}