Troubleshooting

Runs Fine on a Mac but Fails in docker on the Same Machine

If you get an error like +++ killed by SIGKILL +++, your program may be running out of memory. Check your docker configuration for a default memory limit. Here is a related thread on StackOverflow.

How can I validate permission with a role? I get no basic auth credentials or Error: http: 401 Unauthorized with CLI or docker commands

  1. Check the environment var is correctly defined (don’t do that in Drone/CI to not log the secret in log):

  • echo $EAI_TOKEN

  1. Check you are correctly logged in with the good role ID:

  • eai login validate

  • curl -H "$(eai login token -H)" https://console.elementai.com/v1/me

  1. Validate your role has the right permissions.

  • eai rule ls [roleID] will return the permission list of the role.

  • curl -H "$(eai login token -H)" https://console.elementai.com/v1/rule/[roleID]

Docker pull/push returns unauthorized: authentication required

First, you need to be sure you are logged in by calling eai login validate. If you are not, call eai login.

Then, call eai docker configure and make sure to create the symlink for docker-credential-eai in your path, as shown in the output.

To see if the docker credentials are properly set up, run the following command, it should return a JSON payload. If it doesn’t, the symlink created above is probably not in your PATH.

docker-credential-eai get