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 Using Clearml On A New Server, And Task.Init() Crashes When I Run It From (Remote) Pycharm But Ok When I Run From A Commandline. Running On Remote Pycharm Is Ok For Me On Another Server. The Error That I Get Is:

Hi, I am using clearml on a new server, and Task.init() crashes when I run it from (remote) pycharm but ok when I run from a commandline. Running on remote pycharm is ok for me on another server. The error that I get is:
Traceback (most recent call last): File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/task.py", line 593, in init auto_connect_streams=auto_connect_streams, File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/task.py", line 3040, in _create_dev_task log_to_backend=True, File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/task.py", line 183, in __init__ super(Task, self).__init__(**kwargs) File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_interface/task/task.py", line 155, in __init__ super(Task, self).__init__(id=task_id, session=session, log=log) File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_interface/base.py", line 145, in __init__ super(IdObjectBase, self).__init__(session, log, **kwargs) File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_interface/base.py", line 39, in __init__ self._session = session or self._get_default_session() File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_interface/base.py", line 119, in _get_default_session secret_key=ENV_SECRET_KEY.get(), File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_api/session/session.py", line 207, in __init__ self.refresh_token() File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_api/session/token_manager.py", line 112, in refresh_token self._set_token(self._do_refresh_token(self.__token, exp=self.req_token_expiration_sec)) File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_api/session/session.py", line 765, in _do_refresh_token six.reraise(*sys.exc_info()) File "/home/sigalr/.local/lib/python3.7/site-packages/six.py", line 719, in reraise raise value File "/disk2/guytevet/anaconda3/envs/motion_diff/lib/python3.7/site-packages/clearml/backend_api/session/session.py", line 753, in _do_refresh_token res.status_code, self.host, msg clearml.backend_api.session.session.LoginError: Failed getting token (error 401 from ): Unauthorized (invalid credentials) (failed to locate provided credentials) python-BaseException

  
  
Posted one year ago
Votes Newest

Answers 9


RotundSquirrel78 , if they are different servers, did you also update the credentials for new ones?

  
  
Posted one year ago

Yes I did.

  
  
Posted one year ago

I don't see a cache related to clearml:
(base) sigalr@rack-bermano-g03:~$ find . -name *cache* -not -name __pycache* ./.pycharm_helpers/python_stubs/cache ./.cache ./.conda/pkgs/cacheThe 1st and last are obviously unrelated, and the middle one contains files related to python:
(base) sigalr@rack-bermano-g03:~$ ls .cache/ matplotlib motd.legal-displayed pip

  
  
Posted one year ago

you can find the different cache folders that clearml uses in ~/clearml.conf

  
  
Posted one year ago

Is it possible that the credentials are used somewhere as environment variables?

  
  
Posted one year ago

ok, so ~/clearml.conf points to ~/.clearml/cache, and such a file does not exist.

  
  
Posted one year ago

Any more ideas?

  
  
Posted one year ago

No. I put a break point in my python script, and examined os.environ. The only environment variable with 'CLEARML' in its name is CLEARML_PROC_MASTER_ID, whose value is '16188:' (maybe it means something to you?)

  
  
Posted one year ago

Can you try deleting the cache folder? It should be somewhere around ~/.clearml

  
  
Posted one year ago
538 Views
9 Answers
one year ago
one year ago
Tags