Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Am Trying To Test The Whole Stack On My Local Machine But I Am Unable To Make

Hi, I am trying to test the whole stack on my local machine but I am unable to make clearml-agent and clearml-serving work. Every time I get:

clearml_agent.backend_api.session.session.LoginError: Failed getting token (error 401 from

): Unauthorized (invalid credentials) (failed to locate provided credentials)

To deploy the agent I am using helm install --values agent-values.yaml clearml-agent allegroai/clearml-agent where in agent-values.yaml I have added agentk8sglueKey, agentk8sglueSecret from dashboard settings and updated URLs apiServerUrlReference, fileServerUrlReference, webServerUrlReference .

Any idea what could be the issue? Thank you in advance πŸ™‚

  
  
Posted one year ago
Votes Newest

Answers 23


Hi JuicyFox94 , thank you for a reply. Yes, should be on the same cluster. My steps were:

  1. created cluster via kind as written in https://github.com/allegroai/clearml-helm-charts/tree/main/charts/clearml
  2. helm install clearml-server allegroai/clearml
  3. Then I generated new API key, downloaded https://github.com/allegroai/clearml-helm-charts/blob/main/charts/clearml-agent/values.yaml file and overwritten values:
    # -- Reference to Api server url apiServerUrlReference: " ` "

-- Reference to File server url

fileServerUrlReference: " "

-- Reference to Web server url

webServerUrlReference: " "

-- Agent k8s Glue basic auth key

agentk8sglueKey: "RYKRKARI6PLDY11653OP"

-- Agent k8s Glue basic auth secret

agentk8sglueSecret: "i7B8jaOfQawvQXM0VZdfylTKhn2n5EPogkoIscPT6aUZd0yMM7" 4. install clearml agent via helm install --values agent-values.yml clearml-agent allegroai/clearml-agent `

  
  
Posted one year ago

Hi Tom; lets’ try to debug. Did you install all the charts in same namespace? Did you generate a key/secret pair from UI and the use them just in agent and serving chart?

  
  
Posted one year ago

Sure
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION clearml-agent default 1 2022-10-24 13:18:32.846539589 +0200 CEST deployed clearml-agent-2.0.1 1.24 clearml-server default 1 2022-10-24 12:57:44.160396437 +0200 CEST deployed clearml-4.3.0 1.7.0

  
  
Posted one year ago

Not sure if those are all necessary steps or I am missing some additional configuration

  
  
Posted one year ago

can you pls share output of helm list in clearml namespace ?

  
  
Posted one year ago

you are right, its default
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE clearml-elastic-master ClusterIP 10.96.188.164 <none> 9200/TCP,9300/TCP 25m clearml-elastic-master-headless ClusterIP None <none> 9200/TCP,9300/TCP 25m clearml-server-apiserver NodePort 10.96.73.213 <none> 8008:30008/TCP 25m clearml-server-fileserver NodePort 10.96.43.203 <none> 8081:30081/TCP 25m clearml-server-mongodb ClusterIP 10.96.230.210 <none> 27017/TCP 25m clearml-server-redis-headless ClusterIP None <none> 6379/TCP 25m clearml-server-redis-master ClusterIP 10.96.110.248 <none> 6379/TCP 25m clearml-server-webserver NodePort 10.96.43.251 <none> 80:30080/TCP 25m kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 25m

  
  
Posted one year ago

Now getting
No resources found in clearml namespace.

  
  
Posted one year ago

sorry but did you deployed in clearml namesopace?

  
  
Posted one year ago

I guess apiServerUrlReference should be fixed

  
  
Posted one year ago

kubectl get svc -n clearml ?

  
  
Posted one year ago

kubectl get svc -n default ?

  
  
Posted one year ago

or maybe default?

  
  
Posted one year ago

oh wait πŸ˜„

  
  
Posted one year ago

but I can be wrong, give me 30 mins while I recreate same local installation with samecchart so I can see if something is wrong

  
  
Posted one year ago

Checking old yaml I used last week and I had the URLs correct but I guess I missconfigured something else.

  
  
Posted one year ago

pls fix also fileServerUrlReference: anf webServerUrlReference:

  
  
Posted one year ago

Oh yes, fixed that and it's working! Thank you!

  
  
Posted one year ago

apiServerUrlReference: " "

  
  
Posted one year ago

with the right svc names

  
  
Posted one year ago

wohoo

  
  
Posted one year ago

Sure, thank you very much! Working flawlessly now πŸ™‚

  
  
Posted one year ago

feel free to ping here if anything else is needed

  
  
Posted one year ago

\o/

  
  
Posted one year ago
602 Views
23 Answers
one year ago
one year ago
Tags