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

jumpbox setup script doesn't work with xenial stemcell #20

Closed
dennisjbell opened this issue Apr 8, 2019 · 8 comments
Closed

jumpbox setup script doesn't work with xenial stemcell #20

dennisjbell opened this issue Apr 8, 2019 · 8 comments
Assignees

Comments

@dennisjbell
Copy link
Member

After upgrading to Xenial in v1.0.3, new users trying to run the setup script see failures:

Error running 'requirements_debian_libs_install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev',
please read /u/jpahl/.rvm/log/1554745481_ruby-2.6.0/package_install_gawk_autoconf_automake_libffi-dev_libgdbm-dev_libsqlite3-dev_libtool_libyaml-dev_sqlite3_libgmp-dev.log
Requirements installation failed with status: 100.
Searching for binary rubies, this might take some time.
Found remote file https://rubies.travis-ci.org/ubuntu/16.04/x86_64/ruby-2.4.5.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system...
Installing required packages: gawk, autoconf, automake, libffi-dev, libgdbm-dev, libsqlite3-dev, libtool, libyaml-dev, sqlite3, libgmp-dev.....
Error running 'requirements_debian_libs_install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev',
please read /u/jpahl/.rvm/log/1554745485_ruby-2.4.5/package_install_gawk_autoconf_automake_libffi-dev_libgdbm-dev_libsqlite3-dev_libtool_libyaml-dev_sqlite3_libgmp-dev.log
Requirements installation failed with status: 100.
Required ruby-2.4.5 is not installed.
@dennisjbell dennisjbell changed the title jumpbox setup script doesn't work with xenial stemcall jumpbox setup script doesn't work with xenial stemcell Apr 8, 2019
@krutten
Copy link
Contributor

krutten commented Apr 8, 2019

More details on the error

++ command_to_run=(__rvm_sudo -p "%p password required for '$*': " "${command_to_run[@]}")
++ __rvm_sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev'\'': ' apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev
++ command sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev'\'': ' apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev
++ sudo -p '%p password required for '\''apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev'\'': ' apt-get --no-install-recommends --yes install gawk autoconf automake libffi-dev libgdbm-dev libsqlite3-dev libtool libyaml-dev sqlite3 libgmp-dev
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  libgmpxx4ldbl libsqlite3-0 libyaml-0-2
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gawk-doc gmp-doc libgmp10-doc
  libmpfr-dev sqlite3-doc libtool-doc gfortran | fortran95-compiler gcj-jdk
  libyaml-doc
Recommended packages:
  libltdl-dev
The following NEW packages will be installed:
  autoconf automake gawk libffi-dev libgdbm-dev libgmp-dev libgmpxx4ldbl
  libsqlite3-dev libtool libyaml-0-2 libyaml-dev sqlite3
The following packages will be upgraded:
  libsqlite3-0
1 upgraded, 12 newly installed, 0 to remove and 51 not upgraded.
Need to get 0 B/3,465 kB of archives.
After this operation, 12.2 MB of additional disk space will be used.
dpkg: unrecoverable fatal error, aborting:
 unknown group 'messagebus' in statoverride file
W: No sandbox user '_apt' on the system, can not drop privileges
E: Sub-process /usr/bin/dpkg returned an error code (2)
++ return 100
++ return 100

@jhunt
Copy link
Contributor

jhunt commented Apr 8, 2019

What's in /var/lib/dpkg/statoverride?

@jhunt
Copy link
Contributor

jhunt commented Apr 9, 2019

This might be related to cloudfoundry-community/jumpbox-boshrelease#68

@krutten
Copy link
Contributor

krutten commented Apr 17, 2019

cat /var/lib/dpkg/statoverride

root crontab 2755 /usr/bin/crontab
root messagebus 4754 /usr/lib/dbus-1.0/dbus-daemon-launch-helper

@krutten
Copy link
Contributor

krutten commented Apr 17, 2019

ls -la /usr/lib/dbus-1.0/dbus-daemon-launch-helper
-rwxr-xr-- 1 root 110 42992 Jan 12 2017 /usr/lib/dbus-1.0/dbus-daemon-launch-helper

@jhunt
Copy link
Contributor

jhunt commented May 2, 2019

Yes, at some point the messagebus group was mistakenly deleted. I believe this is an OS thing, unrelated to anything we are doing (aside from using apt). Have you found a reliable way to reproduce this?

@jhunt jhunt self-assigned this May 2, 2019
@jhunt
Copy link
Contributor

jhunt commented May 24, 2019

@krutten bump

@jhunt jhunt closed this as completed Jul 10, 2019
@krutten
Copy link
Contributor

krutten commented Sep 17, 2019

More detailed notes added to cloudfoundry-community/jumpbox-boshrelease#68

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

3 participants