algo
algo copied to clipboard
python3 is missing
TASK [common : Gather facts] *************************************************** fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin/python3: No such file or directory\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127} included: /root/algo-master/playbooks/rescue.yml for localhost
TASK [debug] ******************************************************************* ok: [localhost] => { "fail_hint": [ "Sorry, but something went wrong!", "Please check the troubleshooting guide.", "https://trailofbits.github.io/algo/troubleshooting.html" ] }
TASK [Fail the installation] *************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
Please post the output from your installation attempt where it says:
--> Please include the following block of text when reporting issues:
I am getting this error as well. Running this on localhost, docker, Ubuntu 18.04.
TASK [common : Gather facts] fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin/python3: not found\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}
TASK [debug]
ok: [localhost] => {
"fail_hint": [
"Sorry, but something went wrong!",
"Please check the troubleshooting guide.",
"https://trailofbits.github.io/algo/troubleshooting.html"
]
}
TASK [Fail the installation]
fatal: [localhost]: FAILED! => {"changed": false, "msg": "Failed as requested from task"}
PLAY RECAP
localhost : ok=29 changed=3 unreachable=0 failed=2```
Python3 is included by default in Ubuntu 18.04, and it seems you're using a custom image. What cloud provider do you use?
I am using an unsupported hosting service. I am going to do some more troubleshooting today. What is strange is, if I run in this in python virtualenv the script runs no problem.
Do you have python3 installed in the system? If not, try to install it and run Algo again, please
I have python3 installed.
python3 -V Python 3.6.8
And it's in /usr/bin/python3? run which python3
which python3 /usr/bin/python3
@alexraskin Have you found out where the problem is? I'm worrying whether we need to update the docs
@jackivanov I have not... I haven't had a chance to try again. I am just running in DO for now. I am going to try again this weekend. I will update you when I do. Thanks
@jackivanov I was not able to figure out the problem. I ended not using docker. Sorry..
I run into the same issue when using the official docker image. How to reproduce:
-
install the official configuration file from https://github.com/trailofbits/algo/blob/master/config.cfg into
/tmp/algoand change the permission to 644 just in case. -
Run the official Docker image and don't select a provider by just pressing Return or choosing the local installation option. Every configuration option asked for shouldn't matter and the default is sufficient to trigger this bug.
docker run \
--cap-drop=all -it \
-v /tmp/algo:/data \
trailofbits/algo:latest
Algo tries to install the software on the local system but it fails at the gather facts part
TASK [common : Gather facts] *********************************************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "module_stderr": "/bin/sh: /usr/bin/python3: not found\n", "module_stdout": "", "msg": "The module failed to execute correctly, you probably need to set the interpreter.\nSee stdout/stderr for the exact error", "rc": 127}
The root cause is that python is installed at /usr/local/bin in the Algo docker container:
$ docker run --rm -it --entrypoint /bin/sh trailofbits/algo:latest
/algo # ls /usr/bin/python3
ls: /usr/bin/python3: No such file or directory
/algo # which python3
/usr/local/bin/python3
The key part of the Docker documentation is actually
While it is not possible to run your Algo server from within a Docker container, it is possible to use Docker to provision your Algo server.
But then it seems like the python3 path itself is hard coded and won't be found by the Gather facts step.