Remote Deployment Opsi-Client-Agent funktioniert nicht mehr (gelösst)

Antworten
maxi_ybl
Beiträge: 21
Registriert: 29 Dez 2022, 14:34

Remote Deployment Opsi-Client-Agent funktioniert nicht mehr (gelösst)

Beitrag von maxi_ybl »

Servus

Ich musste gestern unseren Opsi-Server neu aufsetzten. Bis dahin gab es keine Probleme den Client remote auszurollen.
Jedoch läuft die Installation jetzt auf Fehler.
Ich habe es jeweils an einem PC getestet auf dem die Installation vorher funktionierte, sowie auf einem ganz frischen ohne unsere Sicherheitssoftware.
Auch in den Foren konnte ich keine Lösung finden.
[5] [2023-06-17 14:33:07.535] [*Computername*****.*Domaine*] Starting deployment to host *Computername*****.*Domaine* (common.py:425)
[5] [2023-06-17 14:33:07.535] [*Computername*****.*Domaine*] Querying for ip address of host *Computername*****.*Domaine* (common.py:231)
[6] [2023-06-17 14:33:07.535] [*Computername*****.*Domaine*] Getting host *Computername*****.*Domaine* by name (common.py:233)
[5] [2023-06-17 14:33:07.536] [*Computername*****.*Domaine*] Got ip address *ipaddress* from syscall (common.py:242)
[5] [2023-06-17 14:33:07.536] [*Computername*****.*Domaine*] Pinging host *ipaddress* ... (common.py:258)
[6] [2023-06-17 14:33:07.537] [*Computername*****.*Domaine*] Executing ping -q -c2 *ipaddress* (common.py:86)
[5] [2023-06-17 14:33:08.570] [*Computername*****.*Domaine*] Host *ipaddress* is up (common.py:267)
[6] [2023-06-17 14:33:08.572] [*Computername*****.*Domaine*] Establishing connection with dcom of host '*Computername*****.*Domaine*'. (windows.py:65)
[5] [2023-06-17 14:33:08.825] [*Computername*****.*Domaine*] Querying 'SELECT * from Win32_OperatingSystem' on host '*Computername*****.*Domaine*' (windows.py:170)
[6] [2023-06-17 14:33:08.967] [*Computername*****.*Domaine*] Target os version: 10.0.19042 (windows.py:266)
[5] [2023-06-17 14:33:08.967] [*Computername*****.*Domaine*] Copying installation files (windows.py:270)
[6] [2023-06-17 14:33:08.967] [*Computername*****.*Domaine*] Using smbclient to copy files (windows.py:272)
[6] [2023-06-17 14:33:08.968] [*Computername*****.*Domaine*] Executing /usr/bin/smbclient -m SMB3 //*Computername*****.*Domaine*/c$ -U '*Domaine*\administrator%***secret***' -c 'prompt; recurse; md opsi.org; cd opsi.org; md log; md tmp; cd tmp; md opsi-deploy-client-agent-1687005188; cd opsi-deploy-client-agent-1687005188; mput files; mput setup.opsiscript; mput oca-installation-helper.exe; exit;' (common.py:86)
[5] [2023-06-17 14:33:12.151] [*Computername*****.*Domaine*] Installing opsi-client-agent (common.py:430)
[6] [2023-06-17 14:33:12.152] [*Computername*****.*Domaine*] Deploying from path c:\opsi.org\tmp\opsi-deploy-client-agent-1687005188 (windows.py:328)
[6] [2023-06-17 14:33:12.161] [*Computername*****.*Domaine*] Updating productOnClient <ProductOnClient(clientId='*Computername*****.*Domaine*', productId='opsi-client-agent', installationStatus='unknown', actionRequest='none')> (Extended.py:1819)
[6] [2023-06-17 14:33:12.163] [*Computername*****.*Domaine*] ProductOnClient <ProductOnClient(clientId='*Computername*****.*Domaine*', productId='opsi-client-agent', installationStatus='unknown', actionRequest='none')> exists, updating (Extended.py:1823)
[5] [2023-06-17 14:33:12.165] [*Computername*****.*Domaine*] Running installation script... (windows.py:342)
[6] [2023-06-17 14:33:12.198] [*Computername*****.*Domaine*] Register scheduled task 'opsi-deploy-client-agent-1687005192' (windows.py:236)
[6] [2023-06-17 14:33:12.224] [*Computername*****.*Domaine*] Scheduled task started (windows.py:242)
[6] [2023-06-17 14:33:17.244] [*Computername*****.*Domaine*] Scheduled task ended (windows.py:253)
[6] [2023-06-17 14:33:17.245] [*Computername*****.*Domaine*] Removing scheduled task 'opsi-deploy-client-agent-1687005192' (windows.py:259)
[3] [2023-06-17 14:33:17.257] [*Computername*****.*Domaine*] Deployment to *Computername*****.*Domaine* failed: Installation of opsi-client-agent on client *Computername*****.*Domaine* unsuccessful (common.py:455)
[5] [2023-06-17 14:33:17.257] [*Computername*****.*Domaine*] Cleaning up (windows.py:380)
[6] [2023-06-17 14:33:17.258] [*Computername*****.*Domaine*] Using smbclient to cleanup files (windows.py:385)
[6] [2023-06-17 14:33:17.258] [*Computername*****.*Domaine*] Executing /usr/bin/smbclient -m SMB3 //*Computername*****.*Domaine*/c$ -U '*Domaine*\administrator'*P* -c 'prompt; recurse; deltree c:\opsi.org\tmp\opsi-deploy-client-agent-1687005188; exit;' (common.py:86)
[5] [2023-06-17 14:33:18.575] [ ] 0/1 deployments successful (__init__.py:191)
[4] [2023-06-17 14:33:18.575] [ ] 1/1 deployments failed (__init__.py:195)

