swaudit erzeugt Fehler
swaudit erzeugt Fehler
Hi,
wenn wir auf einige Clients swaudit laufen lassen, erhalten wir folgenden Fehler.
[5] [2021-01-31 17:38:19.628] [swaudit] Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
[5] [2021-01-31 17:38:19.628] [swaudit]
[6] [2021-01-31 17:38:19.628] [swaudit] "method": "auditSoftwareOnClient_setObsolete"
[6] [2021-01-31 17:38:19.750] [swaudit] JSON Bench for auditSoftwareOnClient_setObsolete "params":["mlr181w.ilr.ing.dom.tu-dresden.de"],"i Start: 17:38:19:628 Time: 00:00:00:122
[6] [2021-01-31 17:38:19.750] [swaudit] JSON result:
[6] [2021-01-31 17:38:19.750] [swaudit] If
[6] [2021-01-31 17:38:19.750] [swaudit] errorsOccuredSinceMark > 0 <<< result false
[6] [2021-01-31 17:38:19.750] [swaudit] Then
[6] [2021-01-31 17:38:19.751] [swaudit] EndIf
[5] [2021-01-31 17:38:19.767] [swaudit] Execution of: opsiservicecall_auditSoftware_createObjects
[5] [2021-01-31 17:38:19.767] [swaudit]
[6] [2021-01-31 17:38:19.772] [swaudit] "method": "auditSoftware_createObjects"
[3] [2021-01-31 17:39:49.901] [swaudit] HTTPSender Post failed
[3] [2021-01-31 17:39:49.901] [swaudit] HTTPSender result: 0 msg:
[6] [2021-01-31 17:39:49.901] [swaudit] Retry with communicationmode: 1
[6] [2021-01-31 17:39:51.215] [swaudit] Retry with communicationmode: 2
[3] [2021-01-31 17:41:21.351] [swaudit] HTTPSender Post failed
[3] [2021-01-31 17:41:21.351] [swaudit] HTTPSender result: 0 msg:
[3] [2021-01-31 17:41:21.351] [swaudit] Error:
[6] [2021-01-31 17:41:21.378] [swaudit] If
[6] [2021-01-31 17:41:21.378] [swaudit] errorsOccuredSinceMark > 0 <<< result true
[6] [2021-01-31 17:41:21.378] [swaudit] Then
[2] [2021-01-31 17:41:21.525] [swaudit] Error level set to fatal
[6] [2021-01-31 17:41:21.525] [swaudit] Process aborted
[1] [2021-01-31 17:41:21.525] [swaudit] ___________________
[1] [2021-01-31 17:41:21.525] [swaudit] script finished: failed
[1] [2021-01-31 17:41:21.525] [swaudit] 5 errors
[1] [2021-01-31 17:41:21.525] [swaudit] 0 warnings
[1] [2021-01-31 17:41:21.525] [swaudit]
[1] [2021-01-31 17:41:21.525] [swaudit] installed product: swaudit Version: 4.1.0.4-1
Was können wir dagegen tun?
Viele Grüße
Andreas
wenn wir auf einige Clients swaudit laufen lassen, erhalten wir folgenden Fehler.
[5] [2021-01-31 17:38:19.628] [swaudit] Execution of: opsiservicecall_auditSoftwareOnClient_setObsolete
[5] [2021-01-31 17:38:19.628] [swaudit]
[6] [2021-01-31 17:38:19.628] [swaudit] "method": "auditSoftwareOnClient_setObsolete"
[6] [2021-01-31 17:38:19.750] [swaudit] JSON Bench for auditSoftwareOnClient_setObsolete "params":["mlr181w.ilr.ing.dom.tu-dresden.de"],"i Start: 17:38:19:628 Time: 00:00:00:122
[6] [2021-01-31 17:38:19.750] [swaudit] JSON result:
[6] [2021-01-31 17:38:19.750] [swaudit] If
[6] [2021-01-31 17:38:19.750] [swaudit] errorsOccuredSinceMark > 0 <<< result false
[6] [2021-01-31 17:38:19.750] [swaudit] Then
[6] [2021-01-31 17:38:19.751] [swaudit] EndIf
[5] [2021-01-31 17:38:19.767] [swaudit] Execution of: opsiservicecall_auditSoftware_createObjects
[5] [2021-01-31 17:38:19.767] [swaudit]
[6] [2021-01-31 17:38:19.772] [swaudit] "method": "auditSoftware_createObjects"
[3] [2021-01-31 17:39:49.901] [swaudit] HTTPSender Post failed
[3] [2021-01-31 17:39:49.901] [swaudit] HTTPSender result: 0 msg:
[6] [2021-01-31 17:39:49.901] [swaudit] Retry with communicationmode: 1
[6] [2021-01-31 17:39:51.215] [swaudit] Retry with communicationmode: 2
[3] [2021-01-31 17:41:21.351] [swaudit] HTTPSender Post failed
[3] [2021-01-31 17:41:21.351] [swaudit] HTTPSender result: 0 msg:
[3] [2021-01-31 17:41:21.351] [swaudit] Error:
[6] [2021-01-31 17:41:21.378] [swaudit] If
[6] [2021-01-31 17:41:21.378] [swaudit] errorsOccuredSinceMark > 0 <<< result true
[6] [2021-01-31 17:41:21.378] [swaudit] Then
[2] [2021-01-31 17:41:21.525] [swaudit] Error level set to fatal
[6] [2021-01-31 17:41:21.525] [swaudit] Process aborted
[1] [2021-01-31 17:41:21.525] [swaudit] ___________________
[1] [2021-01-31 17:41:21.525] [swaudit] script finished: failed
[1] [2021-01-31 17:41:21.525] [swaudit] 5 errors
[1] [2021-01-31 17:41:21.525] [swaudit] 0 warnings
[1] [2021-01-31 17:41:21.525] [swaudit]
[1] [2021-01-31 17:41:21.525] [swaudit] installed product: swaudit Version: 4.1.0.4-1
Was können wir dagegen tun?
Viele Grüße
Andreas
Re: swaudit erzeugt Fehler
Moin Andreas,
wie löst ihr denn das Event aus? Ist das ein "on_demand" oder beim Rechner Start?
Scheinbar gibt es ein Problem in der Kommunikation vom Client zum OPSI-Server...
Beste Grüße
Thomas
wie löst ihr denn das Event aus? Ist das ein "on_demand" oder beim Rechner Start?
Scheinbar gibt es ein Problem in der Kommunikation vom Client zum OPSI-Server...
Beste Grüße
Thomas
Kein Support per DM!
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.
Re: swaudit erzeugt Fehler
In diesem speziellen Falle war es on Demand. Es ist aber auch schon beim Rechnerstart aufgetreten.
Viele Grüße
Andreas
Viele Grüße
Andreas
Re: swaudit erzeugt Fehler
Ist das für den Client reproduzierbar oder tritt das sporadisch auf?
Was sagt
Wie sieht die aus?
Gruss
Bardo Wolf
Was sagt
Code: Alles auswählen
opsi-package-manager -l opsi-winst
Code: Alles auswählen
/etc/opsi/backendManager/dispatch.conf
Gruss
Bardo Wolf
OPSICONF 2024
https://opsi.org/en/opsiconf/
Basisworkshop Mainz :
17. - 20. 06. 2024
opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.
http://www.uib.de
Re: swaudit erzeugt Fehler
Das ist für die Clients reproduzierbar.
Hier die beiden Infos vom OPSI-Server.
Hier die beiden Infos vom OPSI-Server.
Code: Alles auswählen
opsi-package-manager -l opsi-winst
--------------------------------------
- ilropsi.ilrw.ing.dom.tu-dresden.de -
--------------------------------------
Product ID Version Name
====================================================================================================================================================================================================================================
opsi-winst 4.12.4.12-1 winst
Code: Alles auswählen
more /etc/opsi/backendManager/dispatch.conf
# -*- coding: utf-8 -*-
# = = = = = = = = = = = = = = = = = = = = = = =
# = backend dispatch configuration =
# = = = = = = = = = = = = = = = = = = = = = = =
#
# This file configures which methods are dispatched to which backends.
# Entries has to follow the form:
# <regular expression to match method name(s)> : <comma separated list of backend name(s)>
#
# Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends.
# For every method executed on backend dispatcher the first matching regular expression will be decisive.
#
# Typical configurations:
# file, opsipxeconfd and dhcpd backend:
# backend_.* : file, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# .* : file
#
# jsonrpc, opsipxeconfd and dhcpd backend:
# backend_.* : jsonrpc, opsipxeconfd, dhcpd
# .* : jsonrpc
#
# file as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend:
# backend_.* : file, mysql, opsipxeconfd, dhcpd
# host_.* : file, opsipxeconfd, dhcpd
# productOnClient_.* : file, opsipxeconfd
# configState_.* : file, opsipxeconfd
# license.* : mysql
# softwareLicense.* : mysql
# audit.* : mysql
# .* : file
#
backend_.* : file, opsipxeconfd
host_.* : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
.* : file
- SisterOfMercy
- Beiträge: 1523
- Registriert: 22 Jun 2012, 19:18
Re: swaudit erzeugt Fehler
I think your backend configuration is incorrect. Install mysql or mariadb in a recent version (follow the getting started manual, there is some mention of the strict mode for older versions).AndiMb83 hat geschrieben:Code: Alles auswählen
more /etc/opsi/backendManager/dispatch.conf # -*- coding: utf-8 -*- # = = = = = = = = = = = = = = = = = = = = = = = # = backend dispatch configuration = # = = = = = = = = = = = = = = = = = = = = = = = # # This file configures which methods are dispatched to which backends. # Entries has to follow the form: # <regular expression to match method name(s)> : <comma separated list of backend name(s)> # # Backend names have to match a backend configuraton file basename <backend name>.conf beneath /etc/opsi/backends. # For every method executed on backend dispatcher the first matching regular expression will be decisive. # # Typical configurations: # file, opsipxeconfd and dhcpd backend: # backend_.* : file, opsipxeconfd, dhcpd # host_.* : file, opsipxeconfd, dhcpd # productOnClient_.* : file, opsipxeconfd # configState_.* : file, opsipxeconfd # .* : file # # jsonrpc, opsipxeconfd and dhcpd backend: # backend_.* : jsonrpc, opsipxeconfd, dhcpd # .* : jsonrpc # # file as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd and dhcpd backend: # backend_.* : file, mysql, opsipxeconfd, dhcpd # host_.* : file, opsipxeconfd, dhcpd # productOnClient_.* : file, opsipxeconfd # configState_.* : file, opsipxeconfd # license.* : mysql # softwareLicense.* : mysql # audit.* : mysql # .* : file # backend_.* : file, opsipxeconfd host_.* : file, opsipxeconfd productOnClient_.* : file, opsipxeconfd configState_.* : file, opsipxeconfd .* : file
There is no backend for audit data, so that won't work.
This will also work when you have no mysql module activated:
Code: Alles auswählen
backend_.* : file, opsipxeconfd
host_.* : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
license.* : mysql
softwareLicense.* : mysql
audit.* : mysql
.* : file
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: swaudit erzeugt Fehler
Hallo,
super, vielen lieben Dank! Das war das Problem. So richtig kann ich mir die Ursache aber nicht erklären.
Viele Grüße
Andreas
super, vielen lieben Dank! Das war das Problem. So richtig kann ich mir die Ursache aber nicht erklären.
Viele Grüße
Andreas