Skip to content

Can't access logs when workspace fails #3329

@ammario

Description

@ammario

As a template admin, I try out my template by creating a workspace. Since there is a failure in my startup_script, the workspace "fails" and its resources are immediately deleted. The problem is I've now lost my /var/log/coder-startup-script.log and can no longer find the error.

A workaround is adding an sleep 999999 or disabling set -e in my startup script, but ideally I can find the error without making a temporary modification to my startup_script.

Some approaches:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions