swaudit funktioniert nach update nicht mehr

Antworten
sboehr
Beiträge: 12
Registriert: 07 Feb 2022, 13:33

swaudit funktioniert nach update nicht mehr

Beitrag von sboehr »

Wir haben uns mal dazu entschieden, dass wir auf OPSI Version 4.1, auf einem Debian Stretch , updaten.
Das hat im Grunde genommen auch alles gut funktioniert, sind auch brav der Anleitung gefolgt.

Nach diesem Update funktioniert jedoch das swaudit auf keinem Rechner mehr in unserem Netz. Hwaudit hingegen funktioniert immer noch.

Unsere Versionen:
swaudit 4.2.0.0-1
opsi-script 4.12.4.27-1
opsi-configed 4.1.9.11.1-1


Unsere Dispatch.conf schaut so aus:

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
.*                 : file
Wir haben nämlich noch kein MySQL-Backend, weshalb unsere Audits auch sonst immer in /var/lib/opsi/config/audit landeten.
In dem Ordner landen auch unsere Hardware Audits.

Als Fehlermeldung bei den swaudits gibt es folgende:

In der Opsiconfd:

Code: Alles auswählen

(1889)    [2] [Feb 07 13:02:26]      ==>>> 'utf8' codec can't decode byte 0x9c in position 1: invalid start byte (workers.py|491)
(1890)    [2] [Feb 07 13:02:26] Traceback: (Logger.py|798)
(1891)    [2] [Feb 07 13:02:26]   File "/usr/lib/python2.7/dist-packages/OPSI/Service/Worker.py", line 289, in _errback
(1892)        failure.raiseException()
(1893)     (Logger.py|798)
(1894)    [2] [Feb 07 13:02:26]   File "<string>", line 2, in raiseException
(1895)     (Logger.py|798)
(1896)    [2] [Feb 07 13:02:26]      ==>>> Opsi bad rpc error: Failed to decode rpc: No JSON object could be decoded (Worker.py|295)
instlog:

Code: Alles auswählen

