[GELÖST]Updateprobleme

Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

[GELÖST]Updateprobleme

Beitrag von Kathrin »

Guten Morgen,

ich habe heute morgen meinen (Test) OPSI Server aktualisiert (Ubuntu 12.04.5), wodurch auch einige OPSI Pakete (Testing) aktualisiert wurden:

Code: Alles auswählen

Vorbereitung zum Ersetzen von opsi-configed 4.0.5.2.11-1 (durch .../opsi-configed_4.0.5.8-1_all.deb) ...
Ersatz für opsi-configed wird entpackt ...
Vorbereitung zum Ersetzen von python-opsi 4.0.5.17-1 (durch .../python-opsi_4.0.5.18-2_all.deb) ...
Ersatz für python-opsi wird entpackt ...
Vorbereitung zum Ersetzen von opsiconfd 4.0.5.3-1 (durch .../opsiconfd_4.0.5.3-2_all.deb) ...
Stopping opsi config service....   (done).
Ersatz für opsiconfd wird entpackt ...
opsi-configed (4.0.5.8-1) wird eingerichtet ...
python-opsi (4.0.5.18-2) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/opsi/version wird installiert ...
Neue Version der Konfigurationsdatei /etc/opsi/hwaudit/opsihwaudit.conf wird installiert ...
opsiconfd (4.0.5.3-2) wird eingerichtet ...
Starting opsi config service.......   (done).
Danach wollte ich ein 2012er Image mittels des Netbootproduktes win2012-r2 installieren, wobei ja ganz am Anfang auch erstmal ein hwinvent durchgeführt wird.

Das hwinvent wird aber mit dem Fehler "(1054, "Unknown column 'sku' in 'where clause'")". abgebrochen

Wenn ich nur das netbootProdukt hwinvent aufrufe erscheint der gleiche Fehler.

Bei einem opsi-setup --init-current-config erscheint mehrmals
No translation for property 'COMPUTER_SYSTEM.sku' found (Backend.py|1497)

Ist da bei der Aktualisierung etwas schief gelaufen, oder sehe ich den offensichtlichen Fehler gerade einfach nicht? Ich denke, dass vermutlich mit der /etc/opsi/hwaudit/opsihwaudit.conf etwas nicht stimmt, weil die beim Update aktualisiert wurde.


Folgende Pakete hab ich installiert:

Code: Alles auswählen

ii  opsi-atftpd                          0.7.dfsg-4                          advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                        4.0.5.8-1                           OPSI config editor
ii  opsi-depotserver                     4.0.5.11-1                          opsi depotserver configuration package
ii  opsi-linux-bootimage                 20150223-1                          opsi linux bootimage
ii  opsi-utils                           4.0.5.6-2                           opsi utils
ii  opsiconfd                            4.0.5.3-2                           opsi configuration service
ii  opsipxeconfd                         4.0.5.3-6                           opsi pxe configuration daemon
ii  python-opsi                          4.0.5.18-2                          opsi python library

hwinvent                        4.0-1                     Hardware Inventarisierung
win2012-r2                      4.0.5-7                   Windows Server 2012 
EDIT:
Folgendes steht im Bootimagelog des Rechners (Ausschnitt)

Code: Alles auswählen

