Error installing under Amazon Linux 2023 #49

Open
opened 2025-06-12 14:11:12 +00:00 by teofilc · 6 comments

Context

I'm trying to install lix in the Amazon Linux 2023 based AMI used by buildkite agent and I get this error.

Error

Error: 
   0: Install failure
   1: Error executing action
   2: Action `configure_nix` errored
   3: Action `setup_default_profile` errored
   4: Failed to execute command `HOME="/root" "/nix/store/c47cym23n56kkss8z0ican8nynkf6cwk-lix-2.93.0/bin/nix-store" "--load-db"`
   5: Symbolic link loop (os error 40)

Metadata

key value
version 0.17.1
os linux
arch x86_64
## Context I'm trying to install lix in the Amazon Linux 2023 based AMI used by buildkite agent and I get this error. ## Error ``` Error: 0: Install failure 1: Error executing action 2: Action `configure_nix` errored 3: Action `setup_default_profile` errored 4: Failed to execute command `HOME="/root" "/nix/store/c47cym23n56kkss8z0ican8nynkf6cwk-lix-2.93.0/bin/nix-store" "--load-db"` 5: Symbolic link loop (os error 40) ``` ## Metadata |key|value| |--|--| |**version**|0.17.1| |**os**|linux| |**arch**|x86_64|
teofilc changed title from Error installing under Amazon Linux 2023 to Error installing under Amazon Linux 2 2025-06-12 14:13:28 +00:00
teofilc changed title from Error installing under Amazon Linux 2 to Error installing under Amazon Linux 2023 2025-06-12 14:19:44 +00:00
Author

It looks like /nix/store is full of weird broken symbolic links:

$ ls /nix/store -al
total 16
drwxr-xr-x. 2 root root 16384 Jun 12 14:42 .
drwxr-xr-x. 5 root root    95 Jun 12 14:43 ..
lrwxrwxrwx. 1 root root    56 Jun 12 14:42 006cc028jdjpsvx2p02acnn4pfvx45ha-toml11-3.7.1 -> /nix/store/006cc028jdjpsvx2p02acnn4pfvx45ha-toml11-3.7.1
lrwxrwxrwx. 1 root root    58 Jun 12 14:42 1cpycz2gjynsiqgj3195jgrvbk1s4y1w-zlib-1.3.1-dev -> /nix/store/1cpycz2gjynsiqgj3195jgrvbk1s4y1w-zlib-1.3.1-dev
lrwxrwxrwx. 1 root root    63 Jun 12 14:42 1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27 -> /nix/store/1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27
lrwxrwxrwx. 1 root root    58 Jun 12 14:42 1n0b29iid3y0w9i91v9zqdiwnx3inak0-libssh2-1.11.1 -> /nix/store/1n0b29iid3y0w9i91v9zqdiwnx3inak0-libssh2-1.11.1
lrwxrwxrwx. 1 root root    64 Jun 12 14:42 1p1j0iv3c909kcs4d5300kcsnlwmbwyj-ncurses-6.4.20221231 -> /nix/store/1p1j0iv3c909kcs4d5300kcsnlwmbwyj-ncurses-6.4.20221231
lrwxrwxrwx. 1 root root    58 Jun 12 14:42 20ky2306yw2ri5ki82bgllr4rwnril21-aws-c-s3-0.6.0 -> /nix/store/20ky2306yw2ri5ki82bgllr4rwnril21-aws-c-s3-0.6.0
lrwxrwxrwx. 1 root root    57 Jun 12 14:42 282klmpdw8vibm1k0qachsnzc7zq522z-libpsl-0.21.5 -> /nix/store/282klmpdw8vibm1k0qachsnzc7zq522z-libpsl-0.21.5
It looks like `/nix/store` is full of weird broken symbolic links: ``` $ ls /nix/store -al total 16 drwxr-xr-x. 2 root root 16384 Jun 12 14:42 . drwxr-xr-x. 5 root root 95 Jun 12 14:43 .. lrwxrwxrwx. 1 root root 56 Jun 12 14:42 006cc028jdjpsvx2p02acnn4pfvx45ha-toml11-3.7.1 -> /nix/store/006cc028jdjpsvx2p02acnn4pfvx45ha-toml11-3.7.1 lrwxrwxrwx. 1 root root 58 Jun 12 14:42 1cpycz2gjynsiqgj3195jgrvbk1s4y1w-zlib-1.3.1-dev -> /nix/store/1cpycz2gjynsiqgj3195jgrvbk1s4y1w-zlib-1.3.1-dev lrwxrwxrwx. 1 root root 63 Jun 12 14:42 1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27 -> /nix/store/1k1bnir265n7jpbmwinj8hiwygnwrw3s-aws-c-common-0.9.27 lrwxrwxrwx. 1 root root 58 Jun 12 14:42 1n0b29iid3y0w9i91v9zqdiwnx3inak0-libssh2-1.11.1 -> /nix/store/1n0b29iid3y0w9i91v9zqdiwnx3inak0-libssh2-1.11.1 lrwxrwxrwx. 1 root root 64 Jun 12 14:42 1p1j0iv3c909kcs4d5300kcsnlwmbwyj-ncurses-6.4.20221231 -> /nix/store/1p1j0iv3c909kcs4d5300kcsnlwmbwyj-ncurses-6.4.20221231 lrwxrwxrwx. 1 root root 58 Jun 12 14:42 20ky2306yw2ri5ki82bgllr4rwnril21-aws-c-s3-0.6.0 -> /nix/store/20ky2306yw2ri5ki82bgllr4rwnril21-aws-c-s3-0.6.0 lrwxrwxrwx. 1 root root 57 Jun 12 14:42 282klmpdw8vibm1k0qachsnzc7zq522z-libpsl-0.21.5 -> /nix/store/282klmpdw8vibm1k0qachsnzc7zq522z-libpsl-0.21.5 ```
Author

If I download and unpack the lix .tar.xz manually then it looks fine. No funky symbolic links

If I download and unpack the lix .tar.xz manually then it looks fine. No funky symbolic links
Author

The stuff in /nix/temp-install-dir but only after the move unpacked nix step. So the bug must be in https://git.lix.systems/lix-project/lix-installer/src/branch/main/src/action/base/move_unpacked_nix.rs

The stuff in `/nix/temp-install-dir` but only after the move unpacked nix step. So the bug must be in https://git.lix.systems/lix-project/lix-installer/src/branch/main/src/action/base/move_unpacked_nix.rs
Author

This might have something to do with the XFS filesystem that this image uses

This might have something to do with the XFS filesystem that this image uses
Author

This error doesn't happen with the determinate nix installer

This error doesn't happen with the determinate nix installer
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/3352 ("move_unpacked_nix: Read source directory all at once")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix-installer/+/3352", "number": 3352, "kind": "commit message"}], "cl_meta": {"3352": {"change_title": "move_unpacked_nix: Read source directory all at once"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/3352](https://gerrit.lix.systems/c/lix-installer/+/3352) ("move_unpacked_nix: Read source directory all at once")
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix-installer#49
No description provided.