Seite 1 von 2

[gelöst] opsi-product-updater Failed to get peer cert...

Verfasst: 01 Aug 2014, 12:52
von Vinc
Moin,

mir ist aufgefallen das mein Depotserver vom Configserver keine Pakete mehr bekommt. Die Installation über opsi-package-manager -i -d funktioniert ohen Probleme doch der opsi-product-updater funktioniert einfach nicht mehr. ICh habe bereits einige Einträge zu dem Fehler Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' gelesen, aber konnte keine Lösung aus den Einträgen ziehen. Kennt jemand diesen Fehler? Die opsi-product-updater.conf hat sich nicht verändert und es wurden auch keine großartigen updates gemacht. Das Depot habe ich bereits neuinstalliert (vorher debian 6 nun debian 7.5)
Found opsi package: https://opsi.my.loc:4447/repository/ops ... .11-1.opsi
Executing jsonrpc method 'getMD5Sum' on host opsi.stute.loc
Starting new HTTPS connection (0) to opsi.stute.loc:4447
Connection established to: opsi.my.loc
Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert'
Closing connection: <httplib.HTTPSConnection instance at 0x2fab0e0>
Content-Type: application/json;charset=utf-8, Content-Encoding:
Repository package info: {'repository': <__main__.ProductRepositoryInfo object at 0x2ca92d0>, 'md5sum': u'ccb53a446ca9db011cb95ec6b3afdb62', 'filename': 'opsi-winst_4.11.3.11-1.opsi', 'zsyncFile': None, 'version': '4.11.3.11-1', 'packageFile': 'https://opsi.my.loc:4447/repository/ops ... .11-1.opsi', 'productId': 'opsi-winst'}

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 01 Aug 2014, 15:32
von koepkek
Moin

Wurde das Depot nach dem neu installieren beim Config-Server neu registriert?

opsi-setup --register-depot

Gruß Karsten Köpke

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 04 Aug 2014, 09:36
von n.wenselowski
Hallo,

wenn die Meldung Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' ist, dann muss das kein Fehler sein - die Meldung findet man ziemlich oft in Logs.

Wie sieht die opsi-product-updater-Config des Depotservers aus?


Gruß

Niko

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 04 Aug 2014, 15:13
von Vinc
Ja das Depot wurde neuregistriert. Mittlerweile sogar mehrfach, ein rücksetzen der Pakete ebenfalls.
Die opsi-product-updater conf habe ich nicht verändert. Also vom tage als es noch lief bis heute.

Beim ausführen von opsi-rpdouct-updater -vvvv sieht man ebenfalls das angeblich alle Pakete korrekt auf dem Depot installiert sind doch im depot sind keine entpackten Pakete. Das repository ist allerdings mittlerweile ganz gut gefüllt.
Aug 02 22:07:46 [notice] opt-kn-centra_7.6.2.435-20.opsi - installation required: product 'opt-kn-centra' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 02 22:07:46 [notice] opt-kn-centra_7.6.2.435-20.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 02 22:07:47 [notice] Downloading https://opsi.my.loc:4447/repository/opt ... 35-20.opsi (23.23 MB) to /var/lib/opsi/repository/opt-kn-centra_7.6.2.435-20.opsi (opsi-product-updater|754)
Aug 02 22:09:00 [notice] Download of 'https://opsi.my.loc:4447/repository/opt ... 35-20.opsi' completed (opsi-product-updater|790)
[general]
; Where to store package files
packageDir = /var/lib/opsi/repository
; Location of log file
logFile = /var/log/opsi/opsi-product-updater.log
; Log level 0...9
logLevel = 5
; set defaulttimeout
timeout = 60
; path to temp directory for package installation
tempdir = /tmp

[notification]
; Activate/deactivate eMail notification
active = false
; SMTP server address
smtphost = smtp
; SMTP server port
smtpport = 25
; Sender eMail address
sender = opsi-product-updater@localhost
; Comma separated list of receivers
receivers = root@localhost

