Traceback bei opsi-product-updater

Antworten
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Traceback bei opsi-product-updater

Beitrag von matth46 »

Zur Info:

Wir verwenden einen caching Proxy, Programmversionen:

Code: Alles auswählen

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.2-1                            OPSI config editor
ii  opsi-depotserver                     4.0-5                                opsi depotserver configuration package
ii  opsi-linux-bootimage                 20110117-1                           Linux-Bootimage fuer das Softwareverteilungs
ii  opsi-utils                           4.0.0.6-1                            opsi utils
ii  opsiconfd                            4.0.0.3-1                            opsi configuration service
ii  opsipxeconfd                         4.0-1                                opsi pxe configuration daemon
ii  python-opsi                          4.0.0.18-1                           opsi python library

Code: Alles auswählen

zsync -V
zsync v0.6.2 (compiled Dec 20 2010 10:40:30)
By Colin Phipps <cph@moria.org.uk>
Published under the Artistic License v2, see the COPYING file for details.

Code: Alles auswählen

opsi-product-updater -vv
Zsync command found: /usr/local/bin/zsync
Modules file signature verified (customer: opsi community)
Reading config file '/etc/opsi/opsi-product-updater.conf'
Using Proxy: http://192.168.2.29:1180
Using Proxy: http://192.168.2.29:1180
Notification is activated
Getting installed products
Getting info for local packages in '/var/lib/opsi/repository'
Getting package infos from repository 'http://download.uib.de'
Using Proxy: http://192.168.2.29:1180
Getting package infos from repository 'http://download.uib.de'
Using Proxy: http://192.168.2.29:1180
Getting package infos from repository 'http://localhost/antivirus/packages'
opsi-client-agent_4.0-13.opsi - installation not required: a more recent version of product 'opsi-client-agent' was found (installed: 4.0-11, available: 4.0-13) but auto update is not set for repository 'http://download.uib.de'
opsi-winst-test_4.0-1.opsi - installation not required: product 'opsi-winst-test' is not installed but auto install is not set for repository 'http://download.uib.de'
opsi-winst_4.10.8.14-1.opsi - installation not required: a more recent version of product 'opsi-winst' was found (installed: 4.10.8.7-1, available: 4.10.8.14-1) but auto update is not set for repository 'http://download.uib.de'
hwaudit_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'hwaudit' is up to date
javavm_1.6.0.24-1.opsi - installation not required: installed version '1.6.0.24-1' of product 'javavm' is up to date
jedit_4.3.2-4.opsi - installation not required: product 'jedit' is not installed but auto install is not set for repository 'http://download.uib.de'
opsi-adminutils_4.0.1.2-1.opsi - installation not required: installed version '4.0.1.2-1' of product 'opsi-adminutils' is up to date
opsi-template-with-admin_1.0-5.opsi - installation not required: installed version '1.0-5' of product 'opsi-template-with-admin' is up to date
opsi-template_1.0-20.opsi - installation not required: installed version '1.0-20' of product 'opsi-template' is up to date
shutdownwanted_1.0-2.opsi - installation not required: installed version '1.0-2' of product 'shutdownwanted' is up to date
swaudit_4.0-6.opsi - installation not required: installed version '4.0-6' of product 'swaudit' is up to date
xpconfig_2.6-1.opsi - installation not required: product 'xpconfig' is not installed but auto install is not set for repository 'http://download.uib.de'
hwinvent_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'hwinvent' is up to date
memtest86_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'memtest86' is up to date
ntfs-restore-image_1.5-1.opsi - installation not required: installed version '1.5-1' of product 'ntfs-restore-image' is up to date
ntfs-write-image_1.5-1.opsi - installation not required: installed version '1.5-1' of product 'ntfs-write-image' is up to date
wipedisk_1.0-2.opsi - installation not required: installed version '1.0-2' of product 'wipedisk' is up to date
acroread9_9.4.2-1.opsi - installation not required: installed version '9.4.2-1' of product 'acroread9' is up to date
firefox_3.5.17or3.6.14-1.opsi - installation not required: installed version '3.5.17or3.6.14-1' of product 'firefox' is up to date
flashplayer_10.2.152.26-1.opsi - installation not required: installed version '10.2.152.26-1' of product 'flashplayer' is up to date
gnupg_1.4.9-1.opsi - installation not required: product 'gnupg' is not installed but auto install is not set for repository 'http://download.uib.de'
ooffice3_3.3-3.opsi - installation required: a more recent version of product 'ooffice3' was found (installed: 3.2.1-2, available: 3.3-3) and auto update is set for repository 'http://download.uib.de'
ooffice3_3.3-3.opsi - download of package is required: found local package ooffice3_3.2.1-2.opsi which differs from available
Zsyncing http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi to /var/lib/opsi/repository/ooffice3_3.3-3.opsi
Zsync of 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi' completed
Sending mail notification
Email successfully sent
Traceback:
     line 1005 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 999 in 'main' in file '/usr/bin/opsi-product-updater'
     line 440 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     ==>>> Failed to download package 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi', md5sum mismatch
