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

Installer hangs on "Remove directory /nix/temp-install-dir" step #1309

Open
kaineub opened this issue Nov 21, 2024 · 3 comments
Open

Installer hangs on "Remove directory /nix/temp-install-dir" step #1309

kaineub opened this issue Nov 21, 2024 · 3 comments
Labels

Comments

@kaineub
Copy link

kaineub commented Nov 21, 2024

The installer hangs on the final step and I can't kill the process using CTRL+C. Opening another session, I can see that the directory does not exist and /nix/receipt.json shows the step as successful. I have tried v0.27.0 on Ubuntu 20.04 and 24.04. The issue also occurs with v0.29.0.

$ curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | \
>   sh -s -- install
info: downloading installer https://install.determinate.systems/nix/tag/v0.29.0/nix-installer-x86_64-linux
 INFO nix-installer v0.29.0
`nix-installer` needs to run as `root`, attempting to escalate now via `sudo`...
 INFO nix-installer v0.29.0
Nix install plan (v0.29.0)
Planner: linux (with default settings)

Planned actions:
* Create directory `/nix`
* Extract the bundled Nix (originally from /nix/store/sccdqbmdj8ibwlgx174a7hargnabbsgs-nix-binary-tarball-2.24.10/nix-2.24.10-x86_64-linux.tar.xz)
* Create a directory tree in `/nix`
* Move the downloaded Nix into `/nix`
* Create build users (UID 30001-30032) and group (GID 30000)
* Setup the default Nix profile
* Place the Nix configuration in `/etc/nix/nix.conf`
* Configure the shell profiles
* Create directory `/etc/tmpfiles.d`
* Configure upstream Nix daemon service
* Remove directory `/nix/temp-install-dir`


Proceed? ([Y]es/[n]o/[e]xplain): Y
 INFO Step: Create directory `/nix`
 INFO Step: Provision Nix
 INFO Step: Create build users (UID 30001-30032) and group (GID 30000)
 INFO Step: Configure Nix
 INFO Step: Create directory `/etc/tmpfiles.d`
 INFO Step: Configure upstream Nix daemon service
 INFO Step: Remove directory `/nix/temp-install-dir`

Contents of /nix/receipt.json:

