opsi-product-updater

Anregungen, Fragen zu den Abo-Paketen
Antworten
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

opsi-product-updater

Beitrag von matth46 »

Nach dem Eintragen der Zugangsdaten und dem Ausführen des Produkt-Updaters wird mit Fehlermeldung abgebrochen, scheinbar läuft er in den Timeout, da der Download des Paketes (hier openoffice) durch den Caching Proxy noch nicht abgeschlossen ist und "durchgereicht" wurde. Gibt es eine Möglichkeit, diesen Timeout zu erhöhen?

Code: Alles auswählen

opsi-product-updater -vv

Zsync command found: /usr/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
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
hwaudit_4.0.1-1.opsi - installation not required: installed version '4.0.1-2' of product 'hwaudit' is up to date
javavm_1.6.0.20-2.opsi - installation not required: installed version '1.6.0.20-2' of product 'javavm' is up to date
jedit_4.3.2-4.opsi - installation not required: installed version '4.3.2-4' of product 'jedit' is up to date
opsi-adminutils_4.0-3.opsi - installation not required: installed version '4.0-3' of product 'opsi-adminutils' is up to date
opsi-client-agent_4.0-5.opsi - installation not required: installed version '4.0-5' of product 'opsi-client-agent' 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
opsi-winst_4.10.8.6-1.opsi - installation not required: installed version '4.10.8.6-1a' of product 'opsi-winst' 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-5.opsi - installation not required: installed version '4.0-5' of product 'swaudit' is up to date
xpconfig_2.6-1.opsi - installation not required: installed version '2.6-1' of product 'xpconfig' is up to date
hwinvent_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'hwinvent' is up to date
memtest86_3.5-1.opsi - installation not required: installed version '3.5-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.3.4-1.opsi - installation not required: installed version '9.3.4-1' of product 'acroread9' is up to date
firefox_3.5.13or3.6.10-1.opsi - installation not required: installed version '3.5.13or3.6.10-1' of product 'firefox' is up to date
flashplayer_10.1.85.3-2.opsi - installation not required: installed version '10.1.85.3-2' of product 'flashplayer' is up to date
gnupg_1.4.9-1.opsi - installation not required: installed version '1.4.9-1' of product 'gnupg' is up to date
ooffice3_3.2.1-2.opsi - installation required: a more recent version of product 'ooffice3' was found (installed: 3.2.1-1, available: 3.2.1-2) and auto update is set for repository 'http://download.uib.de'
ooffice3_3.2.1-2.opsi - download of package is required: local package not found
Using Proxy: http://192.168.2.29:1180
Sending mail notification
Email successfully sent
Traceback:
     line 975 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 969 in 'main' in file '/usr/bin/opsi-product-updater'
     line 431 in 'processUpdates' in file '/usr/bin/opsi-product-updater'
     line 679 in 'downloadPackage' in file '/usr/bin/opsi-product-updater'
     line 387 in 'open' in file '/usr/lib/python2.5/urllib2.py'
     line 498 in 'http_response' in file '/usr/lib/python2.5/urllib2.py'
     line 419 in 'error' in file '/usr/lib/python2.5/urllib2.py'
     line 360 in '_call_chain' in file '/usr/lib/python2.5/urllib2.py'
     line 823 in 'http_error_401' in file '/usr/lib/python2.5/urllib2.py'
     line 801 in 'http_error_auth_reqed' in file '/usr/lib/python2.5/urllib2.py'
     line 811 in 'retry_http_basic_auth' in file '/usr/lib/python2.5/urllib2.py'
     line 381 in 'open' in file '/usr/lib/python2.5/urllib2.py'
     line 399 in '_open' in file '/usr/lib/python2.5/urllib2.py'
     line 360 in '_call_chain' in file '/usr/lib/python2.5/urllib2.py'
     line 1107 in 'http_open' in file '/usr/lib/python2.5/urllib2.py'
     line 1082 in 'do_open' in file '/usr/lib/python2.5/urllib2.py'
     ==>>> <urlopen error timed out>
ERROR: <urlopen error timed out>
Benutzeravatar
j.schneider
uib-Team
Beiträge: 1809
Registriert: 29 Mai 2008, 15:14

Re: opsi-product-updater

Beitrag von j.schneider »

Hallo,

den Timeout kann man in der /etc/opsi/opsi-product-updater.conf konfigurieren.

Code: Alles auswählen

[general]
; set defaulttimeout
timeout = 60
Gruß,
Jan Schneider
matth46
Beiträge: 172
Registriert: 22 Jun 2009, 19:48

Re: opsi-product-updater

Beitrag von matth46 »

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

Re: opsi-product-updater

Beitrag von matth46 »

Es tritt ein weiteres "Problem" auf:

Wenn der Product-Updater mit der option "-c" und Verweis auf eine andere Konfigurationsdatei aufgerufen wird, werden 2x Mails mit exakt gleichem Inhalt ("Download of 'http://localhost/packages/packagexyz_1-1.opsi' completed") an den angegebenen Empfänger versendet. Dies tritt jedoch nur auf, wenn die Pakete aufgrund der Angabe eines Zeitfensters (mittels windowStart und windowEnd) nicht installiert wurden.

Auszug aus opsi-product-updater.log:

Code: Alles auswählen

Oct 27 09:02:38 [notice] We are outside installation time window, not installing products except for product ids [] (opsi-product-updater|463)
Oct 27 09:02:38 [notice] Sending mail notification (opsi-product-updater|117)
Oct 27 09:02:39 [notice] Email successfully sent (opsi-product-updater|126)
Oct 27 09:02:39 [notice] Sending mail notification (opsi-product-updater|117)
Oct 27 09:02:39 [notice] Email successfully sent (opsi-product-updater|126)
Antworten