Command failed with exit code 2:
Opened this issue · 7 comments
Hi,
My speedtest doesn't seem to be running, but I have access to the Grafana gui.
I'm running this inside an LXC container based on the Turnkey Core image.
Logs below:
docker-compose logs -f speedtest
Attaching to speedtest
speedtest | [INFO][Wed Sep 09 2020 05:14:05 GMT+0000 (Coordinated Universal Time)] Starting speedtest...
speedtest | Command failed with exit code 2: speedtest --accept-license --accept-gdpr -f json
speedtest | [2020-09-09 05:14:05.252] [error] Configuration - SSL peer certificate or SSH remote key was not OK (UnknownException)
speedtest | [2020-09-09 05:14:05.252] [error] Configuration - Cannot retrieve configuration document (0)
speedtest | [2020-09-09 05:14:05.252] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
speedtest | [2020-09-09 05:14:05.253] [error] ConfigurationError - Could not retrieve or read configuration (Configuration)
speedtest | {"type":"log","timestamp":"2020-09-09T05:14:05Z","message":"Configuration - Could not retrieve or read configuration (ConfigurationError)","level":"error"}
Can you check if you have outbound HTTP access? To double check, please open a ash
shell within the speedtest
container and try this:
wget -qO - https://ookla.bintray.com/debian
Do you get any result here?
It won't let me open the shell, due to being in a reboot loop...
root@speedgraf ~# docker exec -it speedtest /bin/bash
Error response from daemon: Container 29397b9831af3a3f61d2cb253c2e6ac6c626bf51a84669cd6a5d615c45d85a6a is restarting, wait until the container is running
The container status stays on "restarting".
Try to create a new container then instead:
docker run -it --rm frdmn/speedtest-grafana:latest ash
Please see below:
root@speedgraf /docker/docker-speedtest-grafana# docker run -it --rm frdmn/speedtest-grafana:latest ash
/usr/src/app #
/usr/src/app # wget -qO - https://ookla.bintray.com/debian
ssl_client: ookla.bintray.com: certificate verification failed: self signed certificate
wget: error getting response: Connection reset by peer
/usr/src/app # ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=114 time=9.421 ms
ssl_client: ookla.bintray.com: certificate verification failed: self signed certificate
Looks like the TLS connection doesn't go through properly on your image/container. Check if you have all root/intermediate certificates installed or if you intercept HTTPS connections (proxy, firewall, WAF, etc.)
Once you can get a successful response via wget
from the remote host, your speedtest container should work as well.
Thanks.
Any tips on where to start trying to check the certificates?
Thanks again
I am also facing the same issue, any leads?