Open henrylily120 opened 12 years ago
It needs GCC and to compile stuff, I think you can't do that on Heroku.
Now that I think of it, it could be an issue with writing to /tmp
.
Do you know where you can write temporary files on Heroku?
I tried writing a file to /tmp and it seemed to work fine.
Chutikas-MacBook-Pro:think_dirty_rails numnym$ heroku run "cp config.ru /tmp/config.ru | cat /tmp/config.ru"
Running cp config.ru /tmp/config.ru | cat /tmp/config.ru
attached to terminal... up, run.1
require ::File.expand_path('../config/environment', FILE) run ThinkDirtyRails::Application
GCC is also available on Heroku as well.
Chutikas-MacBook-Pro:think_dirty_rails numnym$ heroku run gcc
Running gcc
attached to terminal... up, run.1
gcc: no input files
I also saw this error message.... You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5
It looks like the process has been killed by a supervisor, it could have used too much processor or something like that, you should contact Heroku and ask for clarification.
Have you got any experiences deploying it to another platform like AWS?
No, sorry.
Can you please let me know which platforms you had luck with?
@henrylily120 Heroku will not let a request run longer than a 30 seconds. You can get around this by pushing your OCR task off a queue like Resque or SideKiq. I ran into a similar issue with running some AI code on Heroku.
Feel free to ask any questions about how to use workers on Heroku.
@henrylily120 How were you able to get it to run on Heroku?
@leoromanovsky Heroku wont let you use tesseract on a web dyno. You will need to use tesseract in a worker dyno.
@Eunoia Hey yep, I got that part and am ready to use Sidekiq. I'm actually having trouble and running into a compilation error during the deploy. Any guidance there?
I sent you an email, lets remember to share the results here.
@Eunoia and I chatted offline. We tried going back to ffi-inline version 1.9.0 without any luck. The take-away was to try and get my sidekiq workers running on EC2 instead of Heroku.
It works just fine locally, but when I deployed it on heroku, it gave me this error. Any assistance is appreciated.