Skip to content

How is self-hosted server instance meant to work? #2

@sigmoid-bar

Description

@sigmoid-bar

Hi,
Thanks for a cool project.

I am trying to deploy the server in a self-hosted way. However, I cannot seem to progress as the API key entry flow always seem to point to the online version.

My entrypoint is in main.py

  1 #!/usr/bin/env python3
  2
  3 import mlop
  4
  5 def main():
  6   
  7   mlop.init(project="hello-world", settings={"host": "localhost"})
  8   mlop.log({"e": 2.718})
  9   mlop.finish()
 10   print("done")
 11
 12 if __name__ == "__main__":
 13   main()

When running this, I expect the browser to pop-up with a flow to the localhost instance, rather than the online verison.

 uv run main.py
mlop: 🚀 18:00:22 | Authentication: initializing authentication

 - Please copy the API key provided in the web portal and paste it below

 - You can alternatively manually open https://app.mlop.ai/api-keys

 - You may exit at any time by pressing CTRL+C / ⌃+C

Enter API key: <REDACTED>
mlop: 🚨 18:00:50 | Authentication: authentication failed; reason: 'organization'
mlop: 🚀 18:00:50 | Authentication: initializing authentication

 - Please copy the API key provided in the web portal and paste it below

 - You can alternatively manually open https://app.mlop.ai/api-keys

 - You may exit at any time by pressing CTRL+C / ⌃+C

Enter API key:

I am generating the API key from the self-hosted instance, under Developers -> Create API Key.
I tried both the secure and insecure API key generation flows.

Any ideas on why I am facing this?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions