This repository has been archived by the owner. It is now read-only.

Ruby cannot find dependencies #9

Closed
fawzyj opened this Issue Jul 31, 2012 · 11 comments

Comments

Projects
None yet
5 participants
@fawzyj

fawzyj commented Jul 31, 2012

Hi

I tried to use this build pack to combine ruby and phantomjs together but ruby failed to load its dependencies, even it cannot find the bundle command

the .buildpack file looks like this:
https://github.com/stomita/heroku-buildpack-phantomjs
https://github.com/heroku/heroku-buildpack-ruby

then i removed the phantomjs to isolate the problem and to make sure it is not the cause
the .buildpack now only include the ruby buildpack, like this:

https://github.com/heroku/heroku-buildpack-ruby

I got this output from heroku logs command:

2012-07-31T10:19:09+00:00 heroku[api]: Release v8 created by fawzyj@yahoo.com
2012-07-31T10:19:09+00:00 heroku[api]: Deploy b8f0409 by fawzyj@yahoo.com
2012-07-31T10:19:09+00:00 heroku[web.1]: State changed from crashed to starting
2012-07-31T10:19:10+00:00 heroku[web.1]: Starting process with command ruby app.rb -p 17721
2012-07-31T10:19:11+00:00 app[web.1]: internal:lib/rubygems/custom_require:29:in require': no such file to load -- sinatra (LoadError) 2012-07-31T10:19:11+00:00 app[web.1]: from <internal:lib/rubygems/custom_require>:29:inrequire'
2012-07-31T10:19:11+00:00 app[web.1]: from app.rb:1:in `

'
2012-07-31T10:19:12+00:00 heroku[web.1]: Process exited with status 1
2012-07-31T10:19:12+00:00 heroku[web.1]: State changed from starting to crashed
2012-07-31T10:19:13+00:00 heroku[slugc]: Slug compilation finished

even if i try to do simple tasks like
heroku run bundle

i got:
bash: bundle command not found

by the way, previously i tried with python buildpack and it also could not found any binaries

so, i think that there is a problem in the PATH env variable , but i am not sure

Thanks

@nelsonjchen

This comment has been minimized.

Show comment Hide comment
@nelsonjchen

nelsonjchen Jul 31, 2012

It's a problem with the path variable, see #5.

It's a problem with the path variable, see #5.

@fawzyj

This comment has been minimized.

Show comment Hide comment
@fawzyj

fawzyj Jul 31, 2012

ok, now how should i fix it?
it recommends using heroku config:add or the new profile.d feature

but, i do not know where to point the path var... what the path should contain? what is wrong with the path set by this buildpack to be fixed

where should i find the correct path variable for each buildpack

thanks

fawzyj commented Jul 31, 2012

ok, now how should i fix it?
it recommends using heroku config:add or the new profile.d feature

but, i do not know where to point the path var... what the path should contain? what is wrong with the path set by this buildpack to be fixed

where should i find the correct path variable for each buildpack

thanks

@fawzyj

This comment has been minimized.

Show comment Hide comment
@fawzyj

fawzyj Jul 31, 2012

I got the correct value of the PATH variable from fresh deployment of ruby app

seems to work partially, not every thing is running as expected, i 'll give it another try tomorrow and will keep you informed

fawzyj commented Jul 31, 2012

I got the correct value of the PATH variable from fresh deployment of ruby app

seems to work partially, not every thing is running as expected, i 'll give it another try tomorrow and will keep you informed

@mathieuripert

This comment has been minimized.

Show comment Hide comment
@mathieuripert

mathieuripert Sep 19, 2012

hi @fawzyj, i am having the same problem trying to combine ruby and phantomjs. How did you manage to use them ?
I got "heroku push rejected, failed to compile Multipack app" when pushing to heroku
Thanks for your help

hi @fawzyj, i am having the same problem trying to combine ruby and phantomjs. How did you manage to use them ?
I got "heroku push rejected, failed to compile Multipack app" when pushing to heroku
Thanks for your help

@fawzyj

This comment has been minimized.

Show comment Hide comment
@fawzyj

fawzyj Sep 19, 2012

I gave up on this, just used phantomjs on its own and communicate via its http interface

fawzyj commented Sep 19, 2012

I gave up on this, just used phantomjs on its own and communicate via its http interface

@misza222

This comment has been minimized.

Show comment Hide comment
@misza222

misza222 Sep 26, 2012

I had a similar problem

As PATH and GEM_PATH is not set correctly I do it myself

heroku config:add GEM_PATH=./vendor/bundle/ruby/1.9.1
heroku config:add PATH=/app/vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin

and things seem to work now

I had a similar problem

As PATH and GEM_PATH is not set correctly I do it myself

heroku config:add GEM_PATH=./vendor/bundle/ruby/1.9.1
heroku config:add PATH=/app/vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin

and things seem to work now

@mathieuripert

This comment has been minimized.

Show comment Hide comment
@mathieuripert

mathieuripert Sep 26, 2012

@misza222 , thanks for you help but still having the same error when pushing on heroku:
heroku push rejected, failed to compile Multipack app

@misza222 , thanks for you help but still having the same error when pushing on heroku:
heroku push rejected, failed to compile Multipack app

@misza222

This comment has been minimized.

Show comment Hide comment
@misza222

misza222 Sep 26, 2012

@mathieuripert Perhaps the problem is in missing Gemfile? I think that ruby buildpack is complaining if it is not there

@mathieuripert Perhaps the problem is in missing Gemfile? I think that ruby buildpack is complaining if it is not there

@mathieuripert

This comment has been minimized.

Show comment Hide comment
@mathieuripert

mathieuripert Sep 26, 2012

Exactly, it works now! thank you so much

Exactly, it works now! thank you so much

@misza222

This comment has been minimized.

Show comment Hide comment
@misza222

misza222 Sep 26, 2012

@mathieuripert glad to hear that

@mathieuripert glad to hear that

@ddollar

This comment has been minimized.

Show comment Hide comment
@ddollar

ddollar Nov 7, 2014

Owner

Hello. I apologize for the delayed response. I am currently declaring issue bankruptcy. If this issue still applies to you please feel free to re-open and explain. Thanks :)

Owner

ddollar commented Nov 7, 2014

Hello. I apologize for the delayed response. I am currently declaring issue bankruptcy. If this issue still applies to you please feel free to re-open and explain. Thanks :)

@ddollar ddollar closed this Nov 7, 2014

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.