[5] [Jun 08 08:25:11] Sending hardware information to service (setup.py|224)
2448 [7] [Jun 08 08:25:11] Executing jsonrpc method 'auditHardwareOnHost_setObsolete' on host lxopsitest.blub.bla (JSONRPC.py|111)
2449 [7] [Jun 08 08:25:11] Starting new HTTPS connection (0) to lxopsitest.blub.bla:4447 (HTTP.py|589)
2450 [7] [Jun 08 08:25:11] Connection established to: lxopsitest.blub.bla (HTTP.py|602)
2451 [7] [Jun 08 08:25:11] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|171)
2452 [7] [Jun 08 08:25:11] Closing connection: <httplib.HTTPSConnection instance at 0x88f2ccc> (HTTP.py|516)
2453 [7] [Jun 08 08:25:11] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: gzip (JSONRPC.py|686)
2454 [7] [Jun 08 08:25:11] Expecting compressed data from server (JSONRPC.py|690)
2455 [2] [Jun 08 08:25:11] Traceback: (Logger.py|767)
2456 [2] [Jun 08 08:25:11]      line 101 in 'processResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|767)
2457 [2] [Jun 08 08:25:11]      ==>>> (1054, "Unknown column 'sku' in 'where clause'") (JSONRPC.py|105)
2458 [2] [Jun 08 08:25:12] Traceback: (Logger.py|767)
2459 [2] [Jun 08 08:25:12]      line 1471 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|767)
2460 [2] [Jun 08 08:25:12]      line 225 in '<module>' in file '/tmp/setup.py' (Logger.py|767)
2461 [2] [Jun 08 08:25:12]      line 1 in 'auditHardwareOnHost_setObsolete' in file '<string>' (Logger.py|767)
2462 [2] [Jun 08 08:25:12]      line 638 in '_jsonRPC' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|767)
2463 [2] [Jun 08 08:25:12]      line 133 in 'execute' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/JSONRPC.py' (Logger.py|767)
2464 [2] [Jun 08 08:25:12]      line 119 in 'waitForResult' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Backend.py' (Logger.py|767)
2465 [2] [Jun 08 08:25:12]      ==>>> (1054, "Unknown column 'sku' in 'where clause'") (master.py|1519)
2466 [7] [Jun 08 08:25:12] Backend: <OPSI.Backend.JSONRPC.JSONRPCBackend instance at 0x8dd1f8c> (master.py|1522)
2467 [7] [Jun 08 08:25:12] ProductId: win2012-r2 (master.py|1523)
2468 [7] [Jun 08 08:25:12] ClientId: win7opsitest.blub.bla (master.py|1524)
2469 [7] [Jun 08 08:25:12] ProductOnClient: <ProductOnClient clientId 'win7opsitest.blub.bla', productId 'win2012-r2', installationStatus 'unknown', actionRequest 'none'> (master.py|1525)
2470 [6] [Jun 08 08:25:12] Updating productOnClient: {'actionProgress': u'', 'actionResult': u'failed', 'clientId': u'win7opsitest.blub.bla', 'modificationTime': None, 'actionRequest': u'none', 'targetConfigur     ation': None, 'productVersion': None, 'productType': u'NetbootProduct', 'type': u'ProductOnClient', 'lastAction': None, 'packageVersion': None, 'actionSequence': None, 'installationStatus': u'unknown', 'pro     ductId': u'win2012-r2'} (master.py|1536)


Danke und viele Grüße
Kathrin
Zuletzt geändert von Kathrin am 08 Jun 2015, 10:12, insgesamt 1-mal geändert.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Updateprobleme

Beitrag von wolfbardo »

Hallo Kathrin,
Kathrin hat geschrieben:.

Das hwinvent wird aber mit dem Fehler "(1054, "Unknown column 'sku' in 'where clause'")". abgebrochen

Wenn ich nur das netbootProdukt hwinvent aufrufe erscheint der gleiche Fehler.

Bei einem opsi-setup --init-current-config erscheint mehrmals
No translation for property 'COMPUTER_SYSTEM.sku' found (Backend.py|1497)
die Warning wg. der fehlenden Translation der sku ist nur eine Warning.

Das Problem wg Unknown column sollte durch das opsi-setup --init-current-config
nebst Neustart der opsi-Dientse behoben sein,

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
Kathrin
Beiträge: 62
Registriert: 23 Okt 2009, 08:16

Re: Updateprobleme

Beitrag von Kathrin »

Hallo,

danke für die schnelle Hilfe. Ich hatte zu schnell aufgegeben und die Dienste nicht nochmal neu gestartet :oops:

Nach einem Neustart der Dienste läuft es wieder.

Danke und viele Grüße
Kathrin
MAEChris
Beiträge: 6
Registriert: 06 Jul 2015, 09:28

Re: [GELÖST]Updateprobleme

Beitrag von MAEChris »

Hallo,

bei meiner Installation tritt dieses Problem wie oben beschrieben auch nach der letzten Aktualisierung des HW-Invent Pakets auf...

Leider brachte opsi-setup --inet-current-config und der Dienste-Neustart keine Abhilfe.

Code: Alles auswählen

ii  opsi-atftpd                         0.7.dfsg-4                           amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                       4.0.5.8-1                            all          OPSI config editor
ii  opsi-depotserver                    4.0.5.11-3                           all          opsi depotserver configuration package
ii  opsi-linux-bootimage                20140919-2                           all          opsi linux bootimage
ii  opsi-utils                          4.0.5.6-3                            all          opsi utils
ii  opsiconfd                           4.0.5.3-3                            all          opsi configuration service
ii  opsipxeconfd                        4.0.5.3-6                            all          opsi pxe configuration daemon
ii  python-opsi                         4.0.5.19-1                           all          opsi python library

Code: Alles auswählen

hwinvent		4.0-1		Hardware Inventarisierung
win7-x64		4.0.5-7	Windows 7 -x64
Die PXE-Installation bricht dadurch ab und wird nicht weiter ausgeführt.

Irgendwelche Ideen?

Danke!
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: [GELÖST]Updateprobleme

Beitrag von n.wenselowski »

Hallo,

opsi-setup --update-mysql wäre meine Idee, falls ein MySQL-Backend verwendet wird.

