Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505990 - app-admin/chef-10.24.0 with dev-lang/ruby-1.9 - cannot load such file -- rubygems/format (LoadError)
Summary: app-admin/chef-10.24.0 with dev-lang/ruby-1.9 - cannot load such file -- ruby...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-27 19:04 UTC by Josh G
Modified: 2015-04-26 14:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh G 2014-03-27 19:04:10 UTC
I've upgraded from the masked ruby 1.8 to 1.9 and apps-admin/chef broke with the below back trace. I also tested installing chef on a virgin server with the same error. 

# chef-client
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- rubygems/format (LoadError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/provider/package/rubygems.rb:34:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/providers.rb:60:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef.rb:25:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/bin/chef-client:23:in `<top (required)>'
        from /usr/bin/chef-client:8:in `load'
        from /usr/bin/chef-client:8:in `<main>'




# emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.13.6-gentoo x86_64)
=================================================================
System uname: Linux-3.13.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:     8192980 total,    427224 free
KiB Swap:    2104508 total,   2102756 free
Timestamp of tree: Thu, 27 Mar 2014 08:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo sunrise mysql x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/home/portage/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/mysql /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 arts avi berkdb bzip2 cairo cdb cdr cli consolekit cracklib crypt cxx divx dri dvd dvdr encode exif expat extensions ffmpeg flac fortran freetype gd gdbm gmp gstreamer gtk gudev hwdb iconv icu idn ipv6 java jpeg live lua mad matroska midi mmx mmxext modules mp3 mpeg multilib ncurses nls nonfsv4 nptl nptlonly ogg oggvorbis opengl openmp oss pam pcre pdf perl png policykit pulseaudio python quicktime readline rtsp samba session sse sse2 sse3 ssl svg tcpd theora threads tiff transcode truetype unicode upcall vdpau vhosts vnc vorbis win32codecs wmp wxwindows x264 xanim xinerama xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="actions alias access_compat auth_basic authn_alias authn_anon authn_dbm authn_core authn_default authn_file authz_dbm authz_core authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_http rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vmware" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




# emerge -pv chef

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ~] app-admin/chef-10.24.0  USE="{-test}" RUBY_TARGETS="ruby19" 0 kB
Comment 1 Vincent de Phily 2014-06-19 09:45:03 UTC
I'm running into the same issues, making chef unusable:

$ knife node list
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- mixlib/cli (LoadError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/knife.rb:22:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/application/knife.rb:18:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/bin/knife:23:in `<top (required)>'
        from /usr/bin/knife:8:in `load'
        from /usr/bin/knife:8:in `<main>'



$ chef-client 
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- mixlib/shellout/exceptions (LoadError)
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/exceptions.rb:105:in `<class:Exceptions>'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/exceptions.rb:23:in `<class:Chef>'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef/exceptions.rb:19:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/lib/chef.rb:22:in `<top (required)>'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:45:in `require'
        from /usr/lib64/ruby/gems/1.9.1/gems/chef-10.24.0/bin/chef-client:23:in `<top (required)>'
        from /usr/bin/chef-client:8:in `load'
        from /usr/bin/chef-client:8:in `<main>'
Comment 2 Vincent de Phily 2014-06-19 11:05:26 UTC
Meh :/ It seems to be due to ruby's PITA gem handling. I had a GEM_PATH env variable that pointed to local gems. Possible workarounds :

* gem install <whatever chef needs>
* unset GEM_PATH

I tried playing with the value of GEM_PATH to include system gems, and with the value of "$:"  inside the ruby shell, but no success (I'm not well versed in ruby).

Not sure if this bug should be closed as a user issue, or if Gentoo can do somthing to help.
Comment 3 Josh G 2014-06-19 18:47:59 UTC
Copy the ebuild to *10.28.0* and you'll be set.
Comment 4 Manuel Rüger (RETIRED) gentoo-dev 2015-04-26 14:38:35 UTC
Removed from the tree.