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

Can not exec rails command #211

Closed
niwatoliver opened this issue May 24, 2018 · 6 comments
Closed

Can not exec rails command #211

niwatoliver opened this issue May 24, 2018 · 6 comments

Comments

@niwatoliver
Copy link

Version: Docker Image ruby:2.4.4

ee0b15d#diff-ff2de49361eed004fa5d18a474ece86a

Please check this commit diff.

I can't exec rails s after bundle install recently.

I think it's caused by $BUNDLE_BIN removed.

And not exist path "$BUNDLE_PATH/gems/bin".

@jozko
Copy link

jozko commented May 24, 2018

Ran into a similar problem using Docker image ruby:2.5.1-stretch - at the build time we got this lovely error (nothing else changed code wise, only the upstream base image got updated a few hours ago):

^@^@docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"rubocop\": executable file not found in $PATH".
Exited with code 127

The root cause was incorrect PATH set to /usr/local/bundle/gems/bin where it should've been set to /usr/local/bundle/bin. After updating the PATH in out Dockerfile everything is green again. Not sure why the PATH got updated in the upstream though.

@fwininger
Copy link

Same problem, with ruby:slim

It's seem to be a problem introduced with :
77515a0#diff-74bcd4eb147d76d56d72bb7b43848b20
ee0b15d#diff-74bcd4eb147d76d56d72bb7b43848b20

@fwininger
Copy link

The completed discussion is here :

rubygems/bundler#6469 (comment)

@fwininger
Copy link

Duplicate with #209

@niwatoliver
Copy link
Author

@fwininger My bad..., Thank to find Duplicate issue!

@yosifkit
Copy link
Member

Fixed by #209.

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

4 participants