Bamboo Java Specs, unable to scan error when pushing bamboo specs code to bitbucket
Asked by Marcus Petrat:

I am following this tutorial: [Tutorial: Bamboo Java Specs stored in Bitbucket Server](https://confluence.atlassian.com/bamboo/tutorial-bamboo-java-specs-stored-in-bitbucket-server-938641946.html)

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 Specscom.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 moreCaused 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 moreCaused 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
```


Answers:
author: Jeremy Owen
body: 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


author: Gabriel Ribeiro
body: 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

comments: author: Marcus Petrat
body: Hi Gabriel, bamboo server is not running on docker.


Tags: java

spec