Re: [gentoo-user] Rolling upgrades, are you making sure everything gets restarted?

2007-08-23 Thread Dan Johansson
On Thursday 23 August 2007, Steen Eugen Poulsen wrote:
  BUT! It runs on four out of five boxes here. This is the error I get on
  the fifth box (I'm not a phyton programmer).

 Neither am I, but that wont stop me. o.O

  # bin/checkrestart
  Found 54 processes using old versions of upgraded files
  (32 distinct programs)
  Traceback (most recent call last):
File bin/checkrestart, line 321, in ?
  main()
File bin/checkrestart, line 116, in main
  packages[packagename].processes.extend(programs[program])
  KeyError: '/lib/nut/genericups'
 
  Could you please try to explain whats wrong?

 The code tried to insert the key in the key hole, but no key hole was
 found.

 Strange thing is, line 115 creates the keyhole, so this shouldn't
 happen. Reading the documentation for python, there is no indication
 that key creation can fail without terminating the program, so I'm
 afraid we have a mystery here, doesn't seem like upstreams bugzilla has
 this error, so maybe it is created by me somehow.

 I don't think the new version is likely to fix this issue, but it's new
 layout (from upstream) and improved detection engine (from me), should
 at least make it more fun to use on the four working machines and it's
 available at the same URL as the old one.

Still a no-go :-(
I put in some dubugging lines (three print-lines), and the result is that the 
first time the program reaches the following program segment (line 118 ansd 
119) everything works (no error).
packages.setdefault(packagename,Package(packagename))
packages[packagename].processes.extend(programs[program])

But the second time the program comes here only the first line work and it 
bails out on the second.

-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Rolling upgrades, are you making sure everything gets restarted?

2007-08-22 Thread Arturo 'Buanzo' Busleiman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Very nice, Steen!

Thanks!

- --
Arturo Buanzo Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGzDBaAlpOsGhXcE0RCtbhAJ4mNXYn7lijHf4b/9F6xb0OIBlYcACdHmDA
7CpK2YITVFD9TdP1Pj7r0r8=
=rvPt
-END PGP SIGNATURE-
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Rolling upgrades, are you making sure everything gets restarted?

2007-08-22 Thread Dan Johansson
On Wednesday 22 August 2007, Steen Eugen Poulsen wrote:

 http://www.arcdraco.net/~dragon/checkrestart

Great tool, thanks!!!

BUT! It runs on four out of five boxes here. This is the error I get on the 
fifth box (I'm not a phyton programmer).

# bin/checkrestart
Found 54 processes using old versions of upgraded files
(32 distinct programs)
Traceback (most recent call last):
  File bin/checkrestart, line 321, in ?
main()
  File bin/checkrestart, line 116, in main
packages[packagename].processes.extend(programs[program])
KeyError: '/lib/nut/genericups'

Could you please try to explain whats wrong?

Regards,
-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Rolling upgrades, are you making sure everything gets restarted?

2007-08-22 Thread Steen Eugen Poulsen
Steen Eugen Poulsen skrev:
 Code can be found at:
 
 http://www.arcdraco.net/~dragon/checkrestart

Yeah Yeah, I know, I'm talking to myself, but I created a new version
based on upstreams debain-goodies 0.29 (old one was based on upstream 0.27).

Changelog:

0.29: Better layout of the report it generates.

My Modification: Ripped out the engine and recoded it, since the old
detection code had some false positives, I can't completely remove the
chance of detecting memory/disk differences that isn't due to package
upgrades. It always detected apache2, nscd as being dirty, thats fixed.


smime.p7s
Description: S/MIME Cryptographic Signature


Re: [gentoo-user] Rolling upgrades, are you making sure everything gets restarted?

2007-08-22 Thread Steen Eugen Poulsen
Dan Johansson skrev:
 Great tool, thanks!!!

Yes, best thing since sliced bread, I'm glad I found it.

 BUT! It runs on four out of five boxes here. This is the error I get on the 
 fifth box (I'm not a phyton programmer).

Neither am I, but that wont stop me. o.O

 # bin/checkrestart
 Found 54 processes using old versions of upgraded files
 (32 distinct programs)
 Traceback (most recent call last):
   File bin/checkrestart, line 321, in ?
 main()
   File bin/checkrestart, line 116, in main
 packages[packagename].processes.extend(programs[program])
 KeyError: '/lib/nut/genericups'
 
 Could you please try to explain whats wrong?

The code tried to insert the key in the key hole, but no key hole was found.

Strange thing is, line 115 creates the keyhole, so this shouldn't
happen. Reading the documentation for python, there is no indication
that key creation can fail without terminating the program, so I'm
afraid we have a mystery here, doesn't seem like upstreams bugzilla has
this error, so maybe it is created by me somehow.

I don't think the new version is likely to fix this issue, but it's new
layout (from upstream) and improved detection engine (from me), should
at least make it more fun to use on the four working machines and it's
available at the same URL as the old one.




smime.p7s
Description: S/MIME Cryptographic Signature