ich hab auf unserem opsi 4.2 server jetzt mal das aktuelle OCA Paket aus dem stable installiert.
Beim Updaten der Clients (Paket steht auf setup) bricht er aber ab und lässt den Dienst auf dem Client in einem nicht mehr funktionierenden Zustand zurück. Das Problem entsteht offenbar beim Umbenennen des Ordners C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd_windows_x86, da er dafür keine Rechte hat. Es erschließt sich mir allerdings auch nicht warum das so sein sollte.
Wenn ich danach versuche auf dem Client den OCA nochmal zu installiere via service_cmd, dann tritt dort das gleiche Problem auf. Wenn ich den Ordner opsiclientd_windows_x86 danach einfach lösche und den Installer noch einmal ausführe, lässt sich der OCA wieder installieren.
Was sollte passieren?
opsi-client-agent update auf 4.2.0.14-1
Was ist passiert?
Abbruch der Installation.
Sind im Log Fehlermeldungen zu sehen?
ja
Code: Alles auswählen
(561) [5] [2021-12-01 17:20:28.194] [opsi-client-agent] PowershellCall Executing: Rename-Item "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd_windows_x86" "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd_bin" ; mode: sysnative
(562) [7] [2021-12-01 17:20:28.194] [opsi-client-agent] DisableWow64FsRedirection succeeded
(563) [6] [2021-12-01 17:20:28.194] [opsi-client-agent] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "powershell.exe get-executionpolicy"
(564) [7] [2021-12-01 17:20:28.749] [opsi-client-agent] ExitCode 0
(565) [7] [2021-12-01 17:20:28.749] [opsi-client-agent] RevertWow64FsRedirection succeeded
(566) [7] [2021-12-01 17:20:28.750] [opsi-client-agent] DisableWow64FsRedirection succeeded
(567) [6] [2021-12-01 17:20:28.750] [opsi-client-agent] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "powershell.exe set-executionpolicy RemoteSigned"
(568) [7] [2021-12-01 17:20:29.615] [opsi-client-agent] ExitCode 1
(569) [7] [2021-12-01 17:20:29.615] [opsi-client-agent] RevertWow64FsRedirection succeeded
(570) [6] [2021-12-01 17:20:29.615] [opsi-client-agent]
(571) [6] [2021-12-01 17:20:29.615] [opsi-client-agent] Execution of tmp-internal powershell.exe winst /sysnative
(572) [7] [2021-12-01 17:20:29.619] [opsi-client-agent] Save to file with encoding: system
(573) [6] [2021-12-01 17:20:30.747] [opsi-client-agent] ExitCode 0
(574) [7] [2021-12-01 17:20:30.750] [opsi-client-agent] The file: c:\opsi.org\tmp\_opsiscript_n9L1Ct9fI5.ps1 has been deleted
(575) [7] [2021-12-01 17:20:30.750] [opsi-client-agent] Search "c:\opsi.org\tmp\_opsiscript_*"
(576) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] output:
(577) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] --------------
(578) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] Rename-Item : Der Zugriff auf den Pfad "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd_windows_x86"
(579) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] wurde verweigert.
(580) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] In C:\opsi.org\tmp\_opsiscript_n9L1Ct9fI5.ps1:2 Zeichen:1
(581) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] + Rename-Item "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsicl ...
(582) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(583) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] + CategoryInfo : WriteError: (C:\Program File...ntd_windows_x86:String) [Rename-Item], IOException
(584) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand
(585) [7] [2021-12-01 17:20:30.751] [opsi-client-agent]
(586) [7] [2021-12-01 17:20:30.751] [opsi-client-agent]
(587) [7] [2021-12-01 17:20:30.751] [opsi-client-agent] DisableWow64FsRedirection succeeded
(588) [6] [2021-12-01 17:20:30.751] [opsi-client-agent] ShellCall Executing: "C:\WINDOWS\system32\\cmd.exe" /C "powershell.exe set-executionpolicy Unrestricted"
(589) [7] [2021-12-01 17:20:31.302] [opsi-client-agent] ExitCode 0
(590) [7] [2021-12-01 17:20:31.302] [opsi-client-agent] RevertWow64FsRedirection succeeded
(591) [6] [2021-12-01 17:20:31.305] [opsi-client-agent] If
(592) [6] [2021-12-01 17:20:31.309] [opsi-client-agent] Starting query if file exists ...
(593) [6] [2021-12-01 17:20:31.309] [opsi-client-agent] Not found: "C:\Program Files (x86)\opsi.org\opsi-client-agent\opsiclientd_bin\opsiclientd.exe":
(594) [7] [2021-12-01 17:20:31.309] [opsi-client-agent] FileExists($BaseDir$ + "\opsiclientd_bin\opsiclientd.exe") <<< result false
(595) [6] [2021-12-01 17:20:31.309] [opsi-client-agent] not (FileExists($BaseDir$ + "\opsiclientd_bin\opsiclientd.exe")) <<< result true
(596) [6] [2021-12-01 17:20:31.309] [opsi-client-agent] Then
(597) [3] [2021-12-01 17:20:31.309] [opsi-client-agent] Error: Failed to install opsiclientd binaries
(598) [2] [2021-12-01 17:20:31.310] [opsi-client-agent] Error level set to fatal
(599) [6] [2021-12-01 17:20:31.310] [opsi-client-agent] Process aborted
(600) [6] [2021-12-01 17:20:31.310] [opsi-client-agent]
(601) [6] [2021-12-01 17:20:31.310] [opsi-client-agent] ~~~~~~~ End Sub ~~~~~~~ Sub_install_opsiclientd
Update opsi-client-agent von 4.1.1.47-1 auf 4.2.0.14-1
Bei welche Versionen der beteiligten Komponenten tritt das Problem auf?
4.2.0.14-1