Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LGit_GIT_ERROR while building a project on Jenkins #493

Closed
jecisc opened this issue Oct 25, 2017 · 5 comments
Closed

LGit_GIT_ERROR while building a project on Jenkins #493

jecisc opened this issue Oct 25, 2017 · 5 comments
Labels
Milestone

Comments

@jecisc
Copy link
Contributor

jecisc commented Oct 25, 2017

Pharo version: Lastest 7

OS: Unix

I tried to add Pharo 7 to MaterialDesignLite build on Jenkins but I get this error: LGit_GIT_ERROR: error authenticating: no auth sock variable

See: https://ci.inria.fr/pharo-contribution/job/MaterialDesignLite/PHARO=70,VERSION=master/310/console

@jecisc
Copy link
Contributor Author

jecisc commented Oct 25, 2017

LGit_GIT_ERROR: error authenticating: no auth sock variable
LGitReturnCodeEnum>>handleLGitReturnCode
LGitRepository(LGitExternalObject)>>withReturnHandlerDo:
LGitRepository>>clone:options:to:
LGitRepository>>clone:options:
[ | repo cloneOptions |
repo := LGitRepository on: self location.
cloneOptions := LGitCloneOptions
	withCredentialsProvider: IceCredentialsProvider default.
cloneOptions checkoutOptions
	checkoutStrategy: LGitCheckoutStrategyEnum git_checkout_none.
repo clone: url options: cloneOptions.
repo
	checkout:
		(aBranchName
			ifNil:
				[ self branch ifNotNil: [ :b | b name ] ifNil: [ 'master' ] ]).
(LGitRemote of: repo named: 'origin')
	lookup;
	setUrl: url ] in IceLibgitLocalRepository>>cloneRepositoryFrom:branch: in Block: [ | repo cloneOptions |...
[ self checkInitialized.
aBlock value ] in LGitGlobal class>>runSequence: in Block: [ self checkInitialized....
[ activeProcess psValueAt: index put: anObject.
aBlock value ] in LGitActionSequence(DynamicVariable)>>value:during: in Block: [ activeProcess psValueAt: index put: anObject....
BlockClosure>>ensure:
LGitActionSequence(DynamicVariable)>>value:during:
LGitActionSequence class(DynamicVariable class)>>value:during:
LGitGlobal class>>runSequence:
IceLibgitLocalRepository>>cloneRepositoryFrom:branch:
IceRepositoryCreator>>createRepository
[ (IceRepositoryCreator new
	url: remoteUrl;
	subdirectory: repoPath;
	branchName: self projectVersion;
	createRepository) register ] in MCGitHubRepository(MCGitBasedNetworkRepository)>>getOrCreateIcebergRepository in Block: [ (IceRepositoryCreator new...
OrderedCollection(Collection)>>detect:ifFound:ifNone:
OrderedCollection(Collection)>>detect:ifNone:
MCGitHubRepository(MCGitBasedNetworkRepository)>>getOrCreateIcebergRepository
IceGithubRepositoryType>>mcRepository
Iceberg class>>mcRepositoryFor:
IceMetacelloPharoPlatform>>createRepository:
MetacelloMCBaselineProject(MetacelloMCProject)>>createRepository:
MetacelloRepositorySpec>>createRepository
[ aSpec createRepository ] in [ :aSpec | 
| description repo |
description := aSpec description.
(repo := repositories
	detect: [ :rep | rep description = description ]
	ifNone: [ aSpec createRepository ]) ~~ nil
	ifTrue: [ repos add: repo ] ] in MetacelloFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>repositoriesFrom:ignoreOverrides: in Block: [ aSpec createRepository ]
Array(Collection)>>detect:ifFound:ifNone:
Array(Collection)>>detect:ifNone:
[ :aSpec | 
| description repo |
description := aSpec description.
(repo := repositories
	detect: [ :rep | rep description = description ]
	ifNone: [ aSpec createRepository ]) ~~ nil
	ifTrue: [ repos add: repo ] ] in MetacelloFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>repositoriesFrom:ignoreOverrides: in Block: [ :aSpec | ...
Array(SequenceableCollection)>>do:
MetacelloFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>repositoriesFrom:ignoreOverrides:
MetacelloFetchingMCSpecLoader(MetacelloCommonMCSpecLoader)>>repositoriesFrom:
MetacelloPackageSpec>>explicitLoadUsing:

@tesonep
Copy link
Collaborator

tesonep commented Oct 26, 2017 via email

@jecisc
Copy link
Contributor Author

jecisc commented Oct 26, 2017

I don't know how to connect to pharo-contribution's slaves. :(

But in Pharo 61 it works. So it is a newly introduced bug.

@tesonep
Copy link
Collaborator

tesonep commented Oct 26, 2017

The problem is that the environment variable saying the unix socket to use is not present. It works in Pharo 6 because the metacello integration is disabled by default. In Pharo7 is enabled by default.

The bug is that is trying to use SSH when there is a problem. It should try and discard the option

@estebanlm estebanlm added the bug label Dec 7, 2017
@estebanlm estebanlm added this to the 0.6.5 milestone Dec 7, 2017
@estebanlm
Copy link
Collaborator

I will fix this by adding a fallback: if regular clone fails, it will try to clone by HTTPS.

estebanlm added a commit that referenced this issue Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants