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
Hello, I Have A Problem With Creating Projects Using "Get_Or_Create_Project". The Function Fails When The Project Already Exists. But The Name Of The Function Clearly Indicates That It Should Not Fail When The Project Already Exists. Follows Is The Messag

Hello,
I have a problem with creating projects using "get_or_create_project".
The function fails when the project already exists.
But the name of the function clearly indicates that it should not fail when the project already exists.
Follows is the message log.
Can someone please help?

2021-07-13 01:11:03,629 - clearml.Task - ERROR - Action failed <400/801: projects.create/v1.0 (Value combination already exists: name=Remote/rdekel/hackathon_baselines/DATA_DIR, company=1)> (name=Remote/rdekel/hackathon_baselines/DATA_DIR/, description=) Traceback (most recent call last): File "/Remote/rdekel/hackathon_baselines/PYDL_HACKATHON/engines/shared/regression/regression.py", line 98, in <module> run_regression(regression_config) File "/Remote/rdekel/hackathon_baselines/PYDL_HACKATHON/engines/shared/regression/regression.py", line 29, in run_regression jobManager(jobs).run_jobs() File "/Remote/rdekel/hackathon_baselines/PYDL_HACKATHON/engines/shared/regression/clearml_job_manager.py", line 299, in run_jobs self._init_jobs() File "/Remote/rdekel/hackathon_baselines/PYDL_HACKATHON/engines/shared/regression/clearml_job_manager.py", line 227, in _init_jobs task_type=Task.TaskTypes.controller, reuse_last_task_id=False) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/task.py", line 496, in init auto_connect_streams=auto_connect_streams, File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/task.py", line 2530, in _create_dev_task log_to_backend=True, File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/task.py", line 163, in __init__ super(Task, self).__init__(**kwargs) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/backend_interface/task/task.py", line 167, in __init__ self.id = self._auto_generate(project_name=project_name, task_name=task_name, task_type=task_type) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/backend_interface/task/task.py", line 314, in _auto_generate project_id = get_or_create_project(self, project_name) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/backend_interface/util.py", line 59, in get_or_create_project res = session.send(projects.CreateRequest(name=project_name, description=description or '')) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/backend_interface/base.py", line 96, in send log=self.log, async_enable=async_enable) File "/Remote/shared/conda_envs/tf15_tp011/lib/python3.7/site-packages/clearml/backend_interface/base.py", line 89, in _send raise SendError(res, error_msg) clearml.backend_interface.session.SendError: Action failed <400/801: projects.create/v1.0 (Value combination already exists: name=Remote/rdekel/hackathon_baselines/DATA_DIR, company=1)> (name=Remote/rdekel/hackathon_baselines/DATA_DIR/, description=)

  
  
Posted 3 years ago
Votes Newest

Answers 10


Hi ArrogantBlackbird16 ,
What version of the server are you using? It seems like the SDK code tries to find the project, doesn't find it and than tries to create it. I would guess this has something to do with the project name (perhaps some strange character?)
Also, can you re-attach the log? it seems the log is truncated at places (some words stop in the middle etc.)

  
  
Posted 3 years ago

project name is: RemoteStorage06/saips06/rdekel/hackathon_baselines/DATA_DIR/
No strange characters as far as I can tell

  
  
Posted 3 years ago

try making two tasks, both with the same project name (While the project name contains '//') and you will get the same error.

  
  
Posted 3 years ago

👍 thanks, will try it now

  
  
Posted 3 years ago

We think we fixed it.
The problem seemed to be having a path with // and clearml not handling it well

  
  
Posted 3 years ago

e.g., Dir/To/Stuff//Another

  
  
Posted 3 years ago

Hi ImmensePenguin78 ,

The problem seemed to be having a path with // and clearml not handling it well

Do you mean in the output_uri parameter?

  
  
Posted 3 years ago

no, in the project name

  
  
Posted 3 years ago

Latest allegro POC server (saips)

  
  
Posted 3 years ago

SuccessfulKoala55 re-attached the log.

  
  
Posted 3 years ago
1K Views
10 Answers
3 years ago
one year ago
Tags
Similar posts