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

Bamboo에서 agent.java 사용 시 Remote Agent가 정상 동작하지 않는 현상 #1006

Open
rolestack opened this issue Jul 16, 2024 · 0 comments

Comments

@rolestack
Copy link

Bamboo 버전: DC 9.6.2

Remote Agent가 동작하지 않을 때 로그를 보면 git command 관련한 에러가 발생하면서 레포지토리 연결이 이루어지지 않습니다...

2024-07-16 12:00:00,068 ERROR [22-TagDetectionBackgroundThread:pool-23-thread-2] [TagDetectionServiceImpl] An exception occurred when trying to read and handle tags from repository
com.atlassian.bamboo.plugins.git.GitCommandException: Unable to parse git command output: 0, stderr:

	at com.atlassian.bamboo.plugins.git.GitCommandProcessor$1.load(GitCommandProcessor.java:233) ~[?:?]
	at com.atlassian.bamboo.plugins.git.GitCommandProcessor$1.load(GitCommandProcessor.java:221) ~[?:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:4019) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4042) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5024) ~[guava-32.1.3-jre.jar:?]
	at com.atlassian.bamboo.plugins.git.GitCommandProcessor.getGitVersion(GitCommandProcessor.java:251) ~[?:?]
	at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.<init>(NativeGitOperationHelper.java:133) ~[?:?]
	at com.atlassian.bamboo.plugins.git.GitOperationHelperFactory.createGitOperationHelper(GitOperationHelperFactory.java:57) ~[?:?]
	at com.atlassian.bamboo.plugins.git.v2.GitBranchDetector.getOpenBranches(GitBranchDetector.java:50) ~[?:?]
	at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.getOpenBranchesCaller(RepositoryCachingFacadeImpl.java:67) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.call(RepositoryCachingFacadeImpl.java:56) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl$1.call(RepositoryCachingFacadeImpl.java:51) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:39) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CallableResultCache$1.load(CallableResultCache.java:35) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3576) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2318) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2191) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2081) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache.get(LocalCache.java:4019) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4042) ~[guava-32.1.3-jre.jar:?]
	at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5024) ~[guava-32.1.3-jre.jar:?]
	at com.atlassian.bamboo.utils.collections.AlwaysInvalidatingCacheDecorator.get(AlwaysInvalidatingCacheDecorator.java:65) ~[atlassian-bamboo-utils-9.6.2.jar:?]
	at com.atlassian.bamboo.utils.collections.AlwaysInvalidatingCacheDecorator.getUnchecked(AlwaysInvalidatingCacheDecorator.java:126) ~[atlassian-bamboo-utils-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CallableResultCache.call(CallableResultCache.java:142) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.repository.RepositoryCachingFacadeImpl.getOpenBranches(RepositoryCachingFacadeImpl.java:74) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.handleRepositoryExceptionForDeletedBranch(DefaultChangeDetectionManager.java:621) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.handleRepositoryExceptionForDeletedBranchWithRetry(DefaultChangeDetectionManager.java:651) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectionChangesWithRetry(DefaultChangeDetectionManager.java:607) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.lambda$createBuildRepositoryChanges$3(DefaultChangeDetectionManager.java:504) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:115) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildInternal(DefaultChangeDetectionManager.java:462) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:307) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceRevisions(DefaultChangeDetectionManager.java:234) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.DefaultChangeDetectionManager.collectChangesSinceLastBuildIfTriggered(DefaultChangeDetectionManager.java:145) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.v2.trigger.ChangeDetectionListenerAction.testIfBuildShouldStart(ChangeDetectionListenerAction.java:107) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.lambda$startConditionalBuild$5(PlanExecutionManagerImpl.java:441) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at io.atlassian.util.concurrent.ManagedLocks$ManagedLockImpl.withLock(ManagedLocks.java:293) ~[atlassian-util-concurrent-4.0.1.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionLockServiceImpl.lock(PlanExecutionLockServiceImpl.java:69) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.doWithProcessLock(PlanExecutionManagerImpl.java:662) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.startConditionalBuild(PlanExecutionManagerImpl.java:434) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:487) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.PlanExecutionManagerImpl.start(PlanExecutionManagerImpl.java:509) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.DelegatingPlanExecutionManager.start(DelegatingPlanExecutionManager.java:81) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$4.startPlanExecution(NonBlockingPlanExecutionServiceImpl.java:266) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$4.lambda$call$0(NonBlockingPlanExecutionServiceImpl.java:250) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CacheAwareness.lambda$withValuesOlderThanTimestampReloaded$1(CacheAwareness.java:101) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:126) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:100) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.util.CacheAwareness.withValuesOlderThanTimestampReloaded(CacheAwareness.java:151) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$4.call(NonBlockingPlanExecutionServiceImpl.java:249) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at com.atlassian.bamboo.plan.NonBlockingPlanExecutionServiceImpl$4.call(NonBlockingPlanExecutionServiceImpl.java:239) ~[atlassian-bamboo-core-9.6.2.jar:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
	at scouter.agent.wrapper.async.WrTask.run(WrTask.java:35) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48) ~[atlassian-bamboo-api-9.6.2.jar:?]
	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26) ~[atlassian-bamboo-api-9.6.2.jar:?]
	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17) ~[atlassian-bamboo-api-9.6.2.jar:?]
	at com.atlassian.bamboo.security.ImpersonationHelper.lambda$makeRunnableWithSystemAuthority$0(ImpersonationHelper.java:38) ~[atlassian-bamboo-api-9.6.2.jar:?]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant