Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

bosh-init fails for long home directories #117

Open
wayneeseguin opened this issue Jan 3, 2017 · 0 comments
Open

bosh-init fails for long home directories #117

wayneeseguin opened this issue Jan 3, 2017 · 0 comments

Comments

@wayneeseguin
Copy link

wayneeseguin commented Jan 3, 2017

Ran into this issue over the holiday:

+ popd
+ echo 'Installing rubygems'
+ tar zxvf ruby_openstack_cpi/rubygems-2.1.11.tgz
+ pushd rubygems-2.1.11
+ /home/bosh/.bosh_init/installations/444b40c7-263d-40a8-6a03-88a4c4b92605/packages/ruby_openstack_cpi/bin/ruby setup.rb
+ popd
+ /home/bosh/.bosh_init/installations/444b40c7-263d-40a8-6a03-88a4c4b92605/packages/ruby_openstack_cpi/bin/gem install ruby_openstack_cpi/bundler-1.11.2.gem --local --no-ri --no-rdoc
packaging: /home/bosh/.bosh_init/installations/444b40c7-263d-40a8-6a03-88a4c4b92605/packages/ruby_openstack_cpi/bin/gem: /home/bosh/.bosh_init/installations/444b40c7-263d-40a8-6: bad interpreter: Permission denied
':
            exit status 126

More specifically, this line:

packaging: /home/bosh/.bosh_init/installations/29c1e993-124f-4bfb-51fe-a8ef822efaa5/packages/ruby_openstack_cpi/bin/gem: /home/bosh/.bosh_init/installations/29c1e993-124f-4bfb-5: bad interpreter: Permission denied

Limit on the Ubuntu stemcells for scripts shebang execution is 128 characters.

Because of the UUIDs etc... bosh-init for a long username (like say wayneeseguin) can fail, especially if home is under say /var/vcap/store as well.

Workaround was to symlink the home directory to /wayneeseguin and export HOME=wayneeseguin and continue, but this wasn't a good experience :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant