ory / ory/meta

`install.sh` dowloads wrong binary on Alpine Linux (libmusl)

Open
#243 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
17
Forks
17
Avg merge
5h 43m
Merged PRs (30d)
1

Description

Describe the bug

Running the install script on a fresh Alpine container downloads kratos_{version}-linux_sqlite_64bit.tar.gz when it should download kratos_{version}-linux_sqlite_libmusl_64bit.tar.gz.

Suggested change

A check needs to be added for the C library in use. i.e., ldd --version.

Reproducing the bug
ash <(wget -qO- https://raw.githubusercontent.com/ory/meta/master/install.sh) -d -b . kratos
Relevant log output
ory/ info checking GitHub for latest tag
ory/ debug http_download https://github.com/ory/kratos/releases/latest
ory/ info found version: 25.4.0 for v25.4.0/linux/64bit
ory/ debug downloading files into /tmp/tmp.MFBmna
ory/ debug http_download https://github.com/ory/kratos/releases/download/v25.4.0/kratos_25.4.0-linux_sqlite_64bit.tar.gz
ory/ debug http_download https://github.com/ory/kratos/releases/download/v25.4.0/checksums.txt
ory/ info installed ./bin/kratos
On which operating system are you observing this issue?

Linux

Additional Context

Alpine is running in a Linux container (lxc) on a Proxmox based system.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with install.sh and reproduce the Alpine command from the issue, then inspect the logic that selects the Linux archive. Use ldd --version to identify the C library and verify that Alpine selects the libmusl archive while the regular Linux selection remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, shell
Domain
devops, release
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.