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 2 years ago
Votes Newest

Answers 30


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

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

Can you provide a code snippet that makes agent hang?

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

I haven't change any port mapping

  
  
Posted 2 years ago

How long did you let it sit for?

  
  
Posted 2 years ago

ubuntu

  
  
Posted 2 years ago

no

  
  
Posted 2 years ago

Do you maybe have blocks on some ports locally?

  
  
Posted 2 years ago

it still stucks at the same moment

  
  
Posted 2 years ago

I host the code on my Github

  
  
Posted 2 years 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 2 years ago

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

  
  
Posted 2 years ago

But stucks at the same moment when using docker

  
  
Posted 2 years ago

Can you add the full log?

  
  
Posted 2 years ago

there is no such option

  
  
Posted 2 years ago

more or less

  
  
Posted 2 years ago

5min

  
  
Posted 2 years 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 2 years ago

What is interesting, it works when using virtual environment setup

  
  
Posted 2 years ago

this Point class is in repo

  
  
Posted 2 years ago

Ubuntu 21.10 to be concrete

  
  
Posted 2 years ago

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

  
  
Posted 2 years 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 2 years ago

btw what os are you on?

  
  
Posted 2 years ago

hmm, this might be a problem....

  
  
Posted 2 years ago

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

  
  
Posted 2 years ago

no, it is everything on my local machine

  
  
Posted 2 years ago

CostlyOstrich36 have you ever seen something like my case maybe?

  
  
Posted 2 years ago