-
Notifications
You must be signed in to change notification settings - Fork 28
Troubleshooting
Each heading here is an issue you could run into.
- Python
- Docker
numerai
command not in PATH- Wrong AWS API key
- Drive not shared
- Cloud Out-Of-Memory Issues
- Billing Alerts
If the environment setup script fails to install Python3 for you, report the error to Numerai and then install it manually with one of the following options:
- Download Python3 directly
- install it from your system's package manager
- Use conda to install and manage python for you
If the environment setup script fails to install Docker for you, report the error to Numerai then read the following to get a working installation on your machine.
Just install Docker Desktop to get it running. You should also increase the RAM allocated to the VM:
- Open the Docker Desktop GUI then
- Click Gear in top right corner
- Select Resources > Advanced in left sidebar
- Use slider to allocate more memory (leave a few gigs for your OS and background applications, otherwise your computer might crash)
Check here for instructions for your distro: https://docs.docker.com/engine/install/
For PCs, you may need to activate virtualization in your BIOS.
If your machine is older and/or doesn't have Hyper-V enabled, then you will have to install docker toolbox. After it's installed, open the "Docker QuickStart Terminal" and run the following to increase its RAM:
docker-machine rm default
docker-machine create -d virtualbox --virtualbox-cpu-count=2 --virtualbox-memory=4096 --virtualbox-disk-size=50000 default
Also note, your code must live somewhere under your User directory (ie. C:\Users\USER_NAME\ANY_FOLDER). This is a restriction of docker toolbox not sharing paths correctly otherwise.
Error:
...
subprocess.CalledProcessError: Command 'docker run --rm -it -v /home/jason/tmp/.numerai:/opt/plan -w /opt/plan hashicorp/terraform:light init' returned non-zero exit status 127.
Reason: Docker is not installed.
Solutions:
-
If you're certain that docker is installed, make sure that your user can execute docker, ie. try to run
docker ps
. If that's the issue, then depending on your system, you can do the following: -
Windows/OSX
- Make sure the Docker Desktop is running and finished booting up. It can take a few minutes to be completely ready. When clicking on the docker tray icon, it should say "Docker Desktop is Running".
- If you're using Docker Toolbox on Windows, then make sure you've opened the "Docker Quickstart Terminal".
-
Linux
- Run
sudo usermod -aG docker $USER
- Then reboot or logout/login for this to take effect.
- Run
Error:
docker: Error response from daemon: Drive has not been shared
Solutions
- You need to share your drive.
Error:
numerai: command not found
Solutions:
- osx/linux: Try and run
~/.local/bin/numerai
- Windows:
%LOCALAPPDATA%\Programs\Python\Python37-32\Scripts\numerai.exe
- Alternatively, exit then re-open your terminal/command prompt.
Error:
...
Error: error validating provider credentials: error calling sts:GetCallerIdentity: InvalidClientTokenId: The security token included in the request is invalid.
status code: 403, request id: 32500359-7d9e-11e9-b0ed-596aba1b72c5
...
subprocess.CalledProcessError: Command 'docker run -e "AWS_ACCESS_KEY_ID=..." -e "AWS_SECRET_ACCESS_KEY=..." --rm -it -v /home/jason/tmp/.numerai:/opt/plan -w /opt/plan hashicorp/terraform:light apply -auto-approve' returned non-zero exit status 1.
Solutions
- Run
numerai configure
to re-write your API Keys
-
In
.numerai/variables.tf
, check values forfargate_cpu
andfargate_memory
for the current defaults. -
Set them as arguments to the
setup
command:numerai setup -c [CPUs * 1024] -m [GBs * 1024]
-
NOTES
- 30720 (30 GB) and is the maximum that Amazon can support.
- This will raise your costs, but you only pay for the time it's running, rounded to the nearest minute.
There's no automated way to setup billing alerts, so you'll need to configure one manually. We estimate costs to be less than $5 per month unless your compute takes more than 12 hours a week, but increasing the RAM/CPU will increase your costs.