Skip to content

Commit 8747ee4

Browse files
committed
Update troubleshooting guide
1 parent d373657 commit 8747ee4

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

src/integration/README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,55 @@ Ensure Docker is running and you have permission to use it:
197197
```bash
198198
docker ps
199199
```
200+
- The following error appears during staging while running an integration test:
201+
```
202+
Output:
203+
{"status":"Pulling from cloudfoundry/cflinuxfs4","id":"latest"}
204+
{"status":"Digest: sha256:77bf7297d2fbb4b787b73df2a4d0a911e5f0695321a6f0219a44c19be5d6bebe"}
205+
{"status":"Status: Image is up to date for cloudfoundry/cflinuxfs4:latest"}
206+
-----> Java Buildpack version dev
207+
-----> Supplying Java
208+
Detected container: Tomcat
209+
No JRE explicitly configured, using default: OpenJDK
210+
Selected JRE: OpenJDK
211+
-----> Installing OpenJDK JRE
212+
Installing OpenJDK 8.0.452
213+
-----> Installing openjdk 8.0.452
214+
Download [https://java-buildpack.cloudfoundry.org/openjdk/jammy/x86_64/bellsoft-jre8u452%2B11-linux-amd64.tar.gz]
215+
error: Get "https://java-buildpack.cloudfoundry.org/openjdk/jammy/x86_64/bellsoft-jre8u452%2B11-linux-amd64.tar.gz": dial tcp 104.18.17.211:443: connect: no route to host, retrying in 712.622241ms...
216+
```
217+
Check if the url, for which the issue appears, is accessible from the host machine. If the url appears reachable and can be accessed successfully, check again from within the corresponding switchblade container where the test is run. This can be achieved with `docker exec -it <container_id> /bin/bash` while the container is still up in order to ssh to it and furhter try for example to issue a `curl` to the url. If the `connect: no route to host` can be reproduced from within the corresponding switchblade container, you can do the following in order to mitigate it:
218+
1. Execute `docker network prune` - this will remove any unused networks including `switchblade-internal` bridge networks set while running the integration tests.
219+
2. Execute `sudo systemctl restart docker` - restarting docker.
220+
221+
222+
- Integration test is executed successfully but the following issue appears on test container removal:
223+
```
224+
tomcat_test.go:34:
225+
Expected success, but got an error:
226+
<*fmt.wrapError | 0xc00034f140>:
227+
failed to run teardown phase: failed to remove container: Error response from daemon: cannot remove container "switchblade-pqsal7svg": could not kill container: permission denied
228+
{
229+
msg: "failed to run teardown phase: failed to remove container: Error response from daemon: cannot remove container \"switchblade-pqsal7svg\": could not kill container: permission denied",
230+
err: <*fmt.wrapError | 0xc00034f0c0>{
231+
msg: "failed to remove container: Error response from daemon: cannot remove container \"switchblade-pqsal7svg\": could not kill container: permission denied",
232+
err: <errdefs.errSystem>{
233+
error: <*errors.withStack | 0xc000405b60>{
234+
error: <*errors.withMessage | 0xc00034f000>{
235+
cause: <*errors.fundamental | 0xc000405b30>{
236+
msg: "cannot remove container \"switchblade-pqsal7svg\": could not kill container: permission denied",
237+
stack: [0x795cc0, 0x79517c, 0x790307, 0x7902a3, 0x7a2263, 0x7a807a, 0x7f6c2b, 0x7ad476, 0x7ad39f, 0x7acb35, 0x7abdb5, 0x52e46a, 0x485c21],
238+
},
239+
msg: "Error response from daemon",
240+
},
241+
stack: [0x795de5, 0x79517c, 0x790307, 0x7902a3, 0x7a2263, 0x7a807a, 0x7f6c2b, 0x7ad476, 0x7ad39f, 0x7acb35, 0x7abdb5, 0x52e46a, 0x485c21],
242+
},
243+
},
244+
},
245+
}
246+
```
247+
248+
To mitigate the above issue try executing `sudo systemctl restart docker.socket docker.service`.
200249

201250
### GitHub authentication errors with Docker platform
202251
If you see errors like "Bad credentials" or "401 Unauthorized" when running Docker platform tests:

0 commit comments

Comments
 (0)