{
  "version": "0.29.0",
  "actions": [
    {
      "action": {
        "action_name": "create_directory",
        "path": "/nix",
        "user": null,
        "group": null,
        "mode": 493,
        "is_mountpoint": false,
        "force_prune_on_revert": true
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "provision_nix",
        "fetch_nix": {
          "action": {
            "action_name": "fetch_and_unpack_nix",
            "url_or_path": null,
            "dest": "/nix/temp-install-dir",
            "proxy": null,
            "ssl_cert_file": null
          },
          "state": "Completed"
        },
        "create_nix_tree": {
          "action": {
            "action_name": "create_nix_tree",
            "create_directories": [
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/log",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/log/nix",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/log/nix/drvs",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/db",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/gcroots",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/gcroots/per-user",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/profiles",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/profiles/per-user",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/temproots",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/userpool",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/nix/var/nix/daemon-socket",
                  "user": "root",
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": true
                },
                "state": "Completed"
              }
            ]
          },
          "state": "Completed"
        },
        "move_unpacked_nix": {
          "action": {
            "action_name": "mount_unpacked_nix",
            "unpacked_path": "/nix/temp-install-dir"
          },
          "state": "Completed"
        }
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "create_users_and_group",
        "nix_build_group_name": "nixbld",
        "nix_build_group_id": 30000,
        "nix_build_user_count": 32,
        "nix_build_user_prefix": "nixbld",
        "nix_build_user_id_base": 30000,
        "create_group": {
          "action": {
            "action_name": "create_group",
            "name": "nixbld",
            "gid": 30000
          },
          "state": "Completed"
        },
        "create_users": [
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld1",
              "uid": 30001,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 1"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld2",
              "uid": 30002,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 2"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld3",
              "uid": 30003,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 3"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld4",
              "uid": 30004,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 4"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld5",
              "uid": 30005,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 5"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld6",
              "uid": 30006,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 6"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld7",
              "uid": 30007,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 7"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld8",
              "uid": 30008,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 8"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld9",
              "uid": 30009,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 9"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld10",
              "uid": 30010,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 10"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld11",
              "uid": 30011,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 11"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld12",
              "uid": 30012,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 12"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld13",
              "uid": 30013,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 13"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld14",
              "uid": 30014,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 14"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld15",
              "uid": 30015,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 15"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld16",
              "uid": 30016,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 16"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld17",
              "uid": 30017,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 17"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld18",
              "uid": 30018,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 18"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld19",
              "uid": 30019,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 19"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld20",
              "uid": 30020,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 20"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld21",
              "uid": 30021,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 21"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld22",
              "uid": 30022,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 22"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld23",
              "uid": 30023,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 23"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld24",
              "uid": 30024,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 24"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld25",
              "uid": 30025,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 25"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld26",
              "uid": 30026,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 26"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld27",
              "uid": 30027,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 27"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld28",
              "uid": 30028,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 28"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld29",
              "uid": 30029,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 29"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld30",
              "uid": 30030,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 30"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld31",
              "uid": 30031,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 31"
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "create_user",
              "name": "nixbld32",
              "uid": 30032,
              "groupname": "nixbld",
              "gid": 30000,
              "comment": "Nix build user 32"
            },
            "state": "Completed"
          }
        ],
        "add_users_to_groups": [
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld1",
              "uid": 30001,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld2",
              "uid": 30002,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld3",
              "uid": 30003,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld4",
              "uid": 30004,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld5",
              "uid": 30005,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld6",
              "uid": 30006,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld7",
              "uid": 30007,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld8",
              "uid": 30008,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld9",
              "uid": 30009,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld10",
              "uid": 30010,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld11",
              "uid": 30011,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld12",
              "uid": 30012,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld13",
              "uid": 30013,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld14",
              "uid": 30014,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld15",
              "uid": 30015,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld16",
              "uid": 30016,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld17",
              "uid": 30017,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld18",
              "uid": 30018,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld19",
              "uid": 30019,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld20",
              "uid": 30020,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld21",
              "uid": 30021,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld22",
              "uid": 30022,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld23",
              "uid": 30023,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld24",
              "uid": 30024,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld25",
              "uid": 30025,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld26",
              "uid": 30026,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld27",
              "uid": 30027,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld28",
              "uid": 30028,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld29",
              "uid": 30029,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld30",
              "uid": 30030,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld31",
              "uid": 30031,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          },
          {
            "action": {
              "action_name": "add_user_to_group",
              "name": "nixbld32",
              "uid": 30032,
              "groupname": "nixbld",
              "gid": 30000
            },
            "state": "Completed"
          }
        ]
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "configure_nix",
        "setup_default_profile": {
          "action": {
            "action_name": "setup_default_profile",
            "unpacked_path": "/nix/temp-install-dir"
          },
          "state": "Completed"
        },
        "configure_shell_profile": {
          "action": {
            "action_name": "configure_shell_profile",
            "locations": {
              "fish": {
                "confd_suffix": "conf.d/nix.fish",
                "confd_prefixes": [
                  "/etc/fish",
                  "/usr/local/etc/fish",
                  "/opt/homebrew/etc/fish",
                  "/opt/local/etc/fish"
                ],
                "vendor_confd_suffix": "vendor_conf.d/nix.fish",
                "vendor_confd_prefixes": [
                  "/usr/share/fish/",
                  "/usr/local/share/fish/"
                ]
              },
              "bash": [
                "/etc/bashrc",
                "/etc/profile.d/nix.sh",
                "/etc/bash.bashrc"
              ],
              "zsh": [
                "/etc/zshrc",
                "/etc/zsh/zshrc"
              ]
            },
            "create_directories": [
              {
                "action": {
                  "action_name": "create_directory",
                  "path": "/etc/zsh",
                  "user": null,
                  "group": null,
                  "mode": 493,
                  "is_mountpoint": false,
                  "force_prune_on_revert": false
                },
                "state": "Completed"
              }
            ],
            "create_or_insert_into_files": [
              {
                "action": {
                  "action_name": "create_or_insert_into_file",
                  "path": "/etc/bashrc",
                  "user": null,
                  "group": null,
                  "mode": 420,
                  "buf": "\n# Nix\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\n    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\nfi\n# End Nix\n\n        \n",
                  "position": "Beginning"
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_or_insert_into_file",
                  "path": "/etc/profile.d/nix.sh",
                  "user": null,
                  "group": null,
                  "mode": 420,
                  "buf": "\n# Nix\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\n    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\nfi\n# End Nix\n\n        \n",
                  "position": "Beginning"
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_or_insert_into_file",
                  "path": "/etc/bash.bashrc",
                  "user": null,
                  "group": null,
                  "mode": 420,
                  "buf": "\n# Nix\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\n    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\nfi\n# End Nix\n\n        \n",
                  "position": "Beginning"
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_or_insert_into_file",
                  "path": "/etc/zshrc",
                  "user": null,
                  "group": null,
                  "mode": 420,
                  "buf": "\n# Nix\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\n    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\nfi\n# End Nix\n\n        \n",
                  "position": "Beginning"
                },
                "state": "Completed"
              },
              {
                "action": {
                  "action_name": "create_or_insert_into_file",
                  "path": "/etc/zsh/zshrc",
                  "user": null,
                  "group": null,
                  "mode": 420,
                  "buf": "\n# Nix\nif [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then\n    . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'\nfi\n# End Nix\n\n        \n",
                  "position": "Beginning"
                },
                "state": "Completed"
              }
            ]
          },
          "state": "Completed"
        },
        "place_nix_configuration": {
          "action": {
            "action_name": "place_nix_configuration",
            "create_directory": {
              "action": {
                "action_name": "create_directory",
                "path": "/etc/nix",
                "user": null,
                "group": null,
                "mode": 493,
                "is_mountpoint": false,
                "force_prune_on_revert": false
              },
              "state": "Completed"
            },
            "create_or_merge_nix_config": {
              "action": {
                "action_name": "create_or_merge_nix_config",
                "path": "/etc/nix/nix.conf",
                "pending_nix_config": {
                  "settings": {
                    "build-users-group": "nixbld",
                    "experimental-features": "nix-command flakes",
                    "auto-optimise-store": "true",
                    "always-allow-substitutes": "true",
                    "extra-trusted-substituters": "https://cache.flakehub.com",
                    "extra-trusted-public-keys": "cache.flakehub.com-3:hJuILl5sVK4iKm86JzgdXW12Y2Hwd5G07qKtHTOcDCM= cache.flakehub.com-4:Asi8qIv291s0aYLyH6IOnr5Kf6+OF14WVjkE6t3xMio= cache.flakehub.com-5:zB96CRlL7tiPtzA9/WKyPkp3A2vqxqgdgyTVNGShPDU= cache.flakehub.com-6:W4EGFwAGgBj3he7c5fNh9NkOXw0PUVaxygCVKeuvaqU= cache.flakehub.com-7:mvxJ2DZVHn/kRxlIaxYNMuDG1OvMckZu32um1TadOR8= cache.flakehub.com-8:moO+OVS0mnTjBTcOUh2kYLQEd59ExzyoW1QgQ8XAARQ= cache.flakehub.com-9:wChaSeTI6TeCuV/Sg2513ZIM9i0qJaYsF+lZCXg0J6o= cache.flakehub.com-10:2GqeNlIp6AKp4EF2MVbE1kBOp9iBSyo0UPR9KoR0o1Y=",
                    "bash-prompt-prefix": "(nix:$name)\\040",
                    "max-jobs": "auto",
                    "extra-nix-path": "nixpkgs=flake:nixpkgs",
                    "upgrade-nix-store-path-url": "https://install.determinate.systems/nix-upgrade/stable/universal"
                  }
                }
              },
              "state": "Completed"
            }
          },
          "state": "Completed"
        }
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "create_directory",
        "path": "/etc/tmpfiles.d",
        "user": null,
        "group": null,
        "mode": 493,
        "is_mountpoint": false,
        "force_prune_on_revert": false
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "create_upstream_init_service",
        "configure_init_service": {
          "action": {
            "action_name": "configure_init_service",
            "init": "Systemd",
            "start_daemon": true,
            "service_src": "/nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.service",
            "service_name": null,
            "service_dest": "/etc/systemd/system/nix-daemon.service",
            "socket_files": [
              {
                "name": "nix-daemon.socket",
                "src": {
                  "Path": "/nix/var/nix/profiles/default/lib/systemd/system/nix-daemon.socket"
                },
                "dest": "/etc/systemd/system/nix-daemon.socket"
              }
            ]
          },
          "state": "Completed"
        }
      },
      "state": "Completed"
    },
    {
      "action": {
        "action_name": "remove_directory",
        "path": "/nix/temp-install-dir"
      },
      "state": "Completed"
    }
  ],
  "planner": {
    "planner": "linux",
    "settings": {
      "determinate_nix": false,
      "modify_profile": true,
      "nix_build_group_name": "nixbld",
      "nix_build_group_id": 30000,
      "nix_build_user_prefix": "nixbld",
      "nix_build_user_count": 32,
      "nix_build_user_id_base": 30000,
      "nix_package_url": null,
      "proxy": null,
      "ssl_cert_file": null,
      "extra_conf": [],
      "force": false,
      "skip_nix_conf": false,
      "diagnostic_attribution": null,
      "diagnostic_endpoint": "https://install.determinate.systems/nix/diagnostic"
    },
    "init": {
      "init": "Systemd",
      "start_daemon": true
    }
  },
  "diagnostic_data": {
    "attribution": null,
    "version": "0.29.0",
    "planner": "linux",
    "configured_settings": [],
    "os_name": "Ubuntu",
    "os_version": "20.04.6 LTS (Focal Fossa)",
    "triple": "x86_64-unknown-linux-musl",
    "is_ci": false,
    "endpoint": "https://install.determinate.systems/nix/diagnostic",
    "ssl_cert_file": null,
    "failure_chain": null
  }
}

@cole-h
Copy link
Member

cole-h commented Nov 22, 2024

If you can reliably reproduce this, I'd love to see the trace logs to help diagnose. Passing -vvv should get you that info. Feel free to gist it and post the link here.

@cole-h cole-h added the Linux label Nov 22, 2024
@kaineub
Copy link
Author

kaineub commented Nov 22, 2024

@kaineub
Copy link
Author

kaineub commented Nov 26, 2024

Might be worth noting that I tried running the command that self_test was running (the last line in the output before it got stuck). It ran without issue.

DEBUG execute:execute:install:self_test:self_test: Testing Nix install via `sh` command="\"sh\" \"-lc\" \"nix build --option substitute false --no-link --expr \\'derivation { name = \\\"self-test-sh-1732298116749\\\"; system = \\\"x86_64-linux\\\"; builder = \\\"/bin/sh\\\"; args = [\\\"-c\\\" \\\"echo hello > \\\\$out\\\"]; }\\'\""

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

No branches or pull requests

2 participants