Seite 1 von 1

[Gelöst] Virtueller Client "frisst" den Agent nicht

Verfasst: 23 Mär 2022, 14:16
von NorbertKoch
Hallo allerseits,

ich habe einen neuen Client in einem andern Subnet aufgesetzt (unter ESXI).

Dem wollte ich jetzt den opsi-client-agent verpassen, um ihn mit Softwarepaketen zu versorgen.

Nach dem Aufruf zeigt sich kurz das Setup-Fenster.
Danach erscheint aber in der Installationsmaske "Installation of opsi-client-agent on client blabla.domaene.lan unsuccesful.

Unter \var\lib\opsi finde ich in den logs aber keinen Hinweis warum bzw. für den Client blabla gibte es gar keinen Eintrag in den logfiles.

Die Installation zweier weiterer virtueller Computer life vor einem Monat aber noch.

Was kann ich tun? Wo kann ich nach dem Fehler suchen?

Ein lokaler Client, den wir auch aufgesetzt haben (allerdings im selben Subnet wie unser opsi-Zentralserver) nahm den client-agent problemlos an. Das war allerdings gestern und heute habe ich die neuesten opsi-updates installiert. Könnte es evtl. daran liegen?

Re: Virtueller Client "frisst" den Agent nicht

Verfasst: 23 Mär 2022, 14:48
von SisterOfMercy
Aren't there any logfiles on the client?

Re: Virtueller Client "frisst" den Agent nicht

Verfasst: 23 Mär 2022, 15:01
von NorbertKoch
I found this in C:\opsi.org\log\opsi-client-agent.txt:
[1] [2022-03-23 14:58:49.384] [opsi-client-agent] Prog: AktProduktId: opsi-client-agent = true
[6] [2022-03-23 14:58:49.384] [opsi-client-agent] Param: /productid: Got service credentials from parameters
[6] [2022-03-23 14:58:49.603] [opsi-client-agent] Lib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[7] [2022-03-23 14:58:49.603] [opsi-client-agent] SLLVersion : TLSv1.2
[7] [2022-03-23 14:58:49.603] [opsi-client-agent] Loaded: ssl_openssl
[7] [2022-03-23 14:58:49.603] [opsi-client-agent] HTTPSender.Sock.SSL.LibVersion: OpenSSL 1.0.2u 20 Dec 2019
[6] [2022-03-23 14:58:49.603] [opsi-client-agent] SslLib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[6] [2022-03-23 14:58:49.775] [opsi-client-agent] JSON Bench for backend_info "params":[],"id":1} Start: 14:58:49:603 Time: 00:00:00:172
[6] [2022-03-23 14:58:49.775] [opsi-client-agent] SslLib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[6] [2022-03-23 14:58:49.841] [opsi-client-agent] JSON Bench for getDepotId "params":["syltwv001.intern.zz"],"id":1} Start: 14:58:49:775 Time: 00:00:00:066
[6] [2022-03-23 14:58:49.841] [opsi-client-agent] SslLib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[6] [2022-03-23 14:58:49.913] [opsi-client-agent] JSON Bench for getProductProperties_hash "params":["opsi-client-agent","syltwv001.intern.zz Start: 14:58:49:841 Time: 00:00:00:072
[6] [2022-03-23 14:58:49.913] [opsi-client-agent] SslLib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[6] [2022-03-23 14:58:49.972] [opsi-client-agent] JSON Bench for getProduct_hash "params":["opsi-client-agent","opsidepot-sylt.opsi Start: 14:58:49:913 Time: 00:00:00:059
[3] [2022-03-23 14:58:49.972] [opsi-client-agent] Error: retrieveJSONObject --- opsi service problem ----> {"message":"Backend missing data error: No product with id 'opsi-client-agent' on depot 'opsidepot-sylt.opsi.intern.zz' found","class":"BackendMissingDataError"}
[3] [2022-03-23 14:58:49.972] [opsi-client-agent] Received (first 512): {"id":1,"error":{"message":"Backend missing data error: No product with id 'opsi-client-agent' on depot 'opsidepot-sylt.opsi.intern.zz' found","class":"BackendMissingDataError"},"result":null}
[4] [2022-03-23 14:58:49.972] [opsi-client-agent] Error: Opsi4Data.initProduct: getProduct_hash failed: retry
[6] [2022-03-23 14:58:50.472] [opsi-client-agent] SslLib should be: C:\Users\coadm\AppData\Local\Temp\7zS11DB.tmp\opsi-client-agent\files\opsi-script\ssleay32.dll
[6] [2022-03-23 14:58:50.528] [opsi-client-agent] JSON Bench for getProduct_hash "params":["opsi-client-agent","opsidepot-sylt.opsi Start: 14:58:50:472 Time: 00:00:00:056
[3] [2022-03-23 14:58:50.528] [opsi-client-agent] Error: retrieveJSONObject --- opsi service problem ----> {"message":"Backend missing data error: No product with id 'opsi-client-agent' on depot 'opsidepot-sylt.opsi.intern.zz' found","class":"BackendMissingDataError"}
[3] [2022-03-23 14:58:50.528] [opsi-client-agent] Received (first 512): {"id":1,"error":{"message":"Backend missing data error: No product with id 'opsi-client-agent' on depot 'opsidepot-sylt.opsi.intern.zz' found","class":"BackendMissingDataError"},"result":null}
[3] [2022-03-23 14:58:50.528] [opsi-client-agent] Opsi4Data.initProduct: getProduct_hash failed: giving up
[3] [2022-03-23 14:58:50.528] [opsi-client-agent] no product_hash found for client: opsidepot-sylt.opsi.intern.zz and product: opsi-client-agent
[2] [2022-03-23 14:58:50.528] [opsi-client-agent] Could not connect to Service !
[7] [2022-03-23 14:58:50.528] [opsi-client-agent] serviceBatch: update switches .....
[3] [2022-03-23 14:58:50.528] [opsi-client-agent] Error in opsi4data.UpdateSwitches, Actionstr:
[1] [2022-03-23 14:58:50.528] [] ============ opsi-script Version 4.12.4.35 is regularly exiting. Time 2022-03-23 14:58:50 .

Re: Solved: Virtueller Client "frisst" den Agent nicht

Verfasst: 23 Mär 2022, 15:32
von NorbertKoch
Hallo zusammen,

ich habe es gefunden.

Danke @SisterOfMercy.
Das Logfile machte mich stutzig bzw. brachte mich auf die Spur: Ich hatte den Client mit dem selben Namen frisch aufgesetzt.
Doch zuvor hatte ich schon einmal den Client in opsi eingebunden und dem Depot Sylt zugeweisen.

Und die Depot-Server habe ich noch nicht fertig eingerichtet (die Netboot und die Satndardpakete fehlen dort).

Das Löschen des (alten) Clients ließ dann letztendlich zu, dass der client-agent wieder vom Zentralserver aus installiert wurde.

Alles fein.