ERROR: Failed to download package 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi', md5sum mismatch
More verbose:

Code: Alles auswählen

opsi-product-updater -vvvv
*SNIP*
Testing if download/installation of package 'ooffice3_3.3-3.opsi' is needed
Product 'ooffice3' is installed
Available product version is '3.3-3', installed product version is '3.2.1-2'
Fulfilled condition: 3.3-3 > 3.2.1-2
ooffice3_3.3-3.opsi - installation required: a more recent version of product 'ooffice3' was found (installed: 3.2.1-2, available: 3.3-3) and auto update is set for repository 'http://download.uib.de'
Found local package file 'ooffice3_3.3-3.opsi'
ooffice3_3.3-3.opsi - download of package is required: found local package ooffice3_3.3-3.opsi which differs from available
Zsyncing http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi to /var/lib/opsi/repository/ooffice3_3.3-3.opsi
Executing: http_proxy=http://192.168.2.29:1180 /usr/local/bin/zsync -A download.uib.de='[anon]:*** confidential ***' -o '/var/lib/opsi/repository/ooffice3_3.3-3.opsi' http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi.zsync 2>&1
Zsync of 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi' completed
Cleaning up in /var/lib/opsi/repository
Deleting obsolete package file '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.md5'
Deleting obsolete package file '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.part'
Deleting obsolete package file '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.zsync'
Creating md5sum file '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.md5'
Creating zsync file '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.zsync'
Command 'zsyncmake' found at: '/usr/local/bin/zsyncmake'
Executing: /usr/local/bin/zsyncmake -u 'ooffice3_3.3-3.opsi' -o '/var/lib/opsi/repository/ooffice3_3.3-3.opsi.zsync' '/var/lib/opsi/repository/ooffice3_3.3-3.opsi'
Using encoding 'UTF-8'
Exit code: 0
Parsing zsync file /var/lib/opsi/repository/ooffice3_3.3-3.opsi.zsync
Verifying download of package '/var/lib/opsi/repository/ooffice3_3.3-3.opsi'
Sending mail notification
Email successfully sent
Traceback:
     line 1005 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 999 in 'main' in file '/usr/bin/opsi-product-updater'
     line 440 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     ==>>> Failed to download package 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi', md5sum mismatch
ERROR: Failed to download package 'http://download.uib.de/abo/standard/opsi3/ooffice3_3.3-3.opsi', md5sum mismatch
Calling backend_exit() on backend <OPSI.Backend.BackendManager.BackendExtender instance at 0x244d320>
Calling backend_exit() on backend <OPSI.Backend.HostControl.HostControlBackend instance at 0x2442e60>
Calling backend_exit() on backend <OPSI.Backend.Depotserver.DepotserverBackend instance at 0x22340e0>
Calling backend_exit() on backend <OPSI.Backend.Backend.ExtendedConfigDataBackend instance at 0x1ed81b8>
Calling backend_exit() on backend <OPSI.Backend.BackendManager.BackendDispatcher instance at 0x1ed8368>
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1819
Registriert: 29 Mai 2008, 15:14

Re: Traceback bei opsi-product-updater

Beitrag von j.schneider »

Benötigt der Proxy eine Authentifizierung?
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: Traceback bei opsi-product-updater

Beitrag von matth46 »

Nein, er benötigt keine.
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Traceback bei opsi-product-updater

Beitrag von ueluekmen »

Hi,

