Skip to content
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

Bug: Erlang feature works on only some base images, fails on others #476

Open
danielbraun89 opened this issue Jun 26, 2023 · 2 comments
Open
Assignees

Comments

@danielbraun89
Copy link
Member

danielbraun89 commented Jun 26, 2023

Feature id and version

erlang-asdf

Devcontainer base Image

several

What happened?

ok images:

  • mcr.microsoft.com/devcontainers/base:bullseye

bad images:

  • debian:bullseye (unknown reason)

  • debian:bookworm (different apt-get packages required)

Relevant log output

No response

@danielbraun89
Copy link
Member Author

danielbraun89 commented Jun 27, 2023

debian:bullseye bug has been pin pointed to the following problem:

1. asdf-erlang is using kerl in order to install erlang
3. kerl is using ps on multiple occasions
4. ps is a product of the procps apt-get package, which is available at mcr.microsoft.com/devcontainers/base:bullseye but is missing from debian:bullseye

The solution is to install procps as a prerequisite

Other problems that made debugging this issue especially difficult:

  1. For some dumb reason, asdf-erlang purposely hides any output of the kerl installation subscript .
  2. asdf-erlang doesnt clean kerl's otp_installations file, therefore further installation attempts after first failure will trigger kerl's already registered error. There is no way to recover from this other than manually delete this file. A simillar with bug with different circumstances already "closed"

@danielbraun89 danielbraun89 self-assigned this Jun 27, 2023
@evilhamsterman
Copy link

This project is not associated with the devcontainer project and appears to have been abandoned #628 . The official project has removed all devcontainer-contrib features from their listing. devcontainers/devcontainers.github.io#451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants