Jenkins hanging when running a Wise Installation Studio script

159 views
Skip to first unread message

Eric Black

unread,
Feb 19, 2013, 1:30:31 PM2/19/13
to jenkins...@googlegroups.com
Hi,

I'm having a problem compiling a Wise Installation Studio script from
Jenkins. It sounds like the same problem described here:

http://jenkins.361315.n4.nabble.com/Anyone-use-Hudson-to-build-wise-installation-projects-td376973.html

but I'm already using the '/s' option. The program just hangs. The
command I'm running on Windows XP, is

"C:\Program Files\Altiris\Wise\WiseScript Package Editor\Wise32.exe"
/c /s "c:\Tools\Jenkins\jobs\WiseInstall_test\workspace\MCMG2\Install\WISE
Full Install\XPFull.wse"

From task manager I see it gets stuck after 30 bytes read and 25 bytes
written. I stripped out everything from the Wise script until there is
only a 'Set variable' command. The command works fine from a command
shell, and also from a cygwin window (with the paths adjusted). Within
Jenkins, I tried using a batch script, a nant script, and a cygwin
script, but in all cases, the Wise compilation just hangs. I have
tried everything I could think of, but I am not a Windows guru, so any
advice would be appreciated.

Thanks,
Eric

Eric Black

unread,
Feb 19, 2013, 3:54:41 PM2/19/13
to jenkins...@googlegroups.com
I found the problem. For whatever reason, the drive that Jenkins is on
is not permitted to access the wise script or the Wise compiler,
although I'm not sure which. Since the Wise script is pulled out of
subversion into the Jenkins workspace, I have to think it is the
compiler. I found the problem by installing cruisecontrol and trying
to see if that program (also java) was able to compile it and I got
this error message:

java.io.IOException: Cannot run program
"C:\Tools\cruisecontrol-bin-2.8.4\apache-ant-1.7.0\bin\ant.bat":
CreateProcess error=5, Access is denied

I don't know why Jenkins didn't report the same error (C:\Tools is the
mounted drive). Anyway, I moved all the components to the same drive
and it works now.

Loyal Parsons

unread,
Dec 1, 2014, 12:15:54 PM12/1/14
to jenkins...@googlegroups.com
Hey there,

I am now having this issue when trying to run the wise32.exe from a Windows Batch install step.  I've checked all the permissions and don't seem to have the same issue Eric is relating.

My threadDump shows:

C:\Users\build\AppData\Local\Temp\hudson6027759377308612291.bat: stdout copier" Id=15817 Group=main RUNNABLE (in native)
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(Unknown Source)
at java.io.BufferedInputStream.read1(Unknown Source)
at java.io.BufferedInputStream.read(Unknown Source)
-  locked java.io.BufferedInputStream@17e5394
at java.io.FilterInputStream.read(Unknown Source)
at hudson.util.StreamCopyThread.run(StreamCopyThread.java:60)

Anyone have any ideas here?

Thanks,

-Loyal
Reply all
Reply to author
Forward
0 new messages