Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOError: Cannot run program "ebook-convert" #21

Open
chrisvfritz opened this issue Sep 18, 2013 · 4 comments
Open

IOError: Cannot run program "ebook-convert" #21

chrisvfritz opened this issue Sep 18, 2013 · 4 comments

Comments

@chrisvfritz
Copy link

I only seem to be getting this when converting to MOBI.

Here's my error:

IOError: Cannot run program "ebook-convert" (in directory "/tmp/d20130918-2-1m7gk1f"): error=2, No such file or directory

Here's my Heroku config:

BUILDPACK_URL: https://github.com/ddollar/heroku-buildpack-multi.git
PATH:          bin:/app/bin:/app/jruby/bin:/usr/bin:/bin

Any thoughts?

@peterkeen
Copy link
Collaborator

Could you paste a git push log? It looks like it's not installing calibre.

On Wed, Sep 18, 2013 at 1:08 PM, chrisvfritz [email protected]:

I only seem to be getting this when converting to MOBI.

Here's my error:

IOError: Cannot run program "ebook-convert" (in directory "/tmp/d20130918-2-1m7gk1f"): error=2, No such file or directory

Here's my Heroku config:

BUILDPACK_URL: https://github.com/ddollar/heroku-buildpack-multi.git
PATH: bin:/app/bin:/app/jruby/bin:/usr/bin:/bin

Any thoughts?


Reply to this email directly or view it on GitHubhttps://github.com//issues/21
.

@chrisvfritz
Copy link
Author

Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 320 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)

-----> Fetching custom git buildpack... done
-----> Multipack app detected
=====> Downloading Buildpack: https://github.com/peterkeen/heroku-buildpack-vendorbinaries.git
=====> Detected Framework: VendorBinaries
-----> Found a .vendor_urls file
       Vendoring https://s3.amazonaws.com/docverter-binaries/calibre.tar.gz
       Vendoring https://s3.amazonaws.com/docverter-binaries/pandoc.tar.gz
       Vendoring https://s3.amazonaws.com/docverter-binaries/pandoc-templates.tar.gz
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
=====> Detected Framework: Ruby/Rack
-----> Using Ruby version: ruby-1.9.3-jruby-1.7.4
-----> Installing JVM: openjdk7-latest
-----> Installing dependencies using Bundler version 1.3.2
       Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
       Picked up JAVA_TOOL_OPTIONS: -Djava.rmi.server.useCodebaseOnly=true
       Using rake (10.0.2)
       Using ffi (1.2.0)
       Using childprocess (0.3.6)
       Using choice (0.1.6)
       Using flying_saucer (0.8.0)
       Using mime-types (1.19)
       Using rack (1.4.1)
       Using mizuno (0.6.4)
       Using rack-protection (1.2.0)
       Using tilt (1.3.3)
       Using sinatra (1.3.3)
       Using docverter-server (1.0.1) from source at .
       Using bundler (1.3.2)
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
       Using release configuration from last framework Ruby/Rack:
       --- 
       addons: []

       default_process_types: 
         rake: bundle exec rake
         console: bundle exec irb
         web: bundle exec rackup config.ru -p $PORT
-----> Discovering process types
       Procfile declares types     -> web
       Default types for Multipack -> console, rake

-----> Compiled slug size: 148.5MB
-----> Launching... done, v6
       http://mydocverterserver.herokuapp.com deployed to Heroku

To [email protected]:mydocverterserver.git
   c3064b9..4d467df  master -> master

This is on the cedar stack by the way.

@peterkeen
Copy link
Collaborator

Ok, figured it out. For some reason the calibre install is extracting to a place not in the path. This should fix it:

$ heroku config:add PATH=bin:/app/bin:/app/jruby/bin:/usr/bin:/bin:/app/calibre/bin

I'll update the README.

@chrisvfritz
Copy link
Author

Thank you! That fixed the IOError, but the MOBI (and again, only the MOBI) file generations are still failing, now due to another error. Here's the gist of the backtrace.

Feel free to close this issue if you'd prefer I open up a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants