Installation opsi-client-agent schlägt fehl

Antworten
g.burck
Beiträge: 120
Registriert: 23 Mai 2018, 16:44

Installation opsi-client-agent schlägt fehl

Beitrag von g.burck »

Moin,

wir haben immer mal wieder Probleme den opsi-client-agent auf Geräten zu installieren.
In der Regel war es oft der Defender der angeschagen hat, es gab da in der Ausgabe bei der Installation entsprechende Fehlermeldungen.

Ich meine seit einem der letzten Paket Updates (noch 4.1) erhalte ich aber oft eine Ausgabe es hätte geklappt:

Code: Alles auswählen

ADMIN@ph-opsi:~$ /var/lib/opsi/depot/opsi-client-agent/opsi-deploy-client-agent -u 'peiker-holding.de\ADMIN' -c pcee-nb020.peiker-holding.de -vv
Password is required for deployment.
Password: 
[6] [2021-06-16 09:15:18.232] [               ] Deploying to Windows.   (__init__.py:117)
[6] [2021-06-16 09:15:18.242] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:174)
[6] [2021-06-16 09:15:18.244] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-06-16 09:15:18.245] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:75)
[6] [2021-06-16 09:15:18.247] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:137)
[6] [2021-06-16 09:15:18.493] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-06-16 09:15:18.509] [               ] Connecting to mysql://opsi:opsi@localhost/opsi   (MySQL.py:152)
[6] [2021-06-16 09:15:18.553] [               ] Opsi modules file '/etc/opsi/modules' not found   (Backend.py:428)
[6] [2021-06-16 09:15:18.553] [               ] Missing important information about modules. Probably no modules file installed.   (MySQL.py:318)
[6] [2021-06-16 09:15:18.553] [               ] Loading backend config '/etc/opsi/backends/file.conf'   (Dispatcher.py:137)
[6] [2021-06-16 09:15:18.558] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-06-16 09:15:18.560] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:137)
[6] [2021-06-16 09:15:18.569] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-06-16 09:15:18.569] [               ] Dispatcher backends: ['mysql', 'file', 'opsipxeconfd']   (Dispatcher.py:158)
[3] [2021-06-16 09:15:18.777] [               ] Failed to set network address '10.0.1.24/255.255.255.0' for depot ph-opsi.peiker-holding.de: 10.0.1.24/24 has host bits set   (Object.py:756)
[3] [2021-06-16 09:15:18.778] [               ] Failed to set network address '10.0.1.24/255.255.255.0' for depot ph-opsi.peiker-holding.de: 10.0.1.24/24 has host bits set   (Object.py:756)
[3] [2021-06-16 09:15:18.861] [               ] Failed to set network address '10.0.1.24/255.255.255.0' for depot ph-opsi.peiker-holding.de: 10.0.1.24/24 has host bits set   (Object.py:756)
[3] [2021-06-16 09:15:18.862] [               ] Failed to set network address '10.0.1.24/255.255.255.0' for depot ph-opsi.peiker-holding.de: 10.0.1.24/24 has host bits set   (Object.py:756)
[6] [2021-06-16 09:15:18.873] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:179)
[6] [2021-06-16 09:15:18.874] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>   (Extended.py:108)
[6] [2021-06-16 09:15:18.950] [               ] Got hostId pcee-nb020.peiker-holding.de   (windows.py:218)
[5] [2021-06-16 09:15:18.978] [               ] Starting deployment to host pcee-nb020.peiker-holding.de   (windows.py:99)
[5] [2021-06-16 09:15:18.979] [               ] Querying for ip address of host pcee-nb020.peiker-holding.de   (common.py:158)
[6] [2021-06-16 09:15:18.979] [               ] Getting host pcee-nb020.peiker-holding.de by name   (common.py:160)
[5] [2021-06-16 09:15:18.981] [               ] Got ip address 10.0.65.105 from syscall   (common.py:167)
[5] [2021-06-16 09:15:18.981] [               ] Pinging host 10.0.65.105 ...   (common.py:183)
[6] [2021-06-16 09:15:18.982] [               ] Executing: ping -q -c2 10.0.65.105   (Posix.py:912)
[6] [2021-06-16 09:15:18.989] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-06-16 09:15:20.004] [               ] Host 10.0.65.105 is up   (common.py:194)
[5] [2021-06-16 09:15:20.065] [               ] Testing winexe   (windows.py:222)
[6] [2021-06-16 09:15:20.075] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-06-16 09:15:20.082] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-06-16 09:15:20.095] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-06-16 09:15:20.096] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORT' //pcee-nb020.peiker-holding.de 'cmd.exe /C "del /s /q c:\\tmp\\opsi-client-agent_inst && rmdir /s /q c:\\tmp\\opsi-client-agent_inst || echo not found"'   (Posix.py:912)
[6] [2021-06-16 09:15:20.102] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-06-16 09:15:21.221] [               ] Patching config.ini   (windows.py:103)
[6] [2021-06-16 09:15:21.222] [               ] Copying from 'files/opsi/cfg/config.ini' to '/tmp/qAMfP5EotQ_config.ini'   (__init__.py:267)
[6] [2021-06-16 09:15:21.224] [               ] Copy done   (__init__.py:275)
[5] [2021-06-16 09:15:21.229] [               ] Copying installation files   (windows.py:117)
[6] [2021-06-16 09:15:21.230] [               ] Executing: /usr/bin/smbclient -m SMB3 -d 9 //pcee-nb020.peiker-holding.de/c$ -U 'peiker-holding.de\ADMIN%PASSWORT' -c 'prompt; recurse; md tmp; cd tmp; md opsi-client-agent_inst; cd opsi-client-agent_inst; mput files; mput utils; cd files\opsi\cfg; lcd /tmp; put qAMfP5EotQ_config.ini config.ini; exit;'   (Posix.py:912)
[6] [2021-06-16 09:15:21.238] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-06-16 09:15:57.939] [               ] Installing opsi-client-agent   (windows.py:128)
[6] [2021-06-16 09:15:57.940] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-06-16 09:15:57.947] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-06-16 09:15:57.959] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-06-16 09:15:57.960] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORT' //pcee-nb020.peiker-holding.de 'c:\\tmp\\opsi-client-agent_inst\\files\\opsi\\opsi-winst\\winst32.exe /batch c:\\tmp\\opsi-client-agent_inst\\files\\opsi\\setup.opsiscript c:\\tmp\\opsi-client-agent.log /PARAMETER REMOTEDEPLOY'   (Posix.py:912)
[6] [2021-06-16 09:15:57.966] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-06-16 09:16:01.479] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-06-16 09:16:01.486] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-06-16 09:16:01.496] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-06-16 09:16:01.497] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORT' //pcee-nb020.peiker-holding.de 'cmd.exe /C "del /s /q c:\\tmp\\opsi-client-agent_inst && rmdir /s /q c:\\tmp\\opsi-client-agent_inst"'   (Posix.py:912)
[6] [2021-06-16 09:16:01.503] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-06-16 09:16:02.070] [               ] opsi-client-agent successfully installed on pcee-nb020.peiker-holding.de   (windows.py:155)
[6] [2021-06-16 09:16:02.072] [               ] Updating productOnClient <ProductOnClient(clientId='pcee-nb020.peiker-holding.de', productId='opsi-client-agent', installationStatus='installed', actionRequest=None)>   (Extended.py:1835)
[6] [2021-06-16 09:16:02.105] [               ] ProductOnClient <ProductOnClient(clientId='pcee-nb020.peiker-holding.de', productId='opsi-client-agent', installationStatus='installed', actionRequest=None)> exists, updating   (Extended.py:1840)
[6] [2021-06-16 09:16:02.142] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-06-16 09:16:02.150] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-06-16 09:16:02.162] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-06-16 09:16:02.163] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORT' //pcee-nb020.peiker-holding.de 'net start opsiclientd'   (Posix.py:912)
[6] [2021-06-16 09:16:02.169] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-06-16 09:16:04.505] [               ] 1/1 deployments successfully   (__init__.py:210)
Aber auf dem Gerät ist der Client nicht installiert. Auf dem Client gibt es den Ordner C:\opsi.org aber fast ohne Inhalt. Im ordner log gibt es ein leeres log: vc_redis.msi und unter tmp drei batch scripte.

