allegroai / clearml-server

ClearML - Auto-Magical CI/CD to streamline your AI workload. Experiment Management, Data Management, Pipeline, Orchestration, Scheduling & Serving in one MLOps/LLMOps solution
https://clear.ml/docs
Other
364 stars 132 forks source link

Can't access agent-services #174

Open nikneural opened 1 year ago

nikneural commented 1 year ago

% Total % Received % Xferd Average Speed Time Time Time Current 2023-01-18 16:41:55 Dload Upload Total Spent Left Speed 100 294 100 294 0 0 49000 0 --:--:-- --:--:-- --:--:-- 49000 2023-01-18 16:41:55 http://fileserver:8081 http://webserver:8080 http://clearml-apiserver:8008 2023-01-18 16:41:56 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv 2023-01-18 16:41:56 {"meta":{"id":"7ae388d14fe1460f8a4117abc23f2868","trx":"7ae388d14fe1460f8a4117abc23f2868","endpoint":{"name":"debug.ping","requested_version":"2.23","actual_version":"1.0"},"result_code":200,"result_subcode":0,"result_msg":"OK","error_stack":"","error_data":{}},"data":{"msg":"ClearML server"}}Using environment access key CLEARML_API_ACCESS_KEY=RTLEDYVSE68275W4FUGY 2023-01-18 16:41:56 Using environment secret key CLEARML_API_SECRET_KEY=******** 2023-01-18 16:41:56 2023-01-18 16:41:56 clearml_agent: ERROR: Failed getting token (error 401 from http://clearml-apiserver:8008): Unauthorized (invalid credentials) (failed to locate provided credentials)

It is my agent-services in docker-compose.yml:

`agent-services: networks:

networks: backend: driver: bridge frontend: driver: bridge `

jkhenning commented 1 year ago

Did you configure CLEARML_API_ACCESS_KEY and CLEARML_API_SECRET_KEY using key/secret you generated in the WebApp Profile section?

nikneural commented 1 year ago

Did you configure CLEARML_API_ACCESS_KEY and CLEARML_API_SECRET_KEY using key/secret you generated in the WebApp Profile section?

Yeap

jkhenning commented 1 year ago

And the access key showing in the log matches the one you specified?

nikneural commented 1 year ago

And the access key showing in the log matches the one you specified?

Yes, I see the key that I passed

jkhenning commented 1 year ago

OK, can you try issuing this command using the same credentials? curl -u "<key>:<secret>" http://clearml-apiserver:8008/auth.login

Make sure you use the correct apiserver address.

nikneural commented 1 year ago

OK, can you try issuing this command using the same credentials? curl -u "<key>:<secret>" http://clearml-apiserver:8008/auth.login

Make sure you use the correct apiserver address.

I got this:

{"meta":{"id":"1a7a7406920249f0b2fd69cf6cc921cb","trx":"1a7a7406920249f0b2fd69cf6cc921cb","endpoint":{"name":"auth.login","requested_version":"2.23","actual_version":"1.0"},"result_code":200,"result_subcode":0,"result_msg":"OK","error_stack":"","error_data":{}},"data":{"token":"BIG TOKEN"}

lambdaofgod commented 1 year ago

I'm having the same problem. @jkhenning what do you mean by webapp section?

jkhenning commented 1 year ago

I meant where did you take the key and secret from 🙂