401 error for requests to coder.example.com after "Update" option following template change
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- docker, go
- Ambito
- authentication, devops
Direzione di ricerca
Non vengono indicati file del repository o test. Riproduci una modifica al template seguita dall’opzione Update della dashboard con autenticazione tramite token, confrontala con Restart ed esamina i log di agent e coderd; l’attività è completata quando Update si riconnette senza errori 401.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Go
- Stelle
- 300
- Fork
- 64
- Merge medio
- 20m
- PR unite (30g)
- 1
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di coder/envbuilder
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
coder/envbuilder#506 ·
-
bug envbuilder needs-investigation
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
coder/envbuilder#495 ·
-
envbuilder Feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 56/100
coder/envbuilder#492 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
coder/envbuilder#484 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 38/100
coder/envbuilder#483 ·
Tutte le issue di coder/envbuilder
Issue simili
-
Type/Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
OpenNSW/nsw-srilanka#497 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
milvus-io/birdwatcher#545 ·
-
kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
kubernetes-sigs/prow#953 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
caddyserver/caddy#8046 ·