You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stackit auth login fails if something already runs on localhost:8000 #1250
When running something on localhost:8000 the stackit auth login command gets stuck.
Steps to reproduce
Run something on localhost:8000
Run stackit auth login
Browser opens, goes to the app already running on localhost:8000, stackit cli is stuck
Actual behavior
The terminal reads the following and nothing happens:
Your browser has been opened to visit:
https://accounts.stackit.cloud/oauth/v2/authorize?<loads-of-stuff>&redirect_uri=http%3A%2F%2Flocalhost%3A8000&<more-stuff>
This doesn't always happen which is curious.
I tried to block the port with a simple python server by running python3 -m http.server, but then stackit CLI used another port (8001) as I would've expected.
When I run a static site generator such as Zensical, the oauth flow gets stuck as described above, and no alternative port is chosen.
Expected behavior
I expect stackit cli to reliably fallback to a different port if 8000 is occupied.
Environment
OS: MacOS 26
Version of STACKIT CLI (see stackit --version): 0.51.0
this issue was solved in #1251 and will be part of our next release. We also add a flag --port to the $ stackit auth login command, where you can choose one port of the range 8000-8020, which will be used for the callback.
Best regards
Marcel from the STACKIT Developer Tools Team
Activity
KevinGimbel commentedon Jan 23, 2026
I noticed there's a newer version https://github.com/stackitcloud/stackit-cli/releases/tag/v0.52.0 but this one is not yet in nixpkgs so I cannot get it yet.
From the release notes it doesn't look like it fixes my issue.
marceljk commentedon Mar 19, 2026
Hi @KevinGimbel,
this issue was solved in #1251 and will be part of our next release. We also add a flag
--portto the$ stackit auth logincommand, where you can choose one port of the range 8000-8020, which will be used for the callback.Best regards
Marcel from the STACKIT Developer Tools Team