(0)       
(1)       [1] [2022-02-07 13:00:48.195] [] --
(2)       [1] [2022-02-07 13:00:48.195] [] --
(3)       [1] [2022-02-07 13:00:48.195] [] c:\opsi.org\log\\opsi-script-part-7k8a1PdFA3.log
(4)       [1] [2022-02-07 13:00:48.196] [] opsi-script 4.12.4.27 started at >>
(5)       [1] [2022-02-07 13:00:48.196] [] opsi-script log file with encoding utf8
(6)       [1] [2022-02-07 13:00:48.196] [] ssl library path: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
(7)       [1] [2022-02-07 13:00:48.196] [] ssl library path: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\libeay32.dll
(8)       [1] [2022-02-07 13:00:48.196] [] Load library: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\libeay32.dll
(9)       [1] [2022-02-07 13:00:48.197] [] Load library: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\ssleay32.dll
(10)      [1] [2022-02-07 13:00:48.197] [] startmessage opsi-script created at CentralForm.FormCreate: 07.02.2022 13:00:47
(11)      [1] [2022-02-07 13:00:48.197] [] Detected Language is:de
(12)      [1] [2022-02-07 13:00:48.197] [] Loading skin from: C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\skin
(13)      [1] [2022-02-07 13:00:48.197] [] Called with parameter: /opsiservice\r\nhttps://x.x.x.x/rpc\r\n/clientid\r\xxxx\r\n/username\r\xxxx\r\n/password\r\n***(confidential)***
(14)      [1] [2022-02-07 13:00:48.197] [] Depot path from readconfig:  p:\ 07.02.2022 13:00:47
(15)      [1] [2022-02-07 13:00:48.197] [] startmessage StartProgramModes and create log: 07.02.2022 13:00:47
(16)      [1] [2022-02-07 13:00:48.197] [] Compiled with FPC: 3.2.2 for: Win32-i386
(17)      [1] [2022-02-07 13:00:48.197] [] pm: 5 07.02.2022 13:00:47
(18)      [1] [2022-02-07 13:00:48.197] [] startmessage start opsi service connection: 07.02.2022 13:00:47
(19)      [1] [2022-02-07 13:00:48.197] [] startmessage: opsidata initialized: 07.02.2022 13:00:47
(20)      [1] [2022-02-07 13:00:48.197] [] xxxx
(21)      [1] [2022-02-07 13:00:48.197] [] Starting Servicecall: backend_info
(22)      [1] [2022-02-07 13:00:48.197] [] Success Servicecall: backend_info
(23)      [1] [2022-02-07 13:00:48.197] [] got AutoActivityDisplay: true
(24)      [1] [2022-02-07 13:00:48.197] [] got debug_lib: false
(25)      [1] [2022-02-07 13:00:48.197] [] got debug_prog: false
(26)      [1] [2022-02-07 13:00:48.197] [] got default_loglevel: 7
(27)      [1] [2022-02-07 13:00:48.197] [] got config: opsi-script.global.force_min_loglevel
(28)      [1] [2022-02-07 13:00:48.197] [] got force_min_loglevel: 0
(29)      [1] [2022-02-07 13:00:48.197] [] got ReverseProductOrderByUninstall: false
(30)      [1] [2022-02-07 13:00:48.197] [] got ScriptErrorMessages: false
(31)      [1] [2022-02-07 13:00:48.197] [] got supressSystemEncodingWarning: false
(32)      [1] [2022-02-07 13:00:48.197] [] got w10BitlockerSuspendOnReboot: false
(33)      [1] [2022-02-07 13:00:48.197] [] readConfigFromService: ok
(34)      [1] [2022-02-07 13:00:48.197] [] startmessage create log: 07.02.2022 13:00:48
(35)      [1] [2022-02-07 13:00:48.197] [] Cleanup old part files at 07.02.2022 13:00:48
(36)      [1] [2022-02-07 13:00:48.197] [] Backup old log files at 07.02.2022 13:00:48
(37)      [1] [2022-02-07 13:00:48.197] [] Initiate new log file at 07.02.2022 13:00:48
(38)      [1] [2022-02-07 13:00:48.197] [] force_min_loglevel: 0
(39)      [1] [2022-02-07 13:00:48.197] [] default_loglevel: 7
(40)      [1] [2022-02-07 13:00:48.197] [] debug_prog: false
(41)      [1] [2022-02-07 13:00:48.197] [] debug_lib: false
(51)      [1] [2022-02-07 13:00:48.674] [] Computername:xxxx
(52)      [1] [2022-02-07 13:00:48.674] [] Computername according to Environment Variable :xxxx
(53)      [1] [2022-02-07 13:00:48.674] [] opsi service URL https://x.x.x.x
(81)      [1] [2022-02-07 13:00:49.134] [swaudit] 
(82)      [1] [2022-02-07 13:00:49.134] [swaudit] ============ Version 4.12.4.27 script "p:\swaudit\swaudit.opsiscript"
(83)      [1] [2022-02-07 13:00:49.134] [swaudit]              used script encoding: utf8
(84)      [1] [2022-02-07 13:00:49.134] [swaudit]              used system encoding: cp1252
(85)      [1] [2022-02-07 13:00:49.134] [swaudit]              start: 2022-02-07  13:00:49
(86)      [1] [2022-02-07 13:00:49.134] [swaudit]              installing product: swaudit_4.2.0.0-1
(87)      [1] [2022-02-07 13:00:49.134] [swaudit]              on client named    "xxxx"
(88)      [1] [2022-02-07 13:00:49.134] [swaudit]              loggedin user    ""
(89)      [1] [2022-02-07 13:00:49.137] [swaudit]              opsi-script running as    "SYSTEM"
(90)      [1] [2022-02-07 13:00:49.137] [swaudit]              opsi-script running with admin privileges
(91)      [1] [2022-02-07 13:00:49.138] [swaudit]              opsi-script running in standard script mode
(92)      [1] [2022-02-07 13:00:49.138] [swaudit] executing: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsi-winst\winst32.exe"
(93)      [1] [2022-02-07 13:00:49.138] [swaudit] system infos:
(94)      [1] [2022-02-07 13:00:49.144] [swaudit] xxxx  -  PC hardware address
(95)      [1] [2022-02-07 13:00:49.144] [swaudit] xxxx  -  IP name
(96)      [1] [2022-02-07 13:00:49.144] [swaudit] x.x.x.x  -  IP address
(97)      [1] [2022-02-07 13:00:49.144] [swaudit] DEU  -  System default locale
(103)     [1] [2022-02-07 13:00:49.145] [swaudit] MS Windows 10.0 64 Bit, Release: 2009, Edition: PRODUCT_PROFESSIONAL
(104)     [1] [2022-02-07 13:00:49.145] [swaudit] opsi service version : 4
(105)     [1] [2022-02-07 13:00:49.145] [swaudit] 
(223)     [3] [2022-02-07 13:02:26.856] [swaudit]       HTTPSender Post failed
(224)     [3] [2022-02-07 13:02:26.856] [swaudit]       HTTPSender result: 0 msg:
(225)     [3] [2022-02-07 13:03:56.935] [swaudit]       HTTPSender Post failed
(226)     [3] [2022-02-07 13:03:56.935] [swaudit]       HTTPSender result: 0 msg:
(227)     [3] [2022-02-07 13:03:56.935] [swaudit]       Error:
(228)     [2] [2022-02-07 13:03:56.960] [swaudit]       Error level set to fatal
(229)     [1] [2022-02-07 13:03:56.961] [swaudit] ___________________
(230)     [1] [2022-02-07 13:03:56.961] [swaudit] script finished: failed
(231)     [1] [2022-02-07 13:03:56.961] [swaudit] 5 errors
(232)     [1] [2022-02-07 13:03:56.961] [swaudit] 0 warnings
(233)     [1] [2022-02-07 13:03:56.961] [swaudit] 
(234)     [1] [2022-02-07 13:03:56.961] [swaudit] installed product: swaudit Version: 4.2.0.0-1
(235)     [1] [2022-02-07 13:03:56.961] [swaudit] 
Falls ihr noch mehr Informationen braucht, werde die natürlich nachliefern.

