From d24375299e0a1a504172e7cb1a80336e4e348231 Mon Sep 17 00:00:00 2001 From: pollfly <75068813+pollfly@users.noreply.github.com> Date: Wed, 18 Aug 2021 10:03:41 +0300 Subject: [PATCH] Add VM connectivity FAQ (#37) --- docs/faq.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/docs/faq.md b/docs/faq.md index b71fb78f..def29305 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -94,6 +94,7 @@ title: FAQ * [How do I bypass a proxy configuration to access my local ClearML Server?](#proxy-localhost) * [Trains is failing to update ClearML Server. I get an error 500 (or 400). How do I fix this?](#elastic_watermark) * [Why is my Trains Web-App (UI) not showing any data?](#web-ui-empty) +* [Why can't I access my ClearML Server when I run my code in a virtual machine?](#vm_server) **ClearML Agent** @@ -816,7 +817,7 @@ Do the following:
-**The ClearML Server keeps returning HTTP 500 (or 400) errors. How do I fix this?** +**The ClearML Server keeps returning HTTP 500 (or 400) errors. How do I fix this?** The ClearML Server will return HTTP error responses (5XX, or 4XX) when some of its [backend components](deploying_clearml/clearml_server.md) are failing. @@ -839,6 +840,28 @@ A likely indication of this situation can be determined by searching your clearm If your ClearML Web-App (UI) does not show anything, it may be an error authenticating with the server. Try clearing the application cookies for the site in your browser's developer tools. +**Why can't I access my ClearML Server when I run my code in a virtual machine?** + +The network definitions inside a virtual machine (or container) are different from those of the host. The virtual machine's +and the server machine's IP addresses are different, so you have to make sure that the machine that is executing the +experiment can access the server's machine. + +Make sure to have an independent configuration file for the virtual machine where you are running your experiments. +Edit the `api` section of your `clearml.conf` file and insert IP addresses of the server machine that are accessible +from the VM. It should look something like this: + +``` +api { + web_server: http://192.168.1.2:8080 + api_server: http://192.168.1.2:8008 + credentials { + "access_key" = "KEY" + "secret_key" = "SECRET" + } +} +``` + + ## ClearML Agent **How can I execute ClearML Agent without installing packages each time?**