In order for Golem to work it needs to create a Docker VM, this allows for computations to be completed in an isolated environement from the Requestor and Provider host machines. Below you will see a list of common Docker Errors from Golem.log files, along with some troubleshooting tips.
If you cannot find your golem.log file, check here for instructions on log locations.
ERROR golem.docker.manager b"VirtualBox: error creating VM 'golem': Command '['docker-machine', 'create', '--driver', 'virtualbox', 'golem']' returned non-zero exit status 3."
WARNING golem.docker.manager b'DockerMachine: failed to env the VM: Command '['docker-machine', 'env', '--shell', 'cmd', 'golem']'
If you see either of these two errors in your golem.log file, then follow these troubleshooting steps:
Shutdown the Golem App
Open Terminal (Command + Spacebar to open Spotlight search, then type "Terminal" and hit ENTER key)
This command shows if docker is running any errors. It is good to run this command before and after running any of the following docker commands to see if the error is solved.
docker-machine restart golem
This will restart docker’s golem instance.
docker-machine rm golem
This will remove the docker container.
sudo rm -rf ~/.docker/machine/machines/golem
This will force remove the docker machine from the docker directory. This command will require your password and will not return any success message after running the command.
docker-machine create --driver xhyve --xhyve-virtio-9p golem
This will create and engage the necessary drivers for your docker machine
_WARNING golem.docker.taskthread Task stderr:/usr/bin/python: can't open file '/golem/work/job.py': [Errno 2] No such file or directory
If you receive this error in your golem.log file, then the directory for the docker and data drive is not using the same hard drive as your Golem app. You just need to move your docker directory to the same hard drive as your Golem directory.