Uns ist bewusst, dass das File Backend für die Inventurdaten keine performante Lösung ist...
Benutzeravatar
ThomasT
uib-Team
Beiträge: 565
Registriert: 26 Jun 2013, 12:26

Re: swaudit funktioniert nach update nicht mehr

Beitrag von ThomasT »

Moin,

hmm ihr braucht auch kein mysql-Backend ( also das Kauf-Modul ) für die audit-Daten.
Bei ner VM würde ich mal nen Snapshot erstellen und mir ne mysql DB drauf installieren, dann opsi-setup --auto-configure-mysql und eventuell die dispatch.conf auf

Code: Alles auswählen

#    file as main backend, mysql as hw/sw invent and license management backend, opsipxeconfd backend:
       backend_.*         : file, mysql, opsipxeconfd
       host_.*            : file, opsipxeconfd
       productOnClient_.* : file, opsipxeconfd
       configState_.*     : file, opsipxeconfd
       license.*          : mysql
       softwareLicense.*  : mysql
       audit.*            : mysql
       .*                 : file
anpassen, wenn ihr kein dhcpd-Backend nutzt. Ansonsten entsprechend adaptieren.
Ich persönlich würde auf die Konvertierung der Audit-Daten verzichten und lieber neu erfassen...


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


sboehr
Beiträge: 12
Registriert: 07 Feb 2022, 13:33

Re: swaudit funktioniert nach update nicht mehr

Beitrag von sboehr »

Vielen Dank!
Hat sehr gut funktioniert mit dem SQL Backend.

Wir bekommen jetzt nur folgende Fehlermeldung, wenn wir unseren Client Agent als Setup beim Config Editor für die Clients reinsetzen:

line 990 in '<module>' in file 'notifier.py'
line 480 in 'CreateWindow' in file 'notifier.py'
line 408 in '_getDialogTemplate' in file 'notifier.py'
ERROR: (0, 'LoadImage', 'No error message is available')


Der Client Agent läuft zwar auch durch und installiert sich auch, jedoch gibt es ständig diese Fehlermeldung, die man mit einem OK wegklicken kann.
Zumeist in C:\Program Files (x86)\opsi.org\opsi-client-agent\notifier die event.bmp und andere .bmp Dateien existieren!

Was kann man da noch machen?

EDIT:

Ich habe gerade noch mal nachgeschaut. Bei uns befinden sich die Dateien auf unserem Server in folgenden Pfaden
root@opsi:/var/lib/opsi/depot/opsi-client-agent/files/opsi/opsi-notifier/notifier.d#

Dieser Pfad wie im Handbuch angegeben existiert gar nicht
/var/lib/opsi/depot/opsi-client-agent/files/opsi/dist/notifier
Benutzeravatar
ThomasT
uib-Team
Beiträge: 565
Registriert: 26 Jun 2013, 12:26

Re: swaudit funktioniert nach update nicht mehr

Beitrag von ThomasT »

Welche Version vom Opsi-Client-Agent läuft denn? Die opsi-script hast du ja schon angegeben.


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


sboehr
Beiträge: 12
Registriert: 07 Feb 2022, 13:33

Re: swaudit funktioniert nach update nicht mehr

Beitrag von sboehr »

ThomasT hat geschrieben: 14 Feb 2022, 15:32 Welche Version vom Opsi-Client-Agent läuft denn? Die opsi-script hast du ja schon angegeben.
Momentan läuft bei uns 4.1.1.49-1
Antworten