libxml-simple-ruby path workaround causes double loading with rails

Bug #296605 reported by juancarlospaco
36
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libxml-simple-ruby (Debian)
Fix Released
Unknown
libxml-simple-ruby (Ubuntu)
Fix Released
Undecided
Unassigned
puppet (Ubuntu)
Invalid
Undecided
Unassigned
rails (Debian)
Fix Released
Unknown

Bug Description

Binary package hint: puppetmaster

$ lsb_release -rd
Description: Ubuntu 8.10
Release: 8.10

$ uname -a
Linux ibex 2.6.27-7-generic #1 SMP Tue Nov 4 19:33:20 UTC 2008 i686 GNU/Linux

$ free
             total used free shared buffers cached
Mem: 2072604 897676 1174928 0 45304 412324
-/+ buffers/cache: 440048 1632556
Swap: 1052216 0 1052216

$ sudo /etc/init.d/puppetmaster restart
[sudo] password for juancarlos:
 * Restarting puppet configuration management tool master server
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL
                                                                         [ OK ]

$ puppetmasterd --debug
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL
Could not configure for running; got 3 failure(s)
$

$ sudo apt-get purge puppetmaster ; sudo apt-get clean ; sudo apt-get install puppetmaster
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Se instalaron de forma automática los siguientes paquetes y ya no son necesarios.
  libshadow-ruby1.8 libncurses-ruby1.8 libdaemons-ruby1.8 irb1.8 libbuilder-ruby1.8 libmmap-ruby1.8 puppet rake
  libopenssl-ruby1.8 libreadline-ruby1.8 libopenssl-ruby libxmlrpc-ruby libxml-simple-ruby
Utilice «apt-get autoremove» para eliminarlos.
Los siguientes paquetes se ELIMINARÁN:
  puppetmaster*
0 actualizados, 0 se instalarán, 1 para eliminar y 5 no actualizados.
Se liberarán 160kB después de desempaquetar.
¿Desea continuar [S/n]? S
(Leyendo la base de datos ...
164776 ficheros y directorios instalados actualmente.)
Desinstalando puppetmaster ...
 * Stopping puppet configuration management tool master server [ OK ]
Purgando ficheros de configuración de puppetmaster ...
Procesando activadores para man-db ...
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
Paquetes sugeridos:
  apache2 nginx mongrel
Se instalarán los siguientes paquetes NUEVOS:
  puppetmaster
0 actualizados, 1 se instalarán, 0 para eliminar y 5 no actualizados.
Necesito descargar 36,0kB de archivos.
Se utilizarán 160kB de espacio de disco adicional después de desempaquetar.
Des:1 http://ar.archive.ubuntu.com intrepid/universe puppetmaster 0.24.4-8 [36,0kB]
Descargados 36,0kB en 1s (24,3kB/s)
Seleccionando el paquete puppetmaster previamente no seleccionado.
(Leyendo la base de datos ...
164764 ficheros y directorios instalados actualmente.)
Desempaquetando puppetmaster (de .../puppetmaster_0.24.4-8_all.deb) ...
Procesando activadores para man-db ...
Configurando puppetmaster (0.24.4-8) ...
 * Starting puppet configuration management tool master server
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL
                                                                                                                      [ OK ]

$ sudo apt-cache policy puppetmaster
puppetmaster:
  Instalados: 0.24.4-8
  Candidato: 0.24.4-8
  Tabla de versión:
 *** 0.24.4-8 0
        500 http://ar.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status
$

$ sudo apt-cache search puppetmaster
puppetmaster - centralised configuration management control daemon

3) What you expected to happen : To work properly.
4) What happened instead : Dont work properly, they say "Could not configure for running; got 3 failure(s)"

Revision history for this message
arno_b (arno.b) wrote :

I have the same problem on Intrepid.

Changed in puppet:
status: New → Confirmed
Revision history for this message
juancarlospaco (juancarlospaco) wrote :

Im gonna try to download the .tar.gz sources and (voy a bajar los .tar.gz y hacer) :
./configure
dh_make
sudo checkinstall

To Temporary solution (como solucion temporal).
Can i send this like a Patch...?

Revision history for this message
Andreas Roth (aroth) wrote :

Same problem with version 0.24.5-2 from jaunty.

Revision history for this message
Bjørn Dyresen (bjorn-dyresen) wrote :

I can confirm this on intrepid. For me puppet runs, but I get the same warnings. The problem seem to be correlated to the symlink /usr/lib/ruby/1.8/lib/xmlsimple.rb => ../xmlsimple.rb