Ansonsten brauchen wir eine bessere Fehlerbeschreibung.

Gruß

Niko

Code: Alles auswählen

import OPSI
ubu17
Beiträge: 2
Registriert: 28 Sep 2012, 09:54

Re: [GELÖST]Updateprobleme

Beitrag von ubu17 »

Hab das gleiche Problem nach gestrigem Update:

dpkg -l |grep opsi
ii opsi-atftpd 0.7.dfsg-4 amd64 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii opsi-configed 4.0.5.8-1 all OPSI config editor
ii opsi-depotserver 4.0.5.11-3 all opsi depotserver configuration package
ii opsi-linux-bootimage 20140919-2 all opsi linux bootimage
ii opsi-utils 4.0.5.6-3 all opsi utils
ii opsiconfd 4.0.5.3-3 all opsi configuration service
ii opsipxeconfd 4.0.5.3-6 all opsi pxe configuration daemon
ii python-opsi 4.0.5.19-1 all opsi python library

backendManager/dispatch.conf:
backend_.* : file, mysql, opsipxeconfd
host_.* : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
audit.* : mysql
.* : file


opsi-setup --init-current-config hab ich gemacht, Dienste neu geladen.

Es kommt weiter die Meldung opsi unknown column sku in where clause beim hwinvent
ubu17
Beiträge: 2
Registriert: 28 Sep 2012, 09:54

Re: [GELÖST]Updateprobleme

Beitrag von ubu17 »

Lösung:

Prüfen ob in opsi Datenbank in Tabelle hardware_config_computer_system existiert:

EXPLAIN hardware_config_computer_system;

Falls nicht in opsi mysql datenbank spalte sku in tabelle hardware_config_computer_system anlegen:

ALTER TABLE hardware_config_computer_system ADD COLUMN sku VARCHAR(255) DEFAULT NULL AFTER dellexpresscode;
MAEChris
Beiträge: 6
Registriert: 06 Jul 2015, 09:28

Re: [GELÖST]Updateprobleme

Beitrag von MAEChris »

n.wenselowski hat geschrieben:Hallo,

opsi-setup --update-mysql wäre meine Idee, falls ein MySQL-Backend verwendet wird.

Ansonsten brauchen wir eine bessere Fehlerbeschreibung.

Gruß

Niko
opsi-setup --update-mysql hat es gebracht! Funktioniert wieder! :)

Danke Niko!
homa
Beiträge: 23
Registriert: 22 Jul 2015, 06:52

Re: [GELÖST]Updateprobleme

Beitrag von homa »

Hallo,

seit dem Update des OPSI Servers haben auch wir diese Fehlermeldung:

[warning] No translation for property 'COMPUTER_SYSTEM.sku' found


Diese Meldung tritt auf, wenn man den OPSI Client Agent über die Kommandozeile installieren möchte,

Folgende Befehle wurden schon ausprobiert, funktionierten aber leider nicht:

opsi-setup --init-current-config (Dienste wurden neu gestartet)
opsi-setup --update-mysql

Der Lösungsvorschlag mit der Tabelle hardware_config_computer_system scheiterte an folgender Meldung:
ERROR 1146 (42S02): Table 'opsi.hardware_config_computer_system' doesn't exist

Muss diese Tabelle erst angelegt werden? Seit wann gibt es diese Tabelle?
Wie lautet der Befehl zum Korrekten anlegen dieser Tabelle (falls notwendig)?


Kann mir jemand weiterhelfen?


dpkg -l |grep opsi
ii opsi-atftpd 0.7.dfsg-4 amd64 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii opsi-configed 4.0.5.8-1 all OPSI config editor
ii opsi-depotserver 4.0.5.11-3 all opsi depotserver configuration package
ii opsi-linux-bootimage 20140919-2 all opsi linux bootimage
ii opsi-utils 4.0.5.6-3 all opsi utils
ii opsiconfd 4.0.5.3-3 all opsi configuration service
ii opsipxeconfd 4.0.5.3-6 all opsi pxe configuration daemon
ii python-opsi 4.0.5.19-1 all opsi python library



Vielen Dank im Voraus
Matthias
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: [GELÖST]Updateprobleme

Beitrag von n.wenselowski »

Hallo,

schon die Schritte aus diesem Thread probiert?
n.wenselowski hat geschrieben:opsi-setup --update-mysql wäre meine Idee, falls ein MySQL-Backend verwendet wird.
Die Meldung wegen fehlender Translation sollte mit der aktuellen Version aus Testing verschwinden - ich würde aber nicht nur wegen dieser Meldung das Repo wechseln. Ansonsten ist es aber nur eine Warning, die man auch ignorieren kann.


Viele Grüße

Niko

Code: Alles auswählen

import OPSI
Antworten