Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,459,360
Community Members
 
Community Events
176
Community Groups

Bamboo Java Specs, unable to scan error when pushing bamboo specs code to bitbucket

I am following this tutorial: Tutorial: Bamboo Java Specs stored in Bitbucket Server

When I push the code do bitbucket (Step 5 in the tutorial) I am getting this error in the logs:

Bamboo version is 6.5.0. In Bamboo Security Settings, "Process Bamboo Specs in Docker" is enabled.

Processing Specs within Docker containerUnable to scan repository marcus test (160301286) for Bamboo Specs
com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository marcus test (160301286) for Bamboo Specs
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:687)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl$$Lambda$2446/560958159.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.spotify.docker.client.exceptions.NotFoundException: Either container 80a5315ac086f8481c001a0bc8cfcd62cf8054af92a76fd64cf5df0e092ef021 or path /mnt/input not found.
	at com.spotify.docker.client.DefaultDockerClient.copyToContainer(DefaultDockerClient.java:962)
	at com.spotify.docker.client.DefaultDockerClient.copyToContainer(DefaultDockerClient.java:937)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:653)
	... 9 more
Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: PUT unix://localhost:80/containers/80a5315ac086f8481c001a0bc8cfcd62cf8054af92a76fd64cf5df0e092ef021/archive?noOverwriteDirNonDir=true&path=%2Fmnt%2Finput: 404, body: 404 page not found

	at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2694)
	at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2644)
	at com.spotify.docker.client.DefaultDockerClient.copyToContainer(DefaultDockerClient.java:951)
	... 11 more
Caused by: com.spotify.docker.client.shaded.javax.ws.rs.NotFoundException: HTTP 404 Not Found
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.convertToException(JerseyInvocation.java:1008)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.translate(JerseyInvocation.java:816)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.access$700(JerseyInvocation.java:92)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation$5.completed(JerseyInvocation.java:773)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.processResponse(ClientRuntime.java:198)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime.access$300(ClientRuntime.java:79)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:180)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:315)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:297)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process(Errors.java:267)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:210)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	... 1 more

 

2 answers

1 accepted

1 vote
Answer accepted
Jeremy Owen Atlassian Team Nov 25, 2019

Hi Marcus,

A little late, I know but the /archive endpoint doesn't exist in Docker versions < 1.8.0 which is likely why it's 404ing.

Upgrading Docker should resolve the issue. Modern versions of Bamboo support only Docker 17.07 and above.

Cheers,

Jeremy

0 votes

Hi Marcus,

Are you running Bamboo in a docker container? There are known issues on running specs in a container if the server is already running on Docker (Docker-in-Docker) and that's the reason why this is not officially supported.

thanks

Hi Gabriel, bamboo server is not running on docker.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events