401 error for requests to coder.example.com after "Update" option following template change
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, go
- 领域
- authentication, devops
调研方向
未指定 repository 文件或测试。使用 token 身份验证复现一次模板更改,然后执行 dashboard 的 Update 选项,将其与 Restart 进行比较,并检查 agent 和 coderd 日志;当 Update 在没有 401 错误的情况下重新连接时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I am seeing an issue where when I use the "Update" option in the coder dashboard after a template change, the coder process get stuck in this state, where it gets 401 errors trying to talk to the coder agent URL. The issue is resolved by using the "Restart" option instead.
2024-06-12 19:43:20.920 [info] connecting to coderd
2024-06-12 19:43:20.934 [warn] run exited with error ...
error= GET https://coder.example.com/api/v2/workspaceagents/me/rpc?version=2.1: unexpected status code 401: unexpected non-JSON response "": Try logging in using 'coder login'.
Error: no response body
I am using "token" authentication with the coder agent, with config passed to the container for the auth as:
{
name = "CODER_AGENT_TOKEN"
value = try(coder_agent.main[0].token, "")
},
{
name = "CODER_AGENT_URL"
value = data.coder_workspace.me.access_url
},
This issue does away after doing a "restart" of the instance.
Discord discussion here: https://discord.com/channels/747933592273027093/1250538421789790271/1250538421789790271
- 主要语言
- Go
- 星标
- 300
- 派生
- 64
- 平均合并
- 20 分钟
- 30 天内合并 PR
- 1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/envbuilder 的其他 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
coder/envbuilder#506 ·
-
bug envbuilder needs-investigation
难度 4/5 3-5 天 新手友好度 35/100
coder/envbuilder#495 ·
-
envbuilder Feature
难度 3/5 1-2 天 新手友好度 56/100
coder/envbuilder#492 ·
-
难度 4/5 3-5 天 新手友好度 25/100
coder/envbuilder#484 ·
-
难度 3/5 1-2 天 新手友好度 38/100
coder/envbuilder#483 ·
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
-
bug group: validation priority: low
难度 2/5 1-3 小时 新手友好度 75/100
codecheckers/chekhov#51 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100