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

`bundle install` not working on chef 12-15 on Ubuntu 18.04 #8918

Open
timvisher opened this issue Sep 25, 2019 · 5 comments

Comments

@timvisher
Copy link

commented Sep 25, 2019

Description

bundle install can't work on Ubuntu 18.04 in any version of chef after chef installs a chef gem during the pre-compile phase.

Chef Version

12-15

Platform Version

Ubuntu 18.04

Replication Case

https://github.com/timvisher/temp_bundler_1804

Client Output

See https://github.com/timvisher/temp_bundler_1804

Stacktrace

See https://github.com/timvisher/temp_bundler_1804

.kitchen.kitchen-chef12.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-vagrant-1804>.  Please see .kitchen/logs/test-vagrant-1804.log for more details
.kitchen.kitchen-chef12.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-ubuntu-1804>.  Please see .kitchen/logs/test-ubuntu-1804.log for more details
.kitchen.kitchen-chef13.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-vagrant-1804>.  Please see .kitchen/logs/test-vagrant-1804.log for more details
.kitchen.kitchen-chef13.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-ubuntu-1804>.  Please see .kitchen/logs/test-ubuntu-1804.log for more details
.kitchen.kitchen-chef14.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-ubuntu-1804>.  Please see .kitchen/logs/test-ubuntu-1804.log for more details
.kitchen.kitchen-chef14.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-vagrant-1804>.  Please see .kitchen/logs/test-vagrant-1804.log for more details
.kitchen.kitchen-chef15.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-ubuntu-1804>.  Please see .kitchen/logs/test-ubuntu-1804.log for more details
.kitchen.kitchen-chef15.yml/logs/kitchen.log:>>>>>>     Converge failed on instance <test-vagrant-1804>.  Please see .kitchen/logs/test-vagrant-1804.log for more details
@lamont-granquist

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

This is a bug against bento isn't it?

@timvisher

This comment has been minimized.

Copy link
Author

commented Sep 26, 2019

I don't think so given that it's replicable across both bento and stock ubuntu 18.04 images.

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

Oh so this is that the gem metadata installer is picking up the $HOME and writing to /home/vagrant/.bundle as root then you're switching to the vagrant user? That still kind of feels like $HOME/$USER/etc shouldn't be pointing to vagrant's user when running as root because that is going to cause these kinds of problems.

@timvisher

This comment has been minimized.

Copy link
Author

commented Sep 26, 2019

@lamont-granquist Sure? It's very easy to reproduce in that project. Maybe I have something misconfigured? Like I said it works on 14.04 and 16.04 though across all chef versions tested.

@lamont-granquist

This comment has been minimized.

Copy link
Contributor

commented Sep 26, 2019

Yeah the fact that you flip the switch from 14.04/16.04 to 18.04 suggests that this is something to do with the 18.04 bento package and nothing to do with code in this repo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.