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
I'M Running Clearml Server Locally Using The Docker-Compose Method As Mentioned

I'm running ClearML Server Locally using the docker-compose method as mentioned https://clear.ml/docs/latest/docs/deploying_clearml/clearml_server_linux_mac when I create an account and test the server by following the steps in the client i get the following error:
clearml.backend_interface.session.SendError: Action failed <401/22: projects.get_all/v1.0 (Unauthorized (invalid credentials) (failed to locate provided credentials))> (name=^my\ project$, only_fields=['id'], shallow_search=False, search_hidden=True)I ran the clearml-init for my python project and pasted credentials which were generated throught my clearml webserver ui when prompted for them. I'm wondering what am I missing?

  
  
Posted 3 years ago
Votes Newest

Answers 34


` from argparse import ArgumentParser

from flask import Flask

from apiserver.config_repo import config
from apiserver.server_init.app_sequence import AppSequence
from apiserver.server_init.request_handlers import RequestHandlers

app = Flask(name, static_url_path="/static")
AppSequence(app).start(request_handlers=RequestHandlers())

=================== MAIN =======================

if name == "main":
p = ArgumentParser(description=doc)
p.add_argument(
"--port", "-p", type=int, default=config.get("apiserver.listen.port")
)
p.add_argument("--ip", "-i", type=str, default=config.get("apiserver.listen.ip"))
p.add_argument(
"--debug", action="store_true", default=config.get("apiserver.debug")
)
p.add_argument(
"--watch", action="store_true", default=config.get("apiserver.watch")
)
args = p.parse_args()

# logging.info("Starting API Server at %s:%s and env '%s'" % (args.ip, args.port, config.env))

app.run(
    debug=args.debug,
    host=args.ip,
    port=args.port,
    threaded=True,
    use_reloader=args.watch,
) `
  
  
Posted 3 years ago

If you want to try and patch the server code to get some visibility, I can guide you on how 🙂

  
  
Posted 3 years ago

You basically do this:
In your docker-compose.yaml file, add the following env var to the apiserver service: FLASK_DEBUG: "1" You'll need to restart the server exec into the clearml-apiserver container CD into /opt/clearml/apiserver edit server.py Around line 35 right before call = self._create_api_call(request) , add:log(str(request.method)) log(str(request.headers["Authorization"]))5. Save the file
6. Try running your python code again and than check the clearml-apiserver docker container logs

  
  
Posted 3 years ago

This is not a pattern used by ClearML anywhere 😞

  
  
Posted 3 years ago
143K Views
34 Answers
3 years ago
one year ago
Tags