Seite 1 von 1

Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 12:04
von hhansen06
Moin Moin,
ich spiele derzeit ein wenig mit opsi rum und habe festgestellt, das wenn ich ein zweites Depot hinzufügen will, ich den Fehler: ==>>> 'ascii' codec can't decode byte 0xab in position 2: ordinal not in range(128) (opsi-admin|1526)
bekomme.

Wenn ich auf der Console :
opsi-admin -d task setPcpatchPassword "8KfvTQoegrm2"
ausführe, oder
opsi-admin -d task setPcpatchPassword "222"
oder
opsi-admin -d task setPcpatchPassword 222

erhalte ich immer den Fehler:

root@wami-edv:/etc/opsi# opsi-admin -d task setPcpatchPassword "8KfvTQoegrm2"
[2] Traceback: (Logger.py|742)
[2] line 1516 in '<module>' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 214 in 'main' in file '/usr/bin/opsi-admin' (Logger.py|742)
[2] line 140 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] line 224 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] line 275 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py' (Logger.py|742)
[2] line 326 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] line 415 in 'connect' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] line 603 in '_jsonRPC' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] line 123 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|742)
[2] line 134 in 'waitForResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|742)
[2] ==>>> 'ascii' codec can't decode byte 0xab in position 2: ordinal not in range(128) (opsi-admin|1526)


kann mir jemand helfen?

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 17:31
von d.oertel
Hi,

kann das Problem nicht nachvollziehen.

Ist der Server auf den aktuellen Paketen ?

Ausgabe von:
dpkg -l | grep opsi


gruss
d.oertel

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 17:39
von hhansen06
root@wami-edv:/# dpkg -l | grep opsi
ii opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii opsi-depotserver 4.0.1.3-1 opsi depotserver configuration package
ii opsi-linux-bootimage 20110720-1 Linux-Bootimage fuer das Softwareverteilungssystem OPSI
ii opsi-utils 4.0.1.8-1 opsi utils
ii opsiconfd 4.0.1.5-1 opsi configuration service
ii opsipxeconfd 4.0.1-1 opsi pxe configuration daemon
ii python-opsi 4.0.1.16-1 opsi python library

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 17:48
von d.oertel
Hi,

sind beide Depots auf dem selben Paketstand ?

gruss
d.oertel

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 18:05
von hhansen06
kann ich gerade nicht Testen, aber habe beide heute innerhalb von 30min installiert ;) also falls das repo sich nicht geändert hat, sollten beide identisch sein.

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 18:34
von hhansen06
svhh@itsrv:/etc$ dpkg -l | grep opsi
ii opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcr
ii opsi-configed 4.0.1.9-1 OPSI config editor
ii opsi-depotserver 4.0.1.1-1 opsi depotserver configuration package
ii opsi-linux-bootimage 20110419-1 Linux-Bootimage fuer das Softwareverteilungs
ii opsi-utils 4.0.1.1-1 opsi utils
ii opsiconfd 4.0.1-8 opsi configuration service
ii opsipxeconfd 4.0-1 opsi pxe configuration daemon
ii python-opsi 4.0.1.8-1 opsi python library

woops, da sind versionsunterschiede drin. anscheinend war mein apt mirror nicht aktuell.
ich teste es morgen mit aktuellen paketen.

Re: Depot hinzufügen [ascii fehler]

Verfasst: 25 Jul 2011, 22:31
von hhansen06
soo ... beide Server sind jetzt auf identischem software stand:

root@wami-edv:/usr# dpkg -l | grep opsi
ii opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii opsi-configed 4.0.1.9-1 OPSI config editor
ii opsi-depotserver 4.0.1.3-1 opsi depotserver configuration package
ii opsi-linux-bootimage 20110720-1 Linux-Bootimage fuer das Softwareverteilungssystem OPSI
ii opsi-utils 4.0.1.8-1 opsi utils
ii opsiconfd 4.0.1.5-1 opsi configuration service
ii opsipxeconfd 4.0.1-1 opsi pxe configuration daemon
ii python-opsi 4.0.1.16-1 opsi python library

root@itsrv:/etc/opsi# dpkg -l | grep opsi
ii opsi-atftpd 0.7.dfsg-1.4 advanced TFTP server - opsi version with pcr
ii opsi-configed 4.0.1.9-1 OPSI config editor
ii opsi-depotserver 4.0.1.3-1 opsi depotserver configuration package
ii opsi-linux-bootimage 20110720-1 Linux-Bootimage fuer das Softwareverteilungs
ii opsi-utils 4.0.1.8-1 opsi utils
ii opsiconfd 4.0.1.5-1 opsi configuration service
ii opsipxeconfd 4.0.1-1 opsi pxe configuration daemon
ii python-opsi 4.0.1.16-1 opsi python library

ich stelle gerade fest das ich opsi-package-updater ebenfalls crashed.

Code: Alles auswählen

Starting new HTTPS connection (0) to xxxxxx.xxxxxx.xxxxxx:4447
Connection established to: xxxxxx.xxxxxx.xxxxxx
Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert'
Traceback:
     line 108 in 'process' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 635 in '_request' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 402 in 'urlopen' in file '/usr/lib/pymodules/python2.7/OPSI/Util/HTTP.py'
     line 955 in 'request' in file '/usr/lib/python2.7/httplib.py'
     line 989 in '_send_request' in file '/usr/lib/python2.7/httplib.py'
     line 951 in 'endheaders' in file '/usr/lib/python2.7/httplib.py'
     line 809 in '_send_output' in file '/usr/lib/python2.7/httplib.py'
     ==>>> Failed to process method 'getPossibleMethods_listOfHashes': 'ascii' codec can't decode byte 0xab in position 2: ordinal not in range(128)
Traceback:
     line 1052 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 1045 in 'main' in file '/usr/bin/opsi-product-updater'
     line 157 in '__init__' in file '/usr/bin/opsi-product-updater'
     line 361 in 'getConfigBackend' in file '/usr/bin/opsi-product-updater'
     line 140 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py'
     line 224 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py'
     line 275 in '__loadBackends' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py'
     line 326 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 415 in 'connect' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 603 in '_jsonRPC' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 123 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py'
     line 134 in 'waitForResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py'
     ==>>> 'ascii' codec can't decode byte 0xab in position 2: ordinal not in range(128)
ERROR: 'ascii' codec can't decode byte 0xab in position 2: ordinal not in range(128)
Kann es sein das ich ein "schlechtes" Zeichen im ssl zertifikat des masterdepot's habe?

Re: Depot hinzufügen [ascii fehler]

Verfasst: 26 Jul 2011, 12:38
von d.oertel
Hi,
Kann es sein das ich ein "schlechtes" Zeichen im ssl zertifikat des masterdepot's habe?
Möglich ist viel - hast Du da einen konkreten Verdacht ?

d.oertel

Re: Depot hinzufügen [ascii fehler]

Verfasst: 26 Jul 2011, 13:14
von j.schneider
Mit dem Zertifikat sollte das nichts zu tun haben.
Wahrscheinlich wird im HTTP-Header ein Sonderzeichen übertragen.
Bitte auf dem Depotserver folgendes ausführen und die Ausgabe posten:

Code: Alles auswählen

opsi-admin -l9 -d method backend_getInterface