Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Enable startup log streaming incoder ssh #7767

Closed
Assignees
mafredri
Labels
cliArea: CLI
Milestone
@mafredri

Description

@mafredri

Whenstartup_script_behavior => blocking (#7757) or workspace agent lifecycle isstartup_error, we want to stream/show the startup log the same way provisioning logs are currently streamed.

  • Update messaging to match provisioner log output
  • Show startup script log whenstartup_script_behavior => blocking
  • Show startup script log when lifecycle isstart_error

Example (blocking):

✔ Setting up [2805ms]> ⧗  Planning infrastructure  data.coder_provisioner.me: Refreshing...  ...✔ Starting workspace [3726ms]✔ Cleaning Up [26ms]✔ Waiting for workspace agent to connect [500ms]> ⧗  Running workspace agent startup script  + echo Running apt-get update  Running apt-get update  + sudo apt-get update  ...  + echo Installing iperf3  Installing iperf3  + sudo apt-get install iperf3 --yes  Reading package lists... Done  ...✔ Running workspace agent startup script [999999ms]user@workspace #

Example (non-blocking), when logging in before workspace agent has connected (this allows us to give users a hint whilst not changing any of the current functionality):

...✔ Starting workspace [3726ms]✔ Cleaning Up [26ms]✔ Waiting for workspace agent to connect [500ms]> ⧗  Running workspace agent startup script (non-blocking)  Notice: Startup script is still running and some things may be missing or not fully set up  For more information and troubleshooting, see https://coder.com/docs/coder-oss/latest/templates#startup-sccript-is-still-executinguser@workspace #

Example (error):

✘ Running workspace agent startup script [999999ms]  + echo Running apt-get update  Running apt-get update  + sudo apt-get update  ...  + echo Installing iperf3  Installing iperf2  + sudo apt-get install iperf2 --yes  ...  E: Unable to locate package iperf2  Warning: The startup script exited with an error and your workspace may be in an incomplete state, you may inspect the log output above for what went wrong  For more information and troubleshooting, see https://coder.com/docs/v2/latest/templates#agent-does-not-become-readyuser@workspace #

Metadata

Metadata

Assignees

Labels

cliArea: CLI

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp