swaudit bricht mit Fehlern ab

j.kroepke
Beiträge: 18
Registriert: 06 Jun 2013, 16:26

swaudit bricht mit Fehlern ab

Beitrag von j.kroepke »

Hallo,

ich hab bei einem unserer Clients das Problem, dass dort die Software Inventarisierung nicht läuft.

Die Audit wird mit folgendem Error abgebrochen:

Code: Alles auswählen

[5] [Jul 26 08:20:49:567] [swaudit]   Execution of OpsiServiceHashList_auditSoftware_createObjects
[3] [Jul 26 08:20:50:739] [swaudit]     Error: retrieveJSONObject --- opsi service problem ----> {"message":"(1062, \"Duplicate entry 'C9650n Series PS Driver from OKI\\xc2\\xae Printing Solutions for Window' for key 'PRIMARY'\")","class":"IntegrityError"}
Laut opsi-product-updater ist swaudit auf dem aktuellen Stand.

Code: Alles auswählen

swaudit_4.0.2-1.opsi - installation not required: installed version '4.0.2-1' of product 'swaudit' is up to date
Mit freundlichen Grüßen,
jkroepke
Zuletzt geändert von j.kroepke am 04 Dez 2014, 01:06, insgesamt 3-mal geändert.
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: swaudit bringt mit Fehlern ab

Beitrag von d.oertel »

Hi,

bitte im swaudit das property 'usefilebuffer' aktivieren.
Das ganz nochmal machen und dann die Filebuffer Dateien in c:\tmp\auditsoftware*.txt zippen und an mich senden.
(d.oertel (at) uib.de)

danke
gruß

d.oertel


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


Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: swaudit bricht mit Fehlern ab

Beitrag von d.oertel »

Hi,

bitte mal diese Version probieren und Rückmeldung geben:
http://download.uib.de/opsi4.0/testing/ ... 0.2-3.opsi

gruß
d.oertel


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


j.kroepke
Beiträge: 18
Registriert: 06 Jun 2013, 16:26

Re: swaudit bricht mit Fehlern ab

Beitrag von j.kroepke »

Hallo,

Die swaudit 4.0.2-3 lief ohne Probleme durch.

Danke für den Patch.

jkroepke
Zuletzt geändert von j.kroepke am 04 Dez 2014, 01:06, insgesamt 1-mal geändert.
robert338
Beiträge: 28
Registriert: 25 Aug 2014, 16:42

Re: swaudit bricht mit Fehlern ab

Beitrag von robert338 »

Hi,

dieser Thread ist schon etwas älter, habe aber auch einen fehler mir swaudit:

Code: Alles auswählen

[5] [Aug 25 19:20:38:858] [swaudit]   
[5] [Aug 25 19:20:38:858] [swaudit]   Execution of OpsiServiceHashList_auditSoftwareOnClient_createObjects
[3] [Aug 25 19:20:39:002] [swaudit]     Error: retrieveJSONObject --- opsi service problem ----> {"message":"(1406, \"Data too long for column 'uninstallString' at row 1\")","class":"DataError"}
[5] [Aug 25 19:20:39:002] [swaudit]  
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: swaudit bricht mit Fehlern ab

Beitrag von n.wenselowski »

Hallo,

tritt der Fehler auch auf, nachdem der folgende Befehle auf dem Server ausgeführt wurde?

Code: Alles auswählen

opsi-setup --update-mysql

Gruß

Niko

Code: Alles auswählen

import OPSI
robert338
Beiträge: 28
Registriert: 25 Aug 2014, 16:42

Re: swaudit bricht mit Fehlern ab

Beitrag von robert338 »

Hallo,

leider tritt der Fehler auch nach dem update der Datenbank auf.
hier die Ausgabe von
opsi-setup --update-mysql

Code: Alles auswählen

srv-xx-01:~ # opsi-setup --update-mysql
[5] [Aug 26 10:19:44] Connection to database 'opsi' on 'localhost' as user 'opsi' (opsi-setup|1215)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_HDAUDIO_DEVICE (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_SCSI_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_AUDIO_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_VIDEO_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_PCI_DEVICE (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_NETWORK_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_IDE_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_USB_DEVICE (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_PCMCIA_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_FLOPPY_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_USB_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating database table HARDWARE_DEVICE_1394_CONTROLLER (opsi-setup|1337)
[5] [Aug 26 10:19:51] Updating productId Columns (opsi-setup|1612)
[5] [Aug 26 10:19:51] Updating field 'description' on table PRODUCT_PROPERTY (opsi-setup|1625)
[5] [Aug 26 10:19:51] Updating field 'description' on table BOOT_CONFIGURATION (opsi-setup|1625)
[5] [Aug 26 10:19:51] Fixing DEFAULT for colum 'created' on table HOST (opsi-setup|1636)
[4] [Aug 26 10:19:51] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|381)
[5] [Aug 26 10:19:51] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|469)
[5] [Aug 26 10:19:51] Creating opsi base (SQL.py|399)
[4] [Aug 26 10:19:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|381)
[5] [Aug 26 10:19:53] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|469)
[5] [Aug 26 10:19:53] Creating base path: '/var/lib/opsi/config' (File.py|232)
[5] [Aug 26 10:19:54] Creating opsi base (SQL.py|399)
[4] [Aug 26 10:19:55] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|381)
[5] [Aug 26 10:19:55] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|469)
[5] [Aug 26 10:19:55] Creating base path: '/var/lib/opsi/config' (File.py|232)
[5] [Aug 26 10:19:55] Creating opsi base (SQL.py|399)
[5] [Aug 26 10:19:57] Configuring samba (opsi-setup|196)
[5] [Aug 26 10:19:57]    Share opsi_depot found and samba 4 is detected. Trying to detect the executablefix for opsi_depot-Share (opsi-setup|258)
[5] [Aug 26 10:19:57]    fix found, nothing to do (opsi-setup|272)
Erst nach dem Update des OpenSuSE 13.1 - testing Repository ist dieser Fehler aufgetreten.

Danke für die rasche Antwort!
LG Robert
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: swaudit bricht mit Fehlern ab

Beitrag von n.wenselowski »

Hallo,

es gibt ein neues swaudit, bitte mal damit probieren.
Zu finden ist es unter http://download.uib.de/opsi4.0/experime ... /products/


Gruß

Niko

Code: Alles auswählen

import OPSI
robert338
Beiträge: 28
Registriert: 25 Aug 2014, 16:42

Re: swaudit bricht mit Fehlern ab

Beitrag von robert338 »

Hi,

kurze gegenfrage, mit welchem Befehl kann ich dieses Modul installieren?

LG Robert
Benutzeravatar
d.oertel
uib-Team
Beiträge: 3327
Registriert: 04 Jun 2008, 14:27

Re: swaudit bricht mit Fehlern ab

Beitrag von d.oertel »

Hi,

http://download.uib.de/opsi4.0/experime ... 0.5-1.opsi
herunterladen und mit

Code: Alles auswählen

opsi-package-manager -i swaudit_4.0.5-1.opsi
installieren.

gruß
d.oertel


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


Antworten