Installiere ich über cmd -> net use (....) und service_setup hat es auf den Problemkisten funktioniert. Auf der aktuellen Problemkiste läuft Win 10 20H2.
In einer VM lief alles reibungslos durch.

Grüße

Gregor

PS ach ja, natürlich ist da eine Fehlermeldung, aber die habe ich auch bei positiven Installationen.
PPS Taucht das Passwort nur in der Ausgabe von -vv auf? Ich hoffe doch,...
opsi config editor Version 4.1.9.3.3 (2020/04/27

opsiconfd 4.2.0.179
g.burck
Beiträge: 120
Registriert: 23 Mai 2018, 16:44

Re: Installation opsi-client-agent schlägt fehl

Beitrag von g.burck »

Moin,

zwar habe ich jetzt auch schon mal wieder den opsi client agent erfolgreich verteilt, ich dachte das liegt am erfolgreichen Update auf die 4.2, aber gerade wieder das Problem an 3 neuen Laptops (hier nur von einem Gerät):

Code: Alles auswählen

ADMIN@ph-opsi:~$ /var/lib/opsi/depot/opsi-client-agent/opsi-deploy-client-agent -u 'peiker-holding.de\ADMIN' -c pcee-nb033.peiker-holding.de  -vv                                                     
Password is required for deployment.
Password: 
[6] [2021-07-20 13:20:50.020] [               ] Deploying to Windows.   (__init__.py:117)
[6] [2021-07-20 13:20:50.030] [               ] * BackendManager is creating BackendDispatcher   (_Manager.py:174)
[6] [2021-07-20 13:20:50.032] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-07-20 13:20:50.033] [               ] Loading dispatch config file '/etc/opsi/backendManager/dispatch.conf'   (Dispatcher.py:75)
[6] [2021-07-20 13:20:50.035] [               ] Loading backend config '/etc/opsi/backends/file.conf'   (Dispatcher.py:137)
[6] [2021-07-20 13:20:50.043] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-07-20 13:20:50.049] [               ] Loading backend config '/etc/opsi/backends/mysql.conf'   (Dispatcher.py:137)
[6] [2021-07-20 13:20:50.321] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-07-20 13:20:50.335] [               ] Connecting to mysql://opsi:opsi@localhost/opsi   (MySQL.py:152)
[6] [2021-07-20 13:20:50.377] [               ] Opsi modules file '/etc/opsi/modules' not found   (Backend.py:428)
[6] [2021-07-20 13:20:50.377] [               ] Missing important information about modules. Probably no modules file installed.   (MySQL.py:318)
[6] [2021-07-20 13:20:50.378] [               ] Loading backend config '/etc/opsi/backends/opsipxeconfd.conf'   (Dispatcher.py:137)
[6] [2021-07-20 13:20:50.382] [               ] Backend context was set to <BackendManager()>   (Backend.py:197)
[6] [2021-07-20 13:20:50.382] [               ] Dispatcher backends: ['file', 'mysql', 'opsipxeconfd']   (Dispatcher.py:158)
[6] [2021-07-20 13:20:50.578] [               ] * BackendManager is creating ExtendedConfigDataBackend   (_Manager.py:179)
[6] [2021-07-20 13:20:50.578] [               ] Setting context to backend <ExtendedConfigDataBackend(configDataBackend=<BackendDispatcher(dispatchConfigFile='/etc/opsi/backendManager/dispatch.conf', context=<BackendManager()>)>)>   (Extended.py:108)
[6] [2021-07-20 13:20:50.655] [               ] Got hostId pcee-nb033.peiker-holding.de   (windows.py:218)
[5] [2021-07-20 13:20:50.683] [               ] Starting deployment to host pcee-nb033.peiker-holding.de   (windows.py:99)
[5] [2021-07-20 13:20:50.683] [               ] Querying for ip address of host pcee-nb033.peiker-holding.de   (common.py:158)
[6] [2021-07-20 13:20:50.684] [               ] Getting host pcee-nb033.peiker-holding.de by name   (common.py:160)
[5] [2021-07-20 13:20:50.686] [               ] Got ip address 10.0.65.133 from syscall   (common.py:167)
[5] [2021-07-20 13:20:50.687] [               ] Pinging host 10.0.65.133 ...   (common.py:183)
[6] [2021-07-20 13:20:50.688] [               ] Executing: ping -q -c2 10.0.65.133   (Posix.py:912)
[6] [2021-07-20 13:20:50.695] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-07-20 13:20:51.709] [               ] Host 10.0.65.133 is up   (common.py:194)
[5] [2021-07-20 13:20:51.773] [               ] Testing winexe   (windows.py:222)
[6] [2021-07-20 13:20:51.783] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-07-20 13:20:51.790] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-07-20 13:20:51.803] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-07-20 13:20:51.804] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORD' //pcee-nb033.peiker-holding.de 'cmd.exe /C "del /s /q c:\\tmp\\opsi-client-agent_inst && rmdir /s /q c:\\tmp\\opsi-client-agent_inst || echo not found"'   (Posix.py:912)
[6] [2021-07-20 13:20:51.810] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-07-20 13:20:53.782] [               ] Patching config.ini   (windows.py:103)
[6] [2021-07-20 13:20:53.782] [               ] Copying from 'files/opsi/cfg/config.ini' to '/tmp/AvvW8fy7WW_config.ini'   (__init__.py:267)
[6] [2021-07-20 13:20:53.784] [               ] Copy done   (__init__.py:275)
[5] [2021-07-20 13:20:53.789] [               ] Copying installation files   (windows.py:117)
[6] [2021-07-20 13:20:53.790] [               ] Executing: /usr/bin/smbclient -m SMB3 -d 9 //pcee-nb033.peiker-holding.de/c$ -U 'peiker-holding.de\ADMIN%PASSWORD' -c 'prompt; recurse; md tmp; cd tmp; md opsi-client-agent_inst; cd opsi-client-agent_inst; mput files; mput utils; cd files\opsi\cfg; lcd /tmp; put AvvW8fy7WW_config.ini config.ini; exit;'   (Posix.py:912)
[6] [2021-07-20 13:20:53.797] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-07-20 13:21:29.376] [               ] Installing opsi-client-agent   (windows.py:128)
[6] [2021-07-20 13:21:29.377] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-07-20 13:21:29.385] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-07-20 13:21:29.397] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-07-20 13:21:29.398] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORD' //pcee-nb033.peiker-holding.de 'c:\\tmp\\opsi-client-agent_inst\\files\\opsi\\opsi-winst\\winst32.exe /batch c:\\tmp\\opsi-client-agent_inst\\files\\opsi\\setup.opsiscript c:\\tmp\\opsi-client-agent.log /PARAMETER REMOTEDEPLOY'   (Posix.py:912)
[6] [2021-07-20 13:21:29.404] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-07-20 13:21:32.568] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-07-20 13:21:32.575] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-07-20 13:21:32.586] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-07-20 13:21:32.587] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORD' //pcee-nb033.peiker-holding.de 'cmd.exe /C "del /s /q c:\\tmp\\opsi-client-agent_inst && rmdir /s /q c:\\tmp\\opsi-client-agent_inst"'   (Posix.py:912)
[6] [2021-07-20 13:21:32.593] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-07-20 13:21:33.018] [               ] opsi-client-agent successfully installed on pcee-nb033.peiker-holding.de   (windows.py:155)
[6] [2021-07-20 13:21:33.020] [               ] Updating productOnClient <ProductOnClient(clientId='pcee-nb033.peiker-holding.de', productId='opsi-client-agent', installationStatus='installed', actionRequest=None)>   (Extended.py:1835)
[6] [2021-07-20 13:21:33.055] [               ] ProductOnClient <ProductOnClient(clientId='pcee-nb033.peiker-holding.de', productId='opsi-client-agent', installationStatus='installed', actionRequest=None)> exists, updating   (Extended.py:1840)
[6] [2021-07-20 13:21:33.093] [               ] Executing: /usr/bin/winexe -V   (Posix.py:912)
[6] [2021-07-20 13:21:33.100] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[6] [2021-07-20 13:21:33.111] [               ] Winexe Version: winexe version 4.13This program may be freely redistributed under the terms of the GNU GPLv3   (windows.py:60)
[6] [2021-07-20 13:21:33.111] [               ] Executing: /usr/bin/winexe -d 9 -U 'peiker-holding.de\ADMIN%PASSWORD' //pcee-nb033.peiker-holding.de 'net start opsiclientd'   (Posix.py:912)
[6] [2021-07-20 13:21:33.119] [               ] Using encoding 'UTF-8'   (Posix.py:942)
[5] [2021-07-20 13:21:35.201] [               ] 1/1 deployments successfully   (__init__.py:210)

