@@ -120,7 +120,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
120
120
if agent .Status == codersdk .WorkspaceAgentTimeout {
121
121
now := time .Now ()
122
122
sw .Log (now , codersdk .LogLevelInfo , "The workspace agent is having trouble connecting, wait for it to connect or restart your workspace." )
123
- sw .Log (now , codersdk .LogLevelInfo , troubleshootingMessage (agent , fmt .Sprintf ("%s/templates#agent-connection-issues" , opts .DocsURL )))
123
+ sw .Log (now , codersdk .LogLevelInfo , troubleshootingMessage (agent , fmt .Sprintf ("%s/admin/ templates/troubleshooting #agent-connection-issues" , opts .DocsURL )))
124
124
for agent .Status == codersdk .WorkspaceAgentTimeout {
125
125
if agent , err = fetch (); err != nil {
126
126
return xerrors .Errorf ("fetch: %w" , err )
@@ -225,13 +225,13 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
225
225
sw .Fail (stage , safeDuration (sw , agent .ReadyAt , agent .StartedAt ))
226
226
// Use zero time (omitted) to separate these from the startup logs.
227
227
sw .Log (time.Time {}, codersdk .LogLevelWarn , "Warning: A startup script exited with an error and your workspace may be incomplete." )
228
- sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/templates#startup-script-exited-with-an-error" , opts .DocsURL )))
228
+ sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/admin/ templates/troubleshooting #startup-script-exited-with-an-error" , opts .DocsURL )))
229
229
default :
230
230
switch {
231
231
case agent .LifecycleState .Starting ():
232
232
// Use zero time (omitted) to separate these from the startup logs.
233
233
sw .Log (time.Time {}, codersdk .LogLevelWarn , "Notice: The startup scripts are still running and your workspace may be incomplete." )
234
- sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/templates#your-workspace-may-be-incomplete" , opts .DocsURL )))
234
+ sw .Log (time.Time {}, codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/admin/ templates/troubleshooting #your-workspace-may-be-incomplete" , opts .DocsURL )))
235
235
// Note: We don't complete or fail the stage here, it's
236
236
// intentionally left open to indicate this stage didn't
237
237
// complete.
@@ -253,7 +253,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
253
253
stage := "The workspace agent lost connection"
254
254
sw .Start (stage )
255
255
sw .Log (time .Now (), codersdk .LogLevelWarn , "Wait for it to reconnect or restart your workspace." )
256
- sw .Log (time .Now (), codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/templates#agent-connection-issues" , opts .DocsURL )))
256
+ sw .Log (time .Now (), codersdk .LogLevelWarn , troubleshootingMessage (agent , fmt .Sprintf ("%s/admin/ templates/troubleshooting #agent-connection-issues" , opts .DocsURL )))
257
257
258
258
disconnectedAt := agent .DisconnectedAt
259
259
for agent .Status == codersdk .WorkspaceAgentDisconnected {
0 commit comments