Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clearml-agent init fails with credentials error #1229

Open
Rusteam opened this issue Mar 13, 2024 · 6 comments
Open

clearml-agent init fails with credentials error #1229

Rusteam opened this issue Mar 13, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Rusteam
Copy link

Rusteam commented Mar 13, 2024

Describe the bug

I've created a credentials config from the web app, then tried pasting it during the setup with clearml-agent init, however it throws a credentials validation error, even thought the credentials have been correctly parsed.

To reproduce

  1. Create new credentials settings->workspaces->create new and copy them to clipboard.
  2. Run clearml-agent init on the target machine and follow prompts.
  3. Unable to validation the credentials.

Expected behaviour

A proper clearml.conf created.

Environment

  • Server type (self-hosted \ app.clear.ml)
  • ClearML SDK Version: clearml-agent==1.7.0
  • ClearML Server Version (Only for self hosted): WebApp: 1.11.0-373 • Server: 1.11.0-373 • API: 2.25
  • Python Version: 3.10
  • OS (Windows \ Linux \ Macos): linux
@Rusteam Rusteam added the bug Something isn't working label Mar 13, 2024
@ainoam
Copy link
Collaborator

ainoam commented Mar 13, 2024

@Rusteam Can you provide the full error received?

BTW - any special reason you are not running a more current server version?

@Rusteam
Copy link
Author

Rusteam commented Mar 13, 2024

yes we're delaying the update because for now it's been running fine and it's a manual process.

here's the full log (I've changed the domain name and put stars intead of actual key/secret values):

~ % clearml-agent init
CLEARML-AGENT setup process

Please create new clearml credentials through the settings page in your `clearml-server` web app,
or create a free account at https://app.clear.ml/settings/webapp-configuration

In the settings > workspace  page, press "Create new credentials", then press "Copy to clipboard".

Paste copied configuration here:
api {
    web_server: https://app.internal.ai
    api_server: https://api.internal.ai
    files_server: https://files.internal.ai
    credentials {
        "access_key" = "HEX***"
        "secret_key"  = "YUZRf******"
    }
    verify_certificate = False
}
Detected credentials key="HEX***" secret="YUZR***"
WEB Host configured to: [https://app.internal.ai]
API Host configured to: [https://api.internal.ai]
File Store Host configured to: [https://files.internal.ai]

ClearML Hosts configuration:
Web App: https://app.internal.ai
API: https://api.internal.ai
File Store: https://files.internal.ai

Verifying credentials ...
Error: could not verify credentials: key=HEX***
secret=YUZRf*****
Enter user access key: HEX***
Enter user secret: YUZRf***
Verifying credentials ...
Error: could not verify credentials: key=HEX***
secret=YUZRf****
Exiting setup without creating configuration file

@ainoam
Copy link
Collaborator

ainoam commented Mar 13, 2024

@Rusteam This looks like some kind of networking issue. Is the API server reachable from where you are trying to run the agent? Is it indeed listening on the default HTTPS port?

@Rusteam
Copy link
Author

Rusteam commented Mar 13, 2024

It's reachable. I've created a clearml.conf manually and have added required agent configs and clearml-agent daemon is working like a magic.

@ainoam
Copy link
Collaborator

ainoam commented Mar 13, 2024

@Rusteam The UI used to have an issue with an unnecessary whitespace being copied and breaking the CLI.
It would be best to validate with a more current version.

@Rusteam
Copy link
Author

Rusteam commented Mar 13, 2024

We thought it would require the update of clearml-server. We will try that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants