8000 code-server fails to install on envbuilder · Issue #16097 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
code-server fails to install on envbuilder #16097
Open
@jatcod3r

Description

@jatcod3r

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox
  • Local OS: MacOS
  • Remote OS: Ubuntu
  • Remote Architecture: x86_64
  • code-server --version: 4.96.2
  • Module? : Yes (code-server module)

Steps to Reproduce

  1. Launch the Kubernetes (Devcontainer) starter template.
  2. Setup your devcontainers repo to use an empty list of features (or use the one we reference in our docs).
  3. code-server fails to install.

Expected

Expected code-server on the starter template to start out-of-box following whats described in the docs. It's not mentioned what feature(s) are required to use code-server other than common-utils

Actual

Fails to install with: /tmp/code-server/bin/code-server: exec: line 28: /tmp/code-server/lib/code-server-4.96.2/lib/node: not found

Logs

// /tmp/code-server.log
/tmp/code-server/bin/code-server: exec: line 28: /tmp/code-server/lib/code-server-4.96.2/lib/node: not found

Screenshot/Video

Terminal Output

  • Log output shows that code-server-4.96.2/lib/node isn't found.
  • Listing the code-server-4.96.2/lib shows that the node executable exists
  • Running the node executable returns /tmp/code-server/lib/code-server-4.96.2/lib/node: not found
Image

Coder UI

Image

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

Coder docs doesn't state that features are required to make code-server work on envbuilder. Attempting to deploy code-server without any results in curl not found.

I checked the docs, and from the "add a dev container" page, it prescribes to use "common-utils". However, this doesn't work as well.

For both cases I verified that my devcontainer.json on the workspace reflected what I had pushed into my Git repo.

Eventually, I found that using "apt-packages" and setting up the following devcontainer.json spec allows code-server to launch:

{
    "image": "alpine:latest",
    "features": {
        "ghcr.io/rocker-org/devcontainer-features/apt-packages:latest": {
            "packages": "file"
        }
    }
}

It's not clear what's missing as I don't believe the "file" package actually contributes anything (when trying to run the file command, it doesn't seem to have been successfully installed). Rather, I think it's the fact that there's an accessible package manager now that might've been used in the background to install any code-server dependencies.

Not sure which is correct here, but I think either that the docs should reflect the minimal feature(s) required to install code-server, or there's an issue with code-server i 5C7B f it's expected to work out-of-box on envbuilder.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0