Ich werd auch nicht aus der Fehlermeldung schlau.
Die Konnektivität zu dem PC's besteht, die Zugriffsberechtigungen auch.
Die Anwendung ist genauso wie noch vor 2 Wochen (Eventuell auf einem älteren System)
Zuletzt geändert von maxi_ybl am 19 Okt 2023, 12:18, insgesamt 2-mal geändert.
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2045
Registriert: 29 Mai 2008, 15:14

Re: Remote Deployment Opsi-Client-Agent funktioniert nicht mehr

Beitrag von j.schneider »

Hallo!

Weitere Informationen sollten in der instlog des Clients zu finden sein.

Grüße
Jan Schneider


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


maxi_ybl
Beiträge: 21
Registriert: 29 Dez 2022, 14:34

Re: Remote Deployment Opsi-Client-Agent funktioniert nicht mehr

Beitrag von maxi_ybl »

[INFO 2023-06-17 16:58:49] Installation helper running from 'c:\opsi.org\tmp\opsi-deploy-client-agent-1687013922\oca-installation-helper.exe', working dir 'C:\Windows\system32' (__main__.py:68)
[DEBUG 2023-06-17 16:58:49] Config from cmdline: interactive=False, client_id=lv-pc29s95e.***.intern, service_address=https://opsiserver.***.intern:4447/rpc, service_username=lv-pc29s95e.***.intern, service_password=********************************, depot=None, group=None, force_recreate_client=False, finalize=noreboot, dns_domain=None, read_conf_files=('install.conf', 'config.ini', 'opsiclientd.conf'), install_condition=always, set_mac_address=True, end_command=None, end_marker=None (config.py:76)
[DEBUG 2023-06-17 16:58:49] Delete temp dir 'C:\Windows\TEMP\oca-installation-helper-tmp' (__main__.py:308)
[INFO 2023-06-17 16:58:49] Copy installation files from 'c:\opsi.org\tmp\opsi-deploy-client-agent-1687013922' to 'C:\Windows\TEMP\oca-installation-helper-tmp' (__main__.py:251)
[INFO 2023-06-17 16:58:49] Installation files succesfully copied to 'C:\Windows\TEMP\oca-installation-helper-tmp' (__main__.py:251)
[INFO 2023-06-17 16:58:49] Running elevated. Continuing execution. (__main__.py:335)
[INFO 2023-06-17 16:58:49] Filling empty config fields from windows registry. (__main__.py:77)
[DEBUG 2023-06-17 16:58:49] Requesting key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\opsi-client-agent and value INSTALL_PARAMS (config.py:223)
[INFO 2023-06-17 16:58:49] Could not open registry key, skipping fill_config_from_registry. (config.py:241)
[DEBUG 2023-06-17 16:58:49] Caught Error [WinError 2] Das System kann die angegebene Datei nicht finden (config.py:242)
Traceback (most recent call last):
File "ocainstallationhelper\config.py", line 235, in fill_config_from_registry
File "ocainstallationhelper\config.py", line 226, in get_registry_value
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
[INFO 2023-06-17 16:58:49] Filling empty config fields from config files. (__main__.py:80)
[INFO 2023-06-17 16:58:49] Config file 'C:\Windows\TEMP\oca-installation-helper-tmp\install.conf' not found (config.py:120)
[INFO 2023-06-17 16:58:49] Config file 'C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd\opsiclientd.conf' not found (config.py:120)
[INFO 2023-06-17 16:58:49] Reading config file 'C:\Windows\TEMP\oca-installation-helper-tmp\files\opsi\cfg\config.ini' (config.py:139)
[DEBUG 2023-06-17 16:58:49] Config after reading 'C:\Windows\TEMP\oca-installation-helper-tmp\files\opsi\cfg\config.ini': interactive=False, client_id=lv-pc29s95e.***.intern, service_address=https://opsiserver.***.intern:4447/rpc, service_username=lv-pc29s95e.***.intern, service_password=********************************, dns_domain= (config.py:186)
[INFO 2023-06-17 16:58:49] Filling empty config fields from zeroconf information. (__main__.py:84)
[INFO 2023-06-17 16:58:49] Filling empty config fields from default. (__main__.py:95)
[INFO 2023-06-17 16:58:49] Got config: service_address='https://opsiserver.***.intern:4447/rpc', service_username='lv-pc29s95e.***.intern', client_id='lv-pc29s95e.***.intern' (__main__.py:97)
[INFO 2023-06-17 16:58:49] Starting installation (__main__.py:176)
[DEBUG 2023-06-17 16:58:49] opsi-client-agent versions: installed=None, this=None (__main__.py:181)
[INFO 2023-06-17 16:58:49] Connecting to service... (__main__.py:251)
[INFO 2023-06-17 16:58:49] Using proxy settings: http_proxy=None, https_proxy=None, no_proxy='localhost,LV-PC29S95E.***.intern,127.0.0.1,ip6-localhost,::1' (__init__.py:221)
[INFO 2023-06-17 16:58:49] Connecting to service https://opsiserver.***.intern:4447/rpc (jsonrpc.py:617)
[INFO 2023-06-17 16:58:49] JSONRPC request to https://opsiserver.***.intern:4447/rpc: ip_version=auto, id=1, method=backend_getInterface, Content-Type=application/json, Content-Encoding=, timeout=(10, 300) (jsonrpc.py:464)
[DEBUG 2023-06-17 16:58:49] Starting new HTTPS connection (1): opsiserver.***.intern:4447 (connectionpool.py:1003)
[DEBUG 2023-06-17 16:58:49] Using ip version auto (jsonrpc.py:92)
[ERROR 2023-06-17 16:58:49] HTTPSConnectionPool(host='opsiserver.***.intern', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x07AC4928>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) (__main__.py:198)
Traceback (most recent call last):
File "urllib3\connection.py", line 174, in _new_conn
File "urllib3\util\connection.py", line 72, in create_connection
File "socket.py", line 955, in getaddrinfo
socket.gaierror: [Errno 11001] getaddrinfo failed

Was ich nicht ganz verstehe ist warum der Opsi Org Ordner kopiert und erstellt wird aber der Agent nicht. Die Zugriffsberechtigungen sind gegeben
maxi_ybl
Beiträge: 21
Registriert: 29 Dez 2022, 14:34

Re: Remote Deployment Opsi-Client-Agent funktioniert nicht mehr

Beitrag von maxi_ybl »

Lösung wurde gefunden.
Der DNS Eintrag musste angepasst werden. Danke für die Infos mit den Logs
Antworten