Im opsiconfd bzw. auf dem Server sind die Geräte aber angelegt.
opsi config editor Version 4.1.9.3.3 (2020/04/27

opsiconfd 4.2.0.179
g.burck
Beiträge: 120
Registriert: 23 Mai 2018, 16:44

Re: Installation opsi-client-agent schlägt fehl

Beitrag von g.burck »

Hier die logs vom Gerät selber, da wird ein Fehler in der VC_RED Installation angezeigt:

Code: Alles auswählen

[5] [2021-07-20 13:33:40.312] []   Execution of ExecWith_autoit_vc_redist "c:\tmp\opsi-client-agent_inst\files\opsi\autoit3.exe" WINST /letThemGo /EscapeStrings
[7] [2021-07-20 13:33:40.312] []     Save to file with encoding: system
[6] [2021-07-20 13:33:40.313] []     Start process as invoker: admingb
[6] [2021-07-20 13:33:40.319] []     Started process "c:\tmp\opsi-client-agent_inst\files\opsi\autoit3.exe" with Opt: c:\opsi.org\tmp\_opsiscript_Tp820WKyx4.cmd
[6] [2021-07-20 13:33:40.319] []     ExitCode 0    Executed process ""c:\tmp\opsi-client-agent_inst\files\opsi\autoit3.exe"  c:\opsi.org\tmp\_opsiscript_Tp820WKyx4.cmd  "
[5] [2021-07-20 13:33:40.323] []   Execution of: Winbatch_vc_redist_msi
[5] [2021-07-20 13:33:40.323] []   
[6] [2021-07-20 13:33:40.323] []     Call "msiexec /i "c:\tmp\opsi-client-agent_inst\files\opsi\deps\VC_RED.MSI" /qb-! /l* "c:\opsi.org\log\vcredist_msi.log" ALLUSERS=1 REBOOT=ReallySuppress"
[6] [2021-07-20 13:33:40.323] []        Waiting until the called process is finished
[6] [2021-07-20 13:33:40.323] []     Start process as invoker: admingb
[6] [2021-07-20 13:33:40.326] []     Started process "msiexec" with Opt: /i\r\n"c:\tmp\opsi-client-agent_inst\files\opsi\deps\VC_RED.MSI"\r\n/qb-!\r\n/l*\r\n"c:\opsi.org\log\vcredist_msi.log"\r\nALLUSERS=1\r\nREBOOT=ReallySuppress
[6] [2021-07-20 13:33:40.381] []     ExitCode 1619    Executed process "msiexec /i "c:\tmp\opsi-client-agent_inst\files\opsi\deps\VC_RED.MSI" /qb-! /l* "c:\opsi.org\log\vcredist_msi.log" ALLUSERS=1 REBOOT=ReallySuppress"
[7] [2021-07-20 13:33:40.381] []       output:
[7] [2021-07-20 13:33:40.381] []       --------------
[7] [2021-07-20 13:33:40.381] []       D
[7] [2021-07-20 13:33:40.381] []       --------------
[6] [2021-07-20 13:33:40.383] []   
[6] [2021-07-20 13:33:40.383] []   ~~~~~~~ Start Sub ~~~~~~~  Sub_check_exitcode
[5] [2021-07-20 13:33:40.383] []   comment: Test for installation success via exit code
[6] [2021-07-20 13:33:40.384] []   Set  $INST_ExitCode$ = getLastExitCode
[6] [2021-07-20 13:33:40.384] []     The value of the variable "$INST_ExitCode$" is now: "1619"
[6] [2021-07-20 13:33:40.384] []   If
[7] [2021-07-20 13:33:40.384] []     $INST_ExitCode$ = "0"   <<< result false
[6] [2021-07-20 13:33:40.384] []     ($INST_ExitCode$ = "0")   <<< result false
[6] [2021-07-20 13:33:40.384] []   Then
[6] [2021-07-20 13:33:40.384] []   Else
[5] [2021-07-20 13:33:40.384] []     comment: Setup program gives a exitcode unequal zero: 1619
[6] [2021-07-20 13:33:40.384] []     If
[7] [2021-07-20 13:33:40.384] []       $INST_ExitCode$ = "1603"   <<< result false
[6] [2021-07-20 13:33:40.384] []       ($INST_ExitCode$ = "1603")   <<< result false
[6] [2021-07-20 13:33:40.384] []     Then
[6] [2021-07-20 13:33:40.385] []     Else
[6] [2021-07-20 13:33:40.385] []       If
[7] [2021-07-20 13:33:40.385] []         $INST_ExitCode$ = "1605"   <<< result false
[6] [2021-07-20 13:33:40.385] []         ($INST_ExitCode$ = "1605")   <<< result false
[6] [2021-07-20 13:33:40.385] []       Then
[6] [2021-07-20 13:33:40.385] []       Else
[6] [2021-07-20 13:33:40.385] []         If
[7] [2021-07-20 13:33:40.385] []           $INST_ExitCode$ = "1641"   <<< result false
[6] [2021-07-20 13:33:40.385] []           ($INST_ExitCode$ = "1641")   <<< result false
[6] [2021-07-20 13:33:40.385] []         Then
[6] [2021-07-20 13:33:40.385] []         Else
[6] [2021-07-20 13:33:40.385] []           If
[7] [2021-07-20 13:33:40.385] []             $INST_ExitCode$ = "3010"   <<< result false
[6] [2021-07-20 13:33:40.385] []             ($INST_ExitCode$ = "3010")   <<< result false
[6] [2021-07-20 13:33:40.385] []           Then
[6] [2021-07-20 13:33:40.386] []           Else
[3] [2021-07-20 13:33:40.386] []             Error: Fatal: Setup program gives an unknown exitcode unequal zero: 1619
[6] [2021-07-20 13:33:40.386] []             Set  $INST_ErrorList$ = addtolist($INST_ErrorList$, " Error in Sub_check_exitcode: Fatal: Setup program gives an unknown exitcode unequal zero: " + $INST_ExitCode$)
[7] [2021-07-20 13:33:40.386] []               The value of the variable "$INST_ErrorList$" is now:
[7] [2021-07-20 13:33:40.386] []               (string   0) Error in Sub_check_exitcode: Fatal: Setup program gives an unknown exitcode unequal zero: 1619
[6] [2021-07-20 13:33:40.386] []           EndIf
[6] [2021-07-20 13:33:40.386] []         EndIf
[6] [2021-07-20 13:33:40.386] []       EndIf
[6] [2021-07-20 13:33:40.386] []     EndIf
[6] [2021-07-20 13:33:40.386] []   EndIf
[6] [2021-07-20 13:33:40.386] []   
[6] [2021-07-20 13:33:40.386] []   ~~~~~~~ End Sub   ~~~~~~~  Sub_check_exitcode
opsi config editor Version 4.1.9.3.3 (2020/04/27

opsiconfd 4.2.0.179
Benutzeravatar
n.doerrer
uib-Team
Beiträge: 23
Registriert: 23 Okt 2020, 16:11

Re: Installation opsi-client-agent schlägt fehl

Beitrag von n.doerrer »

Moin,

ja, der Teil der Installation von VC_Redist scheint das Problem zu sein.
Aus dem log-Abschnitt ist allerdings nicht ersichtlich, warum es dabei fehlschlägt. Wild guess wäre, dass der Windows Defender oder ein anderes Anti-Malware-Programm dazwischenhaut und autoit3.exe blockt. Etwas Derartiges halte ich für wahrscheinlich, wenn das Problem nur gelegentlich auftritt.

Übrigens: in opsi-client-agent 4.2.0.0 (aktuell noch in experimental) haben wir die Installation von vc_redist (und generell das ganze Setup) umgebaut, simpler und robuster gemacht. Eventuell wäre es damit einen Versuch wert.

Zu dem nicht zensierten Passwort in opsi-deploy-client-agent: Das war Resultat eines Bugs und ist in opsi-client-agent 4.1.1.41-1 (aktuell in stable) gefixt.
Jan.Schmidt
Beiträge: 215
Registriert: 08 Jul 2017, 12:02

Re: Installation opsi-client-agent schlägt fehl

Beitrag von Jan.Schmidt »

Hi,

ein msi 1619 ist zu 99% darauf zurückzuführen, das der installer das msi nicht findet.
Geh mal auf einem Rechner in die Ereignisanzeige
* Anwendungs- und Dienstprotokolle
** Microsoft
*** Windows
**** Windows Defender.

Zu dem Zeitpunkt kann ja keine anderer Antivir aktiv sein die Maschine ist ja frisch aufgesetzt oder??? -< Frage
g.burck
Beiträge: 120
Registriert: 23 Mai 2018, 16:44

Re: Installation opsi-client-agent schlägt fehl

Beitrag von g.burck »

Den Defender hatte ich auch schon im sinn. IMHO habe ich da schon öfters den winexesvc.exe freigeben müssen, wie bei anderen AVs auch,...

Ich bin habe den betroffenen Geräten jetzt das ganze über die service_setup.cmd gemacht.
Hier gibt es auch keine Probleme.

Mal sehen, wann wir wieder ein Gerät neu bestücke.
opsi config editor Version 4.1.9.3.3 (2020/04/27

opsiconfd 4.2.0.179
Antworten