401 error for requests to coder.example.com after "Update" option following template change
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker, go
- 領域
- authentication, devops
調査の方向性
リポジトリファイルやテストは指定されていません。トークン認証でダッシュボードの 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分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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 ·
coder/envbuilder の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
github/gh-aw-mcpg#13748 ·
-
agentic-workflows
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
googleapis/librarian#7670 · コメント 2 件 ·