Problem mit swaudit

volkera
Beiträge: 16
Registriert: 02 Sep 2016, 15:02

Problem mit swaudit

Beitrag von volkera »

Hallo,

seit ein paar Tagen habe ich auf einigen Rechnern (nicht auf allen) ein Problem mit dem Paket swaudit.
Die Installation läuft durch, anscheinend ohne Fehler auf dem Client, wird aber als FAILED im Config Editor angezeigt.

Ende vom INSTALL-LOG:

Code: Alles auswählen

(14697)   [5] [Sep 02 14:57:48:390] [swaudit]   Execution of OpsiServiceHashList_auditSoftware_createObjects
(14698)   [3] [Sep 02 14:57:50:703] [swaudit]     Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
(14699)   [3] [Sep 02 14:57:50:703] [swaudit]     Exception in CreateAndProcessScript: Handling AktionslisteList index (0) out of bounds
(14700)   [1] [Sep 02 14:57:50:703] [swaudit] ___________________
(14701)   [1] [Sep 02 14:57:50:703] [swaudit] script finished
(14702)   [1] [Sep 02 14:57:50:718] [swaudit] 0 errors
(14703)   [1] [Sep 02 14:57:50:718] [swaudit] 2323 warnings
(14704)   [1] [Sep 02 14:57:50:718] [swaudit] 
(14705)   [1] [Sep 02 14:57:50:718] [swaudit] installed product: swaudit Version: 4.0.6-2
(14706)   [1] [Sep 02 14:57:50:718] [swaudit] 
(14707)   [5] [Sep 02 14:57:50:718] [swaudit] We do not look for a update script, because the setup script is failed
(14708)   [5] [Sep 02 14:57:51:218] -------- submitted part of log file ends here, see the rest of log file on client ----------
Fehler im OPSICONFD-LOG:

Code: Alles auswählen

(3995)    [2] [Sep 02 14:50:08] Traceback: (Logger.py|753)
(3996)    [2] [Sep 02 14:50:08]   File "/usr/lib/python2.7/dist-packages/OPSI/Service/Worker.py", line 292, in _errback
(3997)        failure.raiseException()
(3998)     (Logger.py|753)
(3999)    [2] [Sep 02 14:50:08]   File "<string>", line 2, in raiseException
(4000)     (Logger.py|753)
(4001)    [2] [Sep 02 14:50:08]      ==>>> Opsi bad rpc error: Failed to decode rpc: Invalid control character at: line 1 column 46063 (char 46062) (Worker.py|298)
(4002)    [2] [Sep 02 14:50:08] Traceback: (Logger.py|753)
(4003)    [2] [Sep 02 14:50:08]   File "/usr/lib/python2.7/dist-packages/OPSI/Service/Worker.py", line 292, in _errback
(4004)        failure.raiseException()
(4005)     (Logger.py|753)
(4006)    [2] [Sep 02 14:50:08]   File "<string>", line 2, in raiseException
(4007)     (Logger.py|753)
(4008)    [2] [Sep 02 14:50:08]      ==>>> Opsi bad rpc error: Failed to decode rpc: Invalid control character at: line 1 column 46063 (char 46062) (Worker.py|298)
dpkg -l |grep opsi

Code: Alles auswählen

ii  opsi-atftpd                      0.7.dfsg-6                     amd64      advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                   4.0.7.1.3-1                   all            OPSI config editor
ii  opsi-depotserver             4.0.6.7-2                       all            opsi depotserver configuration package
ii  opsi-linux-bootimage       20160706-1                   amd64      opsi bootimage for netboot tasks.
ii  opsi-utils                         4.0.7.5-1                      all            utilites for working with opsi.
ii  opsiconfd                         4.0.7.4-1                     all            opsi configuration service
ii  opsipxeconfd                    4.0.7.1-1                     all            opsi pxe configuration daemon
ii  python-opsi                      4.0.7.17-1                    all           opsi python library
Da wir an einem weiteren Standort wegen der schlechten Netzanbindung einen weiteren OPSI-Server betreiben, kann ich noch sagen, dass dort das Problem auch auftritt.

Über eine kleine Hilfe was ich noch testen oder tun kann bin ich sehr dankbar.