[installation]
; If window start AND end are set, installation of the newly downloaded packages
; will only be done if the time when all downloads are completed is inside the time window
; Times have to be speciefied in the form HH:MM, i.e. 06:30
windowStart =
windowEnd =
; Comma separated list of product ids which will be installed even outside the time window
exceptProductIds =

[wol]
; If active is set to true, wake on lan will be sent to clients which need to perform actions
active = false
; Comma separated list of product ids which will not trigger wake on lan
excludeProductIds =
; Shutdown clients after installation?
; Before you set this to true please asure that the product shutdownwanted is installed on the depot
shutdownWanted = true
; Gap in seconds between wake ups
startGap = 10

[repository_uib]
; Activate/deactivate the repository
active = false
; If the repository is an opsi depot, opsiDepotId should be set
; In that case it is not required (but allowed) to set baseUrl, dirs, username and password
opsiDepotId =
; The base url of a product package repository
baseUrl = http://download.uib.de
; Comma separated directories to include in search for product packages
; Use / if search should be done in baseUrl
dirs = opsi4.0/products/localboot, opsi4.0/products/netboot
; Comma separated list of regular expressions
; If a product package file matches one of these regular expressions it will not be downloaded
excludes = ^win.*
; Username for connection to repository
username =
; Password for connection to repository
password =
; AutoInstall will be checked if a product package is found on the repository
; and the product is not yet installed on the local depot
autoInstall = false
; AutoUpdate will be checked if a product is already installed on the local depot
; and a more recent product version is found in the repository
autoUpdate = true
; If autoSetup is set to true, the action request "setup" will be set for every updated product
; on all clients of the local depot where the installation status of the product is "installed"
autoSetup = false
; Set True if you want only Download packages without installation
onlyDownload = false
; Set Proxy handler like: http://10.10.10.1:8080
proxy =

[repository_master]
active = true
opsiDepotId = opsi.my.loc
autoInstall = true
autoUpdate = true
autoSetup = false

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 04 Aug 2014, 16:32
von n.wenselowski
Hallo,
Vinc hat geschrieben:
Aug 02 22:07:46 [notice] opt-kn-centra_7.6.2.435-20.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 02 22:07:47 [notice] Downloading https://opsi.my.loc:4447/repository/opt ... 35-20.opsi (23.23 MB) to /var/lib/opsi/repository/opt-kn-centra_7.6.2.435-20.opsi (opsi-product-updater|754)
Aug 02 22:09:00 [notice] Download of 'https://opsi.my.loc:4447/repository/opt ... 35-20.opsi' completed (opsi-product-updater|790)
Da fehlen definitiv Pakete, die er dann runterlädt. Später im Log sollte er versuchen sie zu installieren - und beim Fehlschlag eine entsprechende Meldung anzeigen.


Gruß

Niko

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 05 Aug 2014, 09:34
von Vinc
Ja wie gesagt das /var/lib/opsi/repository ist gut gefüllt aber es geht einfach nicht weiter. Die Pakete werden nicht installiert auf dem Server. Mit der manuellen übertragung opsi-package-manager -i -d all gibt es keine probleme.

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 05 Aug 2014, 10:04
von n.wenselowski
Hallo,

bitte mal mehr als nur den Logausschnitt posten.
Danke.


Gruß

