@@ -120,7 +120,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
120120if agent .Status == codersdk .WorkspaceAgentTimeout {
121121now := time .Now ()
122122sw .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 )))
124124for agent .Status == codersdk .WorkspaceAgentTimeout {
125125if agent ,err = fetch ();err != nil {
126126return xerrors .Errorf ("fetch: %w" ,err )
@@ -225,13 +225,13 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
225225sw .Fail (stage ,safeDuration (sw ,agent .ReadyAt ,agent .StartedAt ))
226226// Use zero time (omitted) to separate these from the startup logs.
227227sw .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 )))
229229default :
230230switch {
231231case agent .LifecycleState .Starting ():
232232// Use zero time (omitted) to separate these from the startup logs.
233233sw .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 )))
235235// Note: We don't complete or fail the stage here, it's
236236// intentionally left open to indicate this stage didn't
237237// complete.
@@ -253,7 +253,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
253253stage := "The workspace agent lost connection"
254254sw .Start (stage )
255255sw .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 )))
257257
258258disconnectedAt := agent .DisconnectedAt
259259for agent .Status == codersdk .WorkspaceAgentDisconnected {