How do we get jenkins diagnostics from slave

45 views
Skip to first unread message

Parag Paul

unread,
Jan 19, 2015, 3:34:27 PM1/19/15
to jenkins...@googlegroups.com
The console output is not enough. For me, only for one of the GIT respositories, a fetch from the repo keeps failing. This is a local git server that we have setup on a OSX box


We keep getting this error on the slave
Error fetching remote repo 'origin'

We are running jenkins master on another OSX box and that has credentials plugin setup. The credentials work fine, when I use my github repository URL but not when i used the local git box.
I have seen numerous answers around the same problem but did not get any help. I set up a local osx-keychain through credential-helper but could not get it to work. It fails all the time with the same error messahe


Mark Waite

unread,
Jan 19, 2015, 4:13:26 PM1/19/15
to jenkins...@googlegroups.com
You might try debugging by creating build steps which perform the operations you need, rather than using the git plugin to perform those operations.  Then you can enable the debugging options or levels which best suit your needs.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/82434764-5a18-473b-a57a-6edb15b937cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Parag Paul

unread,
Jan 19, 2015, 4:32:50 PM1/19/15
to jenkins...@googlegroups.com
Is there a place where I can find , the exact commands that the git plugin uses ?

Parag Paul

unread,
Jan 19, 2015, 4:34:07 PM1/19/15
to jenkins...@googlegroups.com
I would like to extend the past reply. Srry for pressing hit too soon. 
What is the right way to find the exact operations that the git plugin does. In the cases , where the slave and the master is in the same box, I see that it mentioned
"Using .gitcredentials"

I dont see it in the slave machine. 

Parag Paul

unread,
Jan 19, 2015, 4:54:08 PM1/19/15
to jenkins...@googlegroups.com
After some wondering with the System Log in the Manage Jenkins ->Sytem Log, 
I was able to add a logger for hudson.plugins.git  but it has very minimal output. It only posts, the the followig
Jan 19, 2015 1:47:05 PM FINE hudson.Proc
Running: git rev-parse --is-inside-work-tree
Jan 19, 2015 1:47:05 PM FINE hudson.Proc
Running: git config remote.origin.url https://localgitserveir/git/AXP.git
Jan 19, 2015 1:47:05 PM FINE hudson.Proc
Running: git --version

and nothing more. It is at tghis point, where the log ends saying, error fetching remote

Mark Waite

unread,
Jan 19, 2015, 8:43:27 PM1/19/15
to jenkins...@googlegroups.com
That's all the logging there is from the git plugin.  The console log is usually sufficiently verbose to provide everything I need for problem diagnosis.

If you execute those commands from a job on the slave, do you see the same results?

If you create a job that runs on the slave which only performs a "git clone https://localgitserveir/git/AXP.git", does it fail with the same message?

If you create a job that runs on the slave and performs "git init;git config remote.origin.url https://localgitserveir/git/AXP.git;git fetch origin;git checkout -f origin/master", does it fail with the same message?

Is your git repository using one or more submodules?  If so, do those submodule repositories require authentication?  If so, then you'll need to find another way of performing the checkout.  The git plugin does not support applying credentials to "git submodule update".

Mark Waite


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



--
Thanks!
Mark Waite

Parag Paul

unread,
Jan 20, 2015, 12:36:27 PM1/20/15
to jenkins...@googlegroups.com
hi Mark
From the log it only shows that the last command that was executed by the git plugin is 
 git --version
 it did not do git checkout -f origin/master or origin/main

And if I do the commands lik git --version, it works fine. I have the git version 1.9.3 on my mac box

Now, for sub modules. No I dont have different sub modules. It is one simple repository and there is no mix of it

I did login as the same ssh user that Jenkins master is using to create the slave. 

The problem is that i have tried 3 slave mchines , creating them seprately, trying the ssh start.One of them I tried with java start way so that I could get a UI terminal. 

The other thing I am yet to try is ssh with a private key. I will try that in one hour and up date. But I am stuck for a week now on this. There should be more diagnostics that this. The lastresort is to debug the goit plugin. Is there any way that i could do so ,?
 Where can I find sintructions for the same? It would really help me .

Parag Paul

unread,
Jan 20, 2015, 6:28:36 PM1/20/15
to jenkins...@googlegroups.com
Also, adding to the thread
>>If you create a job that runs on the slave which only performs a "git clone https://localgitserveir/git/AXP.git", does it fail with the same message?

It fails with the cannot read the username message . Device not configured

Is there any way to fix this issue
Reply all
Reply to author
Forward
0 new messages