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

workspace agents are unauthorized #73

Open
ericpaulsen opened this issue Sep 27, 2024 · 1 comment
Open

workspace agents are unauthorized #73

ericpaulsen opened this issue Sep 27, 2024 · 1 comment

Comments

@ericpaulsen
Copy link
Member

reproduced on Coder 2.13.4, 2.15.0, using both 0.0.9 and 0.0.11 of coder-logstream-kube. i see we updated the SDK to the v2 agent API, but is it possible this update was bugged? #47

logs:

2024-09-26 18:02:32.051 [erro]  post log source  resource_name=coder-eric-pycharm ...
    error= POST https://eng.demo.coder.com/api/v2/workspaceagents/me/log-source: unexpected status code 401: Workspace agent not authorized.: Try logging in using 'coder login'.
                Error: The agent cannot authenticate until the workspace provision job has been completed. If the job is no longer running, this agent is invalid.
@coadler
Copy link
Member

coadler commented Oct 4, 2024

So far I'm unable to reproduce on v0.0.11 and coder v2.16. I can reproduce the 401 logs, but those are expected due to how agents can't connect before the build finishes. I'll need a more complete picture of logs from logstream-kube and coderd from around the same timeframe.
image

@matifali matifali removed the bug label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants