Docverter / docverter

Docverter Server
Other
830 stars 101 forks source link

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

Open chrisvfritz opened 10 years ago

chrisvfritz commented 10 years ago

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 commented 10 years ago

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 notifications@github.comwrote:

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/Docverter/docverter/issues/21 .

chrisvfritz commented 10 years ago
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 git@heroku.com:mydocverterserver.git
   c3064b9..4d467df  master -> master

This is on the cedar stack by the way.

peterkeen commented 10 years ago

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 commented 10 years ago

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.