Jenkins + Windows slave replacement = problem

103 views
Skip to first unread message

Alfred Sawaya

unread,
Jul 28, 2015, 12:58:27 PM7/28/15
to Jenkins Users
Hello,

I have a problem with Jenkins. 

I have a windows host, I use jnlp to connect.
When I first run the job, it creates the workspace dir, the job dir, the .git dir with the good config, but the fetch fail. 
If I go to the job dir and run the fetch by hand, it works. 
The job never go further the fetch step. It used to work, but I have reinstalled the compilation slave. It still work on the old slave, and the configuration is good (PATH, etc.). It seems not to be a slave configuration or a Jenkins configuration issue.

Here is the log : http://pastebin.com/3uA7DyPc

Any idea, please ?

Thank you,

Chanda Unmack

unread,
Jul 28, 2015, 6:36:20 PM7/28/15
to jenkins...@googlegroups.com

--
 
I ran into that more than once on windows slaves, but was never the same issue twice.  
Are you using a system account? if so, have you updated your credentials in the right place for the system account? If you're using a specific account, was that the same account you logged in as which worked? Do you have the HOME environment variable set for that user?

With more recent versions of the git plugin, you can change the timeout, have you tried changing the timeout to be > 10min? 

Maybe a little more information will help others help you pinpoint the difference between the old and rebuilt slave.

chanda

Alfred Sawaya

unread,
Jul 29, 2015, 5:33:54 AM7/29/15
to jenkins...@googlegroups.com
Hello Chanda,

Thank you for your reply.

Actually, I have found the problem. On Windows 32 bits, I must use C:\Program Files\Git\cmd\git.exe and on 64 bits ...\bin\git.exe... It's not a Jenkins bug.

Now I have some other errors... maybe not because of Jenkins, but as usual the build works without Jenkins.


On my Windows 2003 64 bits :
C:\Program Files (x86)\Git\bin\sh.exe: *** fork: can't reserve memory for stack 0x4A0000 - 0x6A0000, Win32 error 0
      0 [main] sh 1800 sync_with_child: child 2004(0x71C) died before initialization with status code 0x1
   4717 [main] sh 1800 sync_with_child: *** child state waiting for longjmp
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\1\hudson466784039591434222.sh: fork: Resource temporarily unavailable
Build step 'Exécuter un script shell' marked build as failure
Finished: FAILURE

In fact, when I do a "sh" in a "sh" in cmd.exe, I have the same error, but if I use C:\windows\syswow64\cmd.exe, it works. So, How can I tell Jenkins to use the latter cmd.exe ?


The other error is on a Windows 2008 R2 64 bits slave : 

CMake Error at c:/Program Files (x86)/CMake/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "c:/TDM-GCC/bin/gcc.exe" is not able to compile a simple
  test program.

  It fails with the following output:

   Change Dir: C:/Nadra/workspace/test_win2/cmake_w/release/CMakeFiles/CMakeTmp

  

  Run Build Command:c:/MinGW/bin/make.exe "cmTryCompileExec2205426971/fast"

  c:/MinGW/bin/make.exe -f
  CMakeFiles/cmTryCompileExec2205426971.dir/build.make
  CMakeFiles/cmTryCompileExec2205426971.dir/build


  c:/MinGW/bin/make.exe: Interrupt/Exception caught (code = 0xc0000005, addr
  = 0x759b43f9)


  make.exe: *** [cmTryCompileExec2205426971/fast] Error 255


  
But the PATH is the same on Jenkins and on my host (I print $PATH in the job).
And when I run cmake from cmd.exe, it works...

I use the last version of Jenkins (1.622), and the slaves use JNLP to connect the master.

Thank you,

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/djB9NeNkFvE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAEMChJiGHgPrL3KGoa2wJ-XQ4NyAVQnp9xsJpevOuioUpr_Sog%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--


    .''`.
   : :'  :   .:: Alfred Sawaya ::.
   `. `'`
     `-
Reply all
Reply to author
Forward
0 new messages