Niko

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 05 Aug 2014, 12:07
von Vinc
Da stehen nicht mehr infos drinne. Das ganze wiederholt sich ewig.
Aug 03 16:10:32 [notice] def-vlc_2.0.1-1.opsi - installation required: product 'def-vlc' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 03 16:10:32 [notice] def-vlc_2.0.1-1.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 03 16:10:33 [notice] Downloading https://opsi.my.loc:4447/repository/def ... 0.1-1.opsi (21.21 MB) to /var/lib/opsi/repository/def-vlc_2.0.1-1.opsi (opsi-product-updater|754)
Aug 03 16:11:40 [notice] Download of 'https://opsi.my.loc:4447/repository/def ... 0.1-1.opsi' completed (opsi-product-updater|790)
Aug 03 16:11:42 [notice] opt-tools-crystal-disk-info_4.0.3-2.opsi - installation required: product 'opt-tools-crystal-disk-info' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 03 16:11:42 [notice] opt-tools-crystal-disk-info_4.0.3-2.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 03 16:11:42 [notice] Downloading https://opsi.my.loc:4447/repository/opt ... 0.3-2.opsi (1.09 MB) to /var/lib/opsi/repository/opt-tools-crystal-disk-info_4.0.3-2.opsi (opsi-product-updater|754)
Aug 03 16:11:46 [notice] Download of 'https://opsi.my.loc:4447/repository/opt ... 0.3-2.opsi' completed (opsi-product-updater|790)
Aug 03 16:12:02 [notice] template-grundinstall-pc_1.0-1.opsi - installation required: product 'template-grundinstall-pc' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 03 16:12:02 [notice] template-grundinstall-pc_1.0-1.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 03 16:12:03 [notice] Downloading https://opsi.my.loc:4447/repository/tem ... 1.0-1.opsi (0.0 MB) to /var/lib/opsi/repository/template-grundinstall-pc_1.0-1.opsi (opsi-product-updater|754)
Aug 03 16:12:03 [notice] Download of 'https://opsi.my.loc:4447/repository/tem ... 1.0-1.opsi' completed (opsi-product-updater|790)
Aug 03 16:12:03 [notice] def-ibm-notes-9.0.1_9.0.1-1.opsi - installation required: product 'def-ibm-notes-9.0.1' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 03 16:12:03 [notice] def-ibm-notes-9.0.1_9.0.1-1.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 03 16:12:04 [notice] Downloading https://opsi.my.loc:4447/repository/def ... 0.1-1.opsi (653.22 MB) to /var/lib/opsi/repository/def-ibm-notes-9.0.1_9.0.1-1.opsi (opsi-product-updater|754)
Aug 03 16:46:38 [notice] Download of 'https://opsi.my.loc:4447/repository/def ... 0.1-1.opsi' completed (opsi-product-updater|790)
Aug 03 16:46:52 [notice] nl-hb-mwz-sapgui-7.2_7.20-2.opsi - installation required: product 'nl-hb-mwz-sapgui-7.2' is not installed and auto install is set for repository 'https://opsi.my.loc:4447/repository' (opsi-product-updater|421)
Aug 03 16:46:52 [notice] nl-hb-mwz-sapgui-7.2_7.20-2.opsi - download of package is required: local package not found (opsi-product-updater|458)
Aug 03 16:46:53 [notice] Downloading https://opsi.my.loc:4447/repository/nl- ... .20-2.opsi (214.35 MB) to /var/lib/opsi/repository/nl-hb-mwz-sapgui-7.2_7.20-2.opsi (opsi-product-updater|754)
Aug 03 16:57:39 [notice] Sending mail notification (opsi-product-updater|138)
Aug 03 16:58:39 [critical] Traceback: (Logger.py|754)
Aug 03 16:58:39 [critical] line 1093 in '<module>' in file '/usr/bin/opsi-product-updater' (Logger.py|754)
Aug 03 16:58:39 [critical] line 1087 in 'main' in file '/usr/bin/opsi-product-updater' (Logger.py|754)
Aug 03 16:58:39 [critical] line 674 in 'processUpdates' in file '/usr/bin/opsi-product-updater' (Logger.py|754)
Aug 03 16:58:39 [critical] line 152 in 'notify' in file '/usr/bin/opsi-product-updater' (Logger.py|754)
Aug 03 16:58:39 [critical] ==>>> Failed to send email using smtp server 'mail.my.loc': timed out (opsi-product-updater|1101)

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 05 Aug 2014, 13:15
von n.wenselowski
Hallo,

der Traceback zeigt doch schon mal einen Fehler, den ich aus dem Weg schaffen würde.

Wenn das Log zu wenig Infos hat, dann mal den Log-Level hochstellen - auf 6 oder 7.


Gruß

Niko

Re: opsi-product-updater Failed to get peer cert...

Verfasst: 06 Aug 2014, 17:47
von Vinc
hab das Log mal auf Maximum gestellt.
Wie löse ich das Traceback Problem?