dpkg -S dpkg -S xmlsimple.rb returns:

libxml-simple-ruby: /usr/lib/ruby/1.8/lib/xmlsimple.rb
libxml-simple-ruby: /usr/lib/ruby/1.8/xmlsimple.rb

Seems like some things are getting loaded twice, and hence the warning.

Bugs in the configuration management is a serious thing for people running more than a few handfulls of servers. If Ubuntu wants to be a serious server distro then issues like this needs to be solved.

Revision history for this message
Thom May (thombot) wrote :

Can you please run 'puppetmasterd --debug --trace' and paste the output? I'd be surprised if the xmlsimple issue was the actual cause of any crash, and indeed from the above message it's not clear that puppetmaster has actually crashed.
If all this is is just a warning, this is a purely cosmetic issue, and I'll reassign the bug to libxml-simple-ruby.

Revision history for this message
Andreas Roth (aroth) wrote :

Here is the output of 'puppetmasterd --debug --trace' of the jaunty puppetmaster:
/usr/lib/ruby/1.8/xmlsimple.rb:275: warning: already initialized constant KNOWN_OPTIONS
/usr/lib/ruby/1.8/xmlsimple.rb:280: warning: already initialized constant DEF_KEY_ATTRIBUTES
/usr/lib/ruby/1.8/xmlsimple.rb:281: warning: already initialized constant DEF_ROOT_NAME
/usr/lib/ruby/1.8/xmlsimple.rb:282: warning: already initialized constant DEF_CONTENT_KEY
/usr/lib/ruby/1.8/xmlsimple.rb:283: warning: already initialized constant DEF_XML_DECLARATION
/usr/lib/ruby/1.8/xmlsimple.rb:284: warning: already initialized constant DEF_ANONYMOUS_TAG
/usr/lib/ruby/1.8/xmlsimple.rb:285: warning: already initialized constant DEF_FORCE_ARRAY
/usr/lib/ruby/1.8/xmlsimple.rb:286: warning: already initialized constant DEF_INDENTATION
/usr/lib/ruby/1.8/xmlsimple.rb:287: warning: already initialized constant DEF_KEY_TO_SYMBOL

The puppetmaster does not crash, but it issues these warning on every startup and it looks very bad.

Revision history for this message
Thom May (thombot) wrote : Re: libxml-simple-ruby causes warnings in puppet
description: updated
Changed in puppet:
status: Confirmed → Invalid
Revision history for this message
Bryan McLellan (btm) wrote :

Debian bug has been confirmed and split into a libxml-simple-ruby and a rails bug.

Changed in libxml-simple-ruby:
status: New → Confirmed
Changed in libxml-simple-ruby:
status: Unknown → New
Changed in rails:
status: Unknown → Fix Released
Revision history for this message
Ryan Niebur (ryan52) wrote :

fixed

Changed in libxml-simple-ruby (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Katherine Rossiter (signe) wrote :

If fixes are released, why aren't they released? It's certainly not fixed in jaunty.

Revision history for this message
Ryan Niebur (ryan52) wrote :
Revision history for this message
Katherine Rossiter (signe) wrote :

Your comment is the first that mentions karmic anywhere. It's not listed in the changelog, and it's definitely not listed on either of the debian bugs.

It was reported against Intrepid, it still effects Jaunty, and it won't be fixed until Karmic?

Revision history for this message
Ryan Niebur (ryan52) wrote :

ok, sorry for not being verbose enough, but you could have checked which ubuntu versions had new uploads of libxml-simple-ruby, and the changelog clearly explained that it fixes this bug.

anyway, I don't know if it will be fixed in Intrepid, or Jaunty, or anything older, but it is fixed for Karmic. I don't contribute to directly to Ubuntu, so I won't be of any help with SRUs/backports. sorry.

Revision history for this message
Ryan Niebur (ryan52) wrote :

and looking at https://wiki.ubuntu.com/StableReleaseUpdates#When, it looks like this doesn't warrant a SRU anyway. if you want it fixed on an older version, you can probably just download the .deb from karmic and "dpkg -i" it.

Revision history for this message
Pierre-Yves Ritschard (pyr-spootnik) wrote :

Just for the record, changing '/usr/lib/ruby-1.8/lib/xmlsimple.rb' to only read: require 'xmlsimple' fixes the issue for me in jaunty.

Revision history for this message
Ryan Niebur (ryan52) wrote :

yes, and that's the change that happened for karmic.

Changed in libxml-simple-ruby (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.