opsi-deploy-preloginloader bug

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

opsi-deploy-preloginloader bug

Beitragvon wardenik » 10 Dez 2008, 13:10

opsi:/opt/pcbin/install/preloginloader# ./opsi-deploy-preloginloader pc123
Password:
--------------------------------------------
pc123
--------------------------------------------
[warning] No ping response received from 192.168.100.123
[error] ERROR: Failed to install preloginloader: Command './winexe -U Administrator321Password //pc123 "c:\opsi_sW9wwFizmQ\files\opsi\utils\winst32.exe /batch c:\opsi_sW9wwFizmQ\files\opsi\preloginloader.ins c:\tmp\preloginloader.log /PARAMETER REMOTEDEPLOY"' failed (6): =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 11 in pid 17038 (4.0.0tp3-SVN-build-15926)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
PANIC: internal error
BACKTRACE: 35 stack frames:
#0 [0x82928ff]
#1 [0x8292bf5]
#2 [0x8292d43]
#3 [0x8292d77]
#4 [0xb7f43400]
#5 [0x82b3145]
#6 [0x82b279b]
#7 [0x828fbe9]
#8 [0x828fd3c]
#9 [0x828dd51]
#10 [0x828e20e]
#11 [0x828e778]
#12 [0x8083700]
#13 [0x8088cd9]
#14 [0x8079ab8]
#15 [0x807a5a5]
#16 [0x807a7b2]
#17 [0x807a91b]
#18 [0x821176e]
#19 [0x807fdf8]
#20 [0x821176e]
#21 [0x820e33e]
#22 [0x821176e]
#23 [0x820e8d4]
#24 [0x8219b01]
#25 [0x821a642]
#26 [0x82193aa]
#27 [0x8211500]
#28 [0x807aa80]
#29 [0x807ab21]
#30 [0x8082b53]
#31 [0x80724bf]
#32 [0x8048f23]
#33 [0x82b2003]
#34 [0x8048141]
Zuletzt geändert von wardenik am 29 Jan 2009, 16:28, insgesamt 1-mal geändert.

Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1157
Registriert: 01 Jul 2008, 12:10

Re: opsi-deploy-preloginloader bug

Beitragvon wolfbardo » 10 Dez 2008, 13:16

wardenik hat geschrieben:opsi:/opt/pcbin/install/preloginloader# ./opsi-deploy-preloginloader pc123
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
INTERNAL ERROR: Signal 11 in pid 17038 (4.0.0tp3-SVN-build-15926)
Please read the file BUGS.txt in the distribution
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


check your winexe-Version.

winexe is not a opsi programm but one of the samba project (see also)

viewtopic.php?f=8&t=367

regards
Bardo Wolf


!!! ANMELDEN !!! opsi-Konferenz in Mainz am 02. / 03. März 2020 https://opsiconf.org

opsi workshops

https://uib.de/de/support-schulung/schulung/

Basis
23.-26.3.2020


opsi support by uib gmbh

http://www.uib.de

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: opsi-deploy-preloginloader bug

Beitragvon wardenik » 27 Jan 2009, 15:34

hi,

coming back on this one with more bugs.

opsi:/opt/pcbin/install/preloginloader# /opt/pcbin/install/preloginloader/winexe -V
Version 4.0.0tp3-SVN-build-15926

anyway you can see that in the stacktrace. moreover, wmi-client is not in testing but in unstable in Debian.
So, i have downloaded this file from unstable and replaced it manually but it should be in opsi package anyway (the correct version).

Now it almost works, but:
opsi:/opt/pcbin/install/preloginloader# ./opsi-deploy-preloginloader -r opsiclient
Password:
--------------------------------------------
opsiclient.domain
--------------------------------------------
[error] ->>> 'C:\Program' is not recognized as an internal or external command,
[error] ->>> operable program or batch file.
[error] Failed to reboot computer: Command './winexe -U Administrator%1234 //opsiclient "cmd.exe /C %PROGRAMFILES%\opsi.org\preloginloader\utils\shutdown.exe /L /R /T:20 \"opsi-preloginloader installed - reboot\" /Y /C"' failed (256): 'C:\Program' is not recognized as an internal or external command,
operable program or batch file.

I tested a lot of versions of the ", ', `. and none of them worked.
The only thing that worked was to write Progra~1 instead of longname...
any suggestions on this bug?

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: opsi-deploy-preloginloader bug

Beitragvon wardenik » 27 Jan 2009, 17:56

Und noch eine:

when the Administrator password begins with a capital N, then the opsi-deploy-preloginloader fails:
[error] ERROR: Failed to install preloginloader: Command './winexe -U Administrator321restofpassword
(...)
failed (256): ERROR: Failed to open connection - NT_STATUS_LOGON_FAILURE

because %N is expanded to 321 (!?!)

Benutzeravatar
j.schneider
Ex-uib-Team
Beiträge: 1414
Registriert: 29 Mai 2008, 15:14

Re: opsi-deploy-preloginloader bug

Beitragvon j.schneider » 28 Jan 2009, 10:06

Hi,

thanks for the bug report.
Could you please try the attached version?

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: opsi-deploy-preloginloader bug

Beitragvon wardenik » 28 Jan 2009, 15:32

Hi,

Nope, check the attached log.

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: opsi-deploy-preloginloader bug

Beitragvon wardenik » 29 Jan 2009, 15:49

One fix for sure:
84c84
< execute( '%s -U %s/%s //%s "%s"' % ('./winexe', host, username.replace('\\', '\\\\') + '%' + password, host, cmd) )
---
> execute( '%s -U %s //%s "%s"' % ('./winexe', username.replace('\\', '\\\\') + '%' + password, host, cmd) )

but the second problem is still unsolved (with restart command not working because of long "Program files")

Benutzeravatar
j.schneider
Ex-uib-Team
Beiträge: 1414
Registriert: 29 Mai 2008, 15:14

Re: opsi-deploy-preloginloader bug

Beitragvon j.schneider » 29 Jan 2009, 16:26

Thank you for the fix!

Benutzeravatar
j.schneider
Ex-uib-Team
Beiträge: 1414
Registriert: 29 Mai 2008, 15:14

Re: opsi-deploy-preloginloader bug

Beitragvon j.schneider » 29 Jan 2009, 17:11

Hi wardenik,

could you please test this:

Code: Alles auswählen

cmd = 'cmd.exe /C \\"\\"%PROGRAMFILES%\\\\opsi.org\\\\preloginloader\\\\utils\\\\shutdown.exe\\" /L /R /T:20 \\"opsi-preloginloader installed - reboot\\" /Y /C\\"'

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: opsi-deploy-preloginloader bug

Beitragvon wardenik » 29 Jan 2009, 17:20

works!
many thanks :)
I will modify shutdown the same way of course.