Skip to content
This repository was archived by the owner on Jan 12, 2025. It is now read-only.

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
Owner

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
Owner 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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants