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

Command failed with exit code 2: #8

Open
sirjaymond opened this issue Sep 9, 2020 · 7 comments
Open

Command failed with exit code 2: #8

sirjaymond opened this issue Sep 9, 2020 · 7 comments

Comments

@sirjaymond
Copy link

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"}

@frdmn
Copy link
Owner

frdmn commented Sep 9, 2020

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?

@sirjaymond
Copy link
Author

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".

@frdmn
Copy link
Owner

frdmn commented Sep 9, 2020

Try to create a new container then instead:

docker run -it --rm frdmn/speedtest-grafana:latest ash

@sirjaymond
Copy link
Author

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

@frdmn
Copy link
Owner

frdmn commented Sep 10, 2020

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.

@sirjaymond
Copy link
Author

Thanks.
Any tips on where to start trying to check the certificates?

Thanks again

@ritesh-singh
Copy link

I am also facing the same issue, any leads?

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

3 participants