Vielen Dank
Alfred
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3319
Registriert: 04 Jun 2008, 14:27

Re: Problem mit swaudit

Beitrag von d.oertel »

Hi,

für die bei denen laut Log das folgende Problem auftritt:

Code: Alles auswählen

Execution of OpsiServiceHashList_auditSoftware_createObjects
Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error
bitte mal prüfen ob das Problem auch auftritt wenn das Property
usekeyfinder
auf 'off' steht.

Wenn das hilft hätte ich folgende Bitte:
nochmal einen Lauf mit:
usekeyfinder=on
usefilebuffer=on
und dann bitte die folgenden Dateien an mich (d.oertel_at_uib.de) als zip:
c:\opsi.org\tmp\auditsoftware_%PCName%.txt
c:\opsi.org\tmp\auditsoftwareOnClient_%PCName%.txt
c:\opsi.org\log\opsi-script.log

Danke schon mal

-------------------------------------------

Für die bei denen folgendes Problem auftritt:

Code: Alles auswählen

Execution of opsiservicecall_auditSoftwareOnClient_setObsolete
Error: retrieveJSONObject --- opsi service problem ----> {"message":"Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid","class":"OpsiRpcError"}
bitte mal die
/etc/opsi/backendManager/dispatch.conf
prüfen.
Wir empfehlen dringend die Inventarisierung in das mysql-Backend laufen zu lassen (dafür muss es nicht gekauft werden).
Wenn die dispatch.conf wie folgt aus sieht ist das schlecht:

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
.*                 : file
In diesem Fall mitte anpassen gemäß:
http://download.uib.de/opsi_stable/doc/ ... ig-backend

Hilft das ?

gruss
detlef oertel
opsi support - uib gmbh

For productive opsi installations we recommend support contracts.
http://www.uib.de
http://www.opsi.org
RMuenz
Beiträge: 43
Registriert: 09 Sep 2016, 12:17

Re: Problem mit swaudit

Beitrag von RMuenz »

Hallo Herr Oertel,
wir haben das Problem im SWAudit

Execution of OpsiServiceHashList_auditSoftware_createObjects
[3] [Sep 09 12:06:05:869] [swaudit] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice in retrieveJSONObject, number of lines: 0-> retrieveJSONObject:1: Stream read error

Mit der Property usekeyfinder=off läuft das Audit. Die Logs folgen per Mail.

Viele Grüße, Ralf Münz
RMuenz
Beiträge: 43
Registriert: 09 Sep 2016, 12:17

Re: Problem mit swaudit

Beitrag von RMuenz »

Zu [swaudit] Error: retrieveJSONObject --- opsi service problem ----> unexpected Result from webservice

Interessanterweise tritt das Problem auch auf, wenn die Property usekeyfinder = off ist, aber nur wenn das swaudit im Modus Silent-Install läuft. Bei on_demand oder während des Starts gibt es kein Problem.
Der Fehle behebt sich anscheinend auch manchmal wie von selbst. Der Rechner, auf dem ich am Freitag noch diesen Fehler beobachtet und die Logs erzeugt (und zugesandt) habe, hat heute das swaudit einwandfrei Silent ausgeführt.
Es wäre gut, wenn dieser Fehler behoben werden könnte.
Viele Grüße, Ralf Münz

Konfig:
opsi-client-agent_4.0.7.7-1
opsi-winst_4.11.6.2-1
swaudit_4.0.6-2
opsi-configed 4.0.7.1.3-1
opsi-depotserver 4.0.6.7-2
opsiconfd 4.0.7.4-1
RMuenz
Beiträge: 43
Registriert: 09 Sep 2016, 12:17

Re: Problem mit swaudit

Beitrag von RMuenz »

Hallo miteinander, gibt es inzwischen Lösungsansätze? Es werden so langsam immer mehr Clients, die kein Softwareaudit mehr liefern.
Danke und Grüße, R. Münz
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Problem mit swaudit

Beitrag von n.wenselowski »

Hi,

wenn der Kollege nicht mehr außer Haus ist, wird es hoffentlich mehr hierzu geben.
Bis dahin muss ich leider vertrösten.


Gruß

Niko

Code: Alles auswählen

