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 Use Agent, But I Have A Problem. Execution Of Task Stucks Like This

Hi, I am trying to use agent, but I have a problem. Execution of task stucks like this

  
  
Posted one year ago
Votes Newest

Answers 30


Can you provide a code snippet that makes agent hang?

  
  
Posted one year ago

I think something might be block ports on your local machine. Did you change ports mapping for the ClearML dockers?

  
  
Posted one year ago

when is server created on my local machine, when I do clearml-init ?

  
  
Posted one year ago

It looks like it's hanging on the connection to the ClearML server

  
  
Posted one year ago

Are you running on a self hosted ClearML server or the SaaS?

  
  
Posted one year ago

no, it is everything on my local machine

  
  
Posted one year ago

I haven't change any port mapping

  
  
Posted one year ago

Not really. This is strange. Can you try running the agent with --debug tag? This might give us more insights

  
  
Posted one year ago

What is interesting, it works when using virtual environment setup

  
  
Posted one year ago

CostlyOstrich36 have you ever seen something like my case maybe?

  
  
Posted one year ago

But stucks at the same moment when using docker

  
  
Posted one year ago

Ubuntu 21.10 to be concrete

  
  
Posted one year ago

btw what os are you on?

  
  
Posted one year ago

more or less

  
  
Posted one year ago

ubuntu

  
  
Posted one year ago

5min

  
  
Posted one year ago

A sample dummy code

from clearml import Task
from Point import Point
import numpy as np

task = Task.init(project_name="project_demo", task_name="name")

parameters = {
"A": 3,
"B": 0.5
}

task.connect(parameters)

p = Point(2,3)

conf_yaml = task.connect_configuration(
name = "my yaml",
configuration = "config_yaml.yaml"
)

task.upload_artifact("Arti", np.zeros((10,10)))

  
  
Posted one year ago

What if you remove the Point package? Does it run then?

  
  
Posted one year ago

How long did you let it sit for?

  
  
Posted one year ago

I host the code on my Github

  
  
Posted one year ago

this Point class is in repo

  
  
Posted one year ago

Can you add the full log?

  
  
Posted one year ago

no

  
  
Posted one year ago

WARNING: You are using pip version 20.1.1; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip'
command.
Retrying (Retry(total=239, connect=239, read=240, redirect=240, status=240)) after co
nnection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at
0x7faf9da78400>: Failed to establish a new connection: [Errno 111] Connection refused
',)': /auth.login

  
  
Posted one year ago

clearml-agent daemon --docker --foreground --debug
usage: clearml-agent [-h] [--help] [--version] [--config-file CONFIG_FILE] [--debug]
{execute,build,list,daemon,config,init} ...
clearml-agent: error: unrecognized arguments: --debug

  
  
Posted one year ago

Try it as the first option after clearml-agent: clearml-agent --debug daemon --docker --foreground

  
  
Posted one year ago

Do you maybe have blocks on some ports locally?

  
  
Posted one year ago

hmm, this might be a problem....

  
  
Posted one year ago

there is no such option

  
  
Posted one year ago

it still stucks at the same moment

  
  
Posted one year ago