stackit-cli icon indicating copy to clipboard operation
stackit-cli copied to clipboard

snapcraft install cannot login

Open Geroxus opened this issue 8 months ago • 3 comments

Description

After installing stackit-cli via snap the stackit auth login command runs indefinitely without opening a browser.

Steps to reproduce

  1. Run sudo snap install stackit --beta --classic
  2. Run stackit auth login

Actual behavior

Runs indedfinitely without providing feedback.

Expected behavior

Opening a browser window and allowing me to login.

Environment

  • Operating System: EndeavourOS
  • Kernel: Linux 6.14.5-arch1-1
  • Architecture: x86-64
  • Version of STACKIT CLI (see stackit --version): 0.32.0 (2025-05-13)

Additional information

Generally activated sandboxing for snap.

Geroxus avatar May 16 '25 08:05 Geroxus

Hi @Geroxus,

thanks for reporting this issue. I'll create internal a ticket to check what's the issue there.

As workaround, you can try to run stackit auth login --verbosity debug. There should be a message with "opening browser for authentication: https://accounts.stackit.cloud/oauth/v2/authorize?client_id=stackit-cli-0000-0000-000000000001....". Then you can open your browser manually with the provided URL.

If the message doesn't show up, can you please post the logs here?

marceljk avatar May 16 '25 08:05 marceljk

Hi @marceljk

your suggested workaround worked, thanks.

Good luck on the issue hunt ig ^^

Geroxus avatar May 16 '25 11:05 Geroxus

Hi @Geroxus,

I'm having troubles when trying to reproduce this on my system. Could you check if there are any error log outputs when running the login with the debug output?

stackit auth login --verbosity debug

If so, it would be very helpful if you could paste them here. Thanks 😄

rubenhoenle avatar May 22 '25 09:05 rubenhoenle

Hi @Geroxus,

since we were not able to reproduce the issue on our side and we're still waiting for your feedback on my last question, I will close this issue for now.

Feel free to re-open in case you want to provide the debug output so we can have another look onto this.

Best regards Ruben

rubenhoenle avatar Jul 17 '25 08:07 rubenhoenle