vielleicht sollte man das openoffice paket mal im lokalen Repository komplett löschen. Vielleicht ist beim zsyncen was schief gegangen, so dass die Datei einfach kaputt gegangen ist.

Grüße
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: Traceback bei opsi-product-updater

Beitrag von matth46 »

Es treten immer noch sporadisch Fehler auf:

Code: Alles auswählen

win2008-x64_4.0.1-2.opsi - installation required: a more recent version of product 'win2008-x64' was found (installed: 4.0-3, available: 4.0.1-2) and auto update is set for repository 'http://download.uib.de'
win2008-x64_4.0.1-2.opsi - download of package is required: found local package win2008-x64_4.0-3.opsi which differs from available
Zsyncing http://download.uib.de/opsi4.0/testing/win2008-x64_4.0.1-2.opsi to /var/lib/opsi/repository/win2008-x64_4.0.1-2.opsi
Zsync of 'http://download.uib.de/opsi4.0/testing/win2008-x64_4.0.1-2.opsi' completed
Sending mail notification
Email successfully sent
Traceback:
     line 1014 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 1008 in 'main' in file '/usr/bin/opsi-product-updater'
     line 444 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     ==>>> Failed to download package 'http://download.uib.de/opsi4.0/testing/win2008-x64_4.0.1-2.opsi', md5sum mismatch
ERROR: Failed to download package 'http://download.uib.de/opsi4.0/testing/win2008-x64_4.0.1-2.opsi', md5sum mismatch

Code: Alles auswählen

md5sum win2008-x64_4.0.1-2.opsi
15b3cea21d812a1148afe7d0e694aa7e  win2008-x64_4.0.1-2.opsi

Code: Alles auswählen

cat win2008-x64_4.0.1-2.opsi.md5
15b3cea21d812a1148afe7d0e694aa7e
Abhilfe schafft hier nur ein Löschen des Pakets (incl. zsync und md5-Datei) und manuelles Anstoßen per opsi-product-updater, dann läuft (meistens) der Download.

Code: Alles auswählen

 zsync -V
zsync v0.6.2 (compiled Dec 20 2010 10:40:30)
By Colin Phipps <cph@moria.org.uk>
Published under the Artistic License v2, see the COPYING file for details.

Code: Alles auswählen

 md5sum --version
md5sum (GNU coreutils) 6.10
Copyright © 2008 Free Software Foundation, Inc.
Lizenz GPLv3+: GNU GPL Version 3 oder höher <http://gnu.org/licenses/gpl.html>
Dies ist freie Software: Sie können sie ändern und weitergeben.
Es gibt keinerlei Garantien, soweit wie es das Gesetz erlaubt.

Geschrieben von Ulrich Drepper, Scott Miller und David Madore.

Code: Alles auswählen

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.7-3                            OPSI config editor
ii  opsi-depotserver                     4.0.1-6                              opsi depotserver configuration package
ii  opsi-linux-bootimage                 20110117-1                           Linux-Bootimage fuer das Softwareverteilungs
ii  opsi-utils                           4.0.1-3                              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-21                             opsi python library
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: Traceback bei opsi-product-updater

Beitrag von matth46 »

Okay, more verbose:

<--snip-->

Code: Alles auswählen

