Seite 1 von 1

opsi-deploy-client-agent winexe: Syntax error: Unterminated quoted string

Verfasst: 03 Jul 2019, 15:57
von segro
Hallo zusammen,

ausnahmsweise mal eine Lösung statt einer Frage ,-)

ich hab mich immer gewundert, warum das deployment vie python script bei machne opsi servern ging, bei manchen NIE. Da kam dann z.B so eine Fehlermeldung:

Code: Alles auswählen

root@install2:/var/lib/opsi/depot/opsi-client-agent# ./opsi-deploy-client-agent -u"DOMAIN\\admin2" -p"xxxxx" -c host123.domain.de -v -o
Starting deployment to host u'host123.domain.de'
Querying for ip address of host u'host123.domain.de'
Got ip address '10.0.1.36' from syscall
Pinging host '10.0.1.36' ...
Host 10.0.1.36 is up
Testing winexe
Failed to get version: Command './winexe -V' failed (2):
./winexe: 1: ./winexe:ELF: not found
./winexe: 2: ./winexe: Syntax error: Unterminated quoted string
Failed to get version: Command './winexe -V' failed (2):
./winexe: 1: ./winexe:ELF: not found
./winexe: 2: ./winexe: Syntax error: Unterminated quoted string
Deployment to 'host123.domain.de' failed: Failed to execute command on host u'host123.domain.de': winexe error: Command './winexe -U 'DOMAIN\admin2%*** confidential ***' //host123.domain.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"'' failed (2):
./winexe: 1: ./winexe:ELF: not found
./winexe: 2: ./winexe: Syntax error: Unterminated quoted string

des Rätsels Lösung fand ich in dem Python script selber, schade, dass das nicht als Fehler ausgegeben wurde...

Code: Alles auswählen

 apt install opsi-windows-support
das installiert nämlich die korrekte wine-version .
Danach lief es sofort!

Re: opsi-deploy-client-agent winexe: Syntax error: Unterminated quoted string

Verfasst: 03 Jul 2019, 18:21
von ThomasT
Nur um Missverständnissen vorzubeugen, es geht um die winexe, das hat nichts mit wine zu tun.

Das von dir beschriebene Paket opsi-windows-support wird im Getting Started allerdings mitinstalliert...