Thanks!

I do have automatic installation of git, but I already had my master node
labeled `Linux`.  I also have an installer for Git that runs `sudo apt-get
install git` for nodes labeled 'Linux'.

I should note that this issue was resolved but has now reappeared.  I had
the ls-remote error resolved (I believe it was specifying the absolute path
to Git) a while back.  I think I was using Jenkins v1.496 or v1.498.  I
don't know what changed since, other than I've upgraded a few times and am
now on v1.503.  If I get time, I can revert but would rather not.  If there
is something else I can debug or look at, please let me know what it is.

-Jeff


On Thu, Mar 7, 2013 at 4:17 PM, Michaël Pailloncy <[email protected]>wrote:

> We've the same type of error.
>
> Do you use the automatic installation feature of tools like Git, Maven,
> Java ... ?
>
> In our case, the master does not build anything (except admin jobs) and we
> have automatics tools installation activated with HTTP URL pointing
> directly to our internal Nexus which stores all "ziped" tools.
> The master node is not configured with label like "git-1.7" or
> "maven-3.0.4" and the "ls-remote" fails when opening the configuration page
> of any job using Git SCM.
>
>  We don't have sought any solution for the moment because it's not
> blocking and all Git jobs just works fine.
>
> Hope this help !
>
>
> 2013/3/7 Jeff <[email protected]>
>
>> Thanks for the suggestions.  Here is more detail regarding
>> questions/suggestions:  (Jenkins v 1.503)
>>
>> I have one master and 3 slaves.  The master is running as user `tomcat7`.
>>  The slaves run as user `adminuser`.  The master has two build executors,
>> the slaves each have 3.  The Git 'clone' command runs on any of them.  I
>> have verified that the build (including the git clone) has run on master
>> and slave1 successfully.
>>
>> I verified the master has the same key files as the slaves do.   They are
>> located in `/home/tomcat7/.ssh` for the master and `/home/adminuser/.ssh`
>> for the slaves.
>>
>> I can run 'git ls-remote -h' if I manually ssh to the master or slaves
>> and `su` as tomcat7 or adminuser.
>>
>> I've verified that the full path to Git installation in Jenkins config is
>> specified (/usr/bin/git).  If I leave off 'git' and just set it to /usr/bin
>> all Git jobs fail.
>>
>> Fast remote polling is NOT set on any of my jobs.
>>
>>
>>
>>
>> On Thu, Mar 7, 2013 at 6:03 AM, nicolas de loof <[email protected]
>> > wrote:
>>
>>> right, ls-remote is used to validate repository URL (form master) and to
>>> poll scm (single branch)
>>>
>>>
>>> 2013/3/7 Eduardo Dias <[email protected]>
>>>
>>>> I had the same problem and  done what Nicolas suggested and the
>>>> message stopped. Even Jenkins does not use master to build the jenkis
>>>> master try to access repository.
>>>>
>>>>
>>>> 2013/3/7 nicolas de loof <[email protected]>
>>>>
>>>>> does the clone run on master or some slave ?
>>>>>
>>>>> this "ls-remote" command is executed on master, maybe you just miss
>>>>> the adequate ssh key there. Long term plan is to integrate
>>>>> ssh-credentials-plugin in git-plugin to manage this.
>>>>>
>>>>>
>>>>> 2013/3/7 Jeff <[email protected]>
>>>>>
>>>>>> I thought I asked this and fixed it before, but it has come up again
>>>>>> and I am not seeing this in the archives....
>>>>>>
>>>>>> When we setup a job that pulls source from GIT, I see this error
>>>>>> shown below the "Repository URL" box:
>>>>>>
>>>>>>
>>>>>> Failed to connect to repository : Error performing command:
>>>>>> ls-remote -h [email protected]:myRepo/myApp.git HEAD
>>>>>>
>>>>>> or for projects using our internal GitoLIte repo:
>>>>>>
>>>>>>
>>>>>>  Failed to connect to repository : Error performing command:
>>>>>> ls-remote -h [email protected]:myInternalApp.git HEAD
>>>>>>
>>>>>> The project "clone"s and builds just fine, but I don't think the SCM
>>>>>> Polling works properly and I think it is related to the above issue.
>>>>>>
>>>>>> Any idea what it might be?  Google searches indicate that the
>>>>>> absolute path to the git binary must be specified, which I've set
>>>>>> (/usr/bin/git).
>>>>>>
>>>>>> I've set the git user.name/user.email environment values on the job
>>>>>> settings.
>>>>>>
>>>>>> I don't know what else to look at.  Thoughts?
>>>>>>
>>>>>> --
>>>>>> Jeff Vincent
>>>>>> See my LinkedIn profile at:
>>>>>> http://www.linkedin.com/in/rjeffreyvincent
>>>>>> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>>>>>>
>>>>>> --
>>>>>> 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 [email protected].
>>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>  --
>>>>> 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 [email protected].
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Atenciosamente,
>>>>
>>>> Eduardo
>>>>
>>>> --
>>>> 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 [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>>
>>>  --
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Jeff Vincent
>> See my LinkedIn profile at:
>> http://www.linkedin.com/in/rjeffreyvincent
>> I ♥ DropBox <http://db.tt/9O6LfBX> !!
>>
>> --
>> 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 [email protected].
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>
>  --
> 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 [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Jeff Vincent
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent
I ♥ DropBox <http://db.tt/9O6LfBX> !!

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to