Downloading http://download.uib.de/abo/msoffice/opsi3/office_2007_hotfix_201105-2.opsi: 99% (53456 kbit/s)
Downloading http://download.uib.de/abo/msoffice/opsi3/office_2007_hotfix_201105-2.opsi: 99% (53456 kbit/s)
Downloading http://download.uib.de/abo/msoffice/opsi3/office_2007_hotfix_201105-2.opsi: 99% (53456 kbit/s)
Downloading http://download.uib.de/abo/msoffice/opsi3/office_2007_hotfix_201105-2.opsi: 100% (53456 kbit/s)
Download of 'http://download.uib.de/abo/msoffice/opsi3/office_2007_hotfix_201105-2.opsi' completed
Cleaning up in /var/lib/opsi/repository
Creating md5sum file '/var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi.md5'
Creating zsync file '/var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi.zsync'
Command 'zsyncmake' found at: '/usr/local/bin/zsyncmake'
Executing: /usr/local/bin/zsyncmake -u 'office_2007_hotfix_201105-2.opsi' -o '/var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi.zsync' '/var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi'
Using encoding 'UTF-8'
Exit code: 0
Parsing zsync file /var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi.zsync
Verifying download of package '/var/lib/opsi/repository/office_2007_hotfix_201105-2.opsi'
Md5sum match, package download verified
Testing if download/installation of package 'office_xp_hotfix_201105-2.opsi' is needed
Product 'office_xp_hotfix' is installed
Available product version is '201105-2', installed product version is '201104-1'
Fulfilled condition: 201105-2 > 201104-1
office_xp_hotfix_201105-2.opsi - installation required: a more recent version of product 'office_xp_hotfix' was found (installed: 201104-1, available: 201105-2) and auto update is set for repository 'http://download.uib.de'
Found local package file 'office_xp_hotfix_201104-1.opsi'
office_xp_hotfix_201105-2.opsi - download of package is required: found local package office_xp_hotfix_201104-1.opsi which differs from available
Zsyncing http://download.uib.de/abo/msoffice/opsi3/office_xp_hotfix_201105-2.opsi to /var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi
Executing: http_proxy=http://192.168.2.29:1180 /usr/local/bin/zsync -A download.uib.de='user:*** confidential ***' -o '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi' http://download.uib.de/abo/msoffice/opsi3/office_xp_hotfix_201105-2.opsi.zsync 2>&1
Zsync of 'http://download.uib.de/abo/msoffice/opsi3/office_xp_hotfix_201105-2.opsi' completed
Cleaning up in /var/lib/opsi/repository
Deleting obsolete package file '/var/lib/opsi/repository/office_xp_hotfix_201104-1.opsi.zsync'
Deleting obsolete package file '/var/lib/opsi/repository/office_xp_hotfix_201104-1.opsi.md5'
Deleting obsolete package file '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi.part'
Creating md5sum file '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi.md5'
Creating zsync file '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi.zsync'
Executing: /usr/local/bin/zsyncmake -u 'office_xp_hotfix_201105-2.opsi' -o '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi.zsync' '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi'
Using encoding 'UTF-8'
Exit code: 0
Parsing zsync file /var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi.zsync
Verifying download of package '/var/lib/opsi/repository/office_xp_hotfix_201105-2.opsi'
Sending mail notification
Email successfully sent
Traceback:
     line 1014 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 1008 in 'main' in file '/usr/bin/opsi-product-updater'
     line 444 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     ==>>> Failed to download package 'http://download.uib.de/abo/msoffice/opsi3/office_xp_hotfix_201105-2.opsi', md5sum mismatch
ERROR: Failed to download package 'http://download.uib.de/abo/msoffice/opsi3/office_xp_hotfix_201105-2.opsi', md5sum mismatch
Calling backend_exit() on backend <OPSI.Backend.BackendManager.BackendExtender instance at 0x1df4fc8>
Calling backend_exit() on backend <OPSI.Backend.HostControl.HostControlBackend instance at 0x1bf04d0>
Calling backend_exit() on backend <OPSI.Backend.Depotserver.DepotserverBackend instance at 0x1bd9c68>
Calling backend_exit() on backend <OPSI.Backend.Backend.ExtendedConfigDataBackend instance at 0x18662d8>
Calling backend_exit() on backend <OPSI.Backend.BackendManager.BackendDispatcher instance at 0x18664d0>
Anmerkung:
Der Traceback-Fehler ist zuvor auch beim Paket "office_2007_hotfix_201105-2.opsi" aufgetreten, dies wurde händisch gelöscht, danach lief der Download (s. oben).
Benutzeravatar
ueluekmen
uib-Team
Beiträge: 1939
Registriert: 28 Mai 2008, 10:53

Re: Traceback bei opsi-product-updater

Beitrag von ueluekmen »

Hallo,

das Problem ist mir schon mal aufgefallen, da lag das Problem daran, dass Caching beim Proxy aktiviert war. Wie haben das Problem beim Kunden so gelöst, indem wir das Caching für download.uib.de ausgeschaltet haben, vielleicht ist es hier das selbe Problem.

Grüße
E. Ülükmen
opsi support - uib gmbh
For productive opsi installations we recommend support contracts.
http://www.uib.de
Antworten