Skip to content

cannot download logs of failed envbuilder workspace #15060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bpmct opened this issue Oct 14, 2024 · 1 comment
Open

cannot download logs of failed envbuilder workspace #15060

bpmct opened this issue Oct 14, 2024 · 1 comment
Labels
need-help Assign this label prompts an engineer to check the issue. Only humans may set this.

Comments

@bpmct
Copy link
Member

bpmct commented Oct 14, 2024

I was hoping to copy/paste or download logs to share in an issue but sadly the button is greyed out. This may be because the agent is disconnected? In error scenarios like this, can we make this accessible?

Image

Scenario: coder/envbuilder#385

@coder-labeler coder-labeler bot added bug need-help Assign this label prompts an engineer to check the issue. Only humans may set this. labels Oct 14, 2024
@matifali matifali removed the bug label Oct 14, 2024
@johnstcn
Copy link
Member

Right now you can curl https://${CODER_URL}/api/v2/workspaceagents/${WORKSPACE_BUILD_ID}/logs and get JSON-formatted logs (most browsers will format that nicely for you anyhow). You can also hit that up in the browser.

I was speaking with @SasSwart about this earlier though, and it would actually be nice to have a plain-text logs endpoint. We could then just link to that directly in the UI in a [View Logs] button which would open the endpoint in a new tab.

(Aside, it would also be very nice to have a CLI command to view logs e.g. coder logs <workspace>!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-help Assign this label prompts an engineer to check the issue. Only humans may set this.
Projects
None yet
Development

No branches or pull requests

3 participants