import OPSI
Benutzeravatar
Der-Matze
uib-Team
Beiträge: 102
Registriert: 16 Mär 2009, 11:00

Re: Problem mit swaudit

Beitrag von Der-Matze »

Hier tritt das Problem mit den oben genannten Symptomen ebenfalls auf.
Wäre auch für eine zeitnahe Lösung sehr dankbar. Gerne kann ich auch ein Ticket über unseren Support Vertrag aufmachen.

Edith sagt das Ticket ist erstellt
andré
Beiträge: 324
Registriert: 07 Jan 2014, 10:48

Re: Problem mit swaudit

Beitrag von andré »

Ich habe mir das gerade noch mal angeschaut. Das Problem bei uns ist die zweite Fehlermeldung.

Code: Alles auswählen

(12700)   [5] [Sep 27 12:54:21:139] [swaudit]   Execution of opsiservicecall_auditSoftwareOnClient_setObsolete
(12701)   [3] [Sep 27 12:54:21:285] [swaudit]     Error: retrieveJSONObject --- opsi service problem ----> {"message":"Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid","class":"OpsiRpcError"}
(12702)   [3] [Sep 27 12:54:21:285] [swaudit]     Received (first 512): {"id": 1, "result": null, "error": {"message": "Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid", "class": "OpsiRpcError"}}                                                                                                                                                                                                                                                                                  
(12703)   [3] [Sep 27 12:54:21:285] [swaudit]     Error: -> {"message":"Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid","class":"OpsiRpcError"}
(12704)   [5] [Sep 27 12:54:21:287] [swaudit]     errorsOccuredSinceMark > 0   <<< result true
(12705)   [5] [Sep 27 12:54:21:288] [swaudit]     Error level set to fatal
(12706)   [5] [Sep 27 12:54:21:288] [swaudit]     Process aborted
Die /etc/opsi/backendManager/dispatch.conf sieht meines Erachtens nach in Ordnung aus:

Code: Alles auswählen

backend_.*         : file, mysql, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
audit.*            : mysql
.*                 : file
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Problem mit swaudit

Beitrag von n.wenselowski »

Hi,
andré hat geschrieben:

Code: Alles auswählen

(12700)   [5] [Sep 27 12:54:21:139] [swaudit]   Execution of opsiservicecall_auditSoftwareOnClient_setObsolete
(12701)   [3] [Sep 27 12:54:21:285] [swaudit]     Error: retrieveJSONObject --- opsi service problem ----> {"message":"Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid","class":"OpsiRpcError"}
(12702)   [3] [Sep 27 12:54:21:285] [swaudit]     Received (first 512): {"id": 1, "result": null, "error": {"message": "Opsi rpc error: Method 'auditSoftwareOnClient_setObsolete' is not valid", "class": "OpsiRpcError"}}
Nutzt der Client die WAN-Erweiterung?
Welcher Version des opsi-client-agent und von python-opsi wird verwendet?
Was liefert der folgende Befehl?

Code: Alles auswählen

# opsi-admin -d method backend_getInterface | grep setObsolete

Gruß

Niko

PS: viewtopic.php?t=8618 ist der erste Thread mit dem Problem. Sollte sich das hier zu weit von dem unexpected result entfernen, verschiebe ich das vielleicht entsprechend.

Code: Alles auswählen

import OPSI
Benutzeravatar
Der-Matze
uib-Team
Beiträge: 102
Registriert: 16 Mär 2009, 11:00

Re: Problem mit swaudit

Beitrag von Der-Matze »

Nutzt der Client die WAN-Erweiterung?
Welcher Version des opsi-client-agent und von python-opsi wird verwendet?
Was liefert der folgende Befehl?

# opsi-admin -d method backend_getInterface | grep setObsolete
Hallo Niko,
bei uns verwenden alle Clients die OPSI WAN Erweiterung.
Die Version vom opsi-client-agent ist 4.0.7.7-1, die von python-opsi 4.0.7.17-1.

Code: Alles auswählen

opsi-admin -d method backend_getInterface | grep setObsolete
    "name" : "auditHardwareOnHost_setObsolete",
    "name" : "auditSoftwareOnClient_setObsolete",
Antworten