init: none also requires planner: Linux #33

Open
opened 2023-07-07 14:02:27 +00:00 by maralorn · 3 comments
maralorn commented 2023-07-07 14:02:27 +00:00 (Migrated from github.com)

I am trying to use the action on a gitea-runner. The docker image is catthehacker/ubuntu:act-latest.

My job description is simple:

name: Nix build
on: [push]
run-name: Test and build flake
jobs:
  nix-build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Install Nix
        uses: https://github.com/DeterminateSystems/nix-installer-action@v4
        with:
          init: none

You can see the result here: https://code.maralorn.de/maralorn/runner-test/actions/runs/17/jobs/0

For your convenience the error message is:

info: downloading installer (https://install.determinate.systems/nix/tag/v0.10.0/nix-installer-x86_64-linux)
Error: 
   0: Planner error
   1: Error executing action
   2: Action `configure_init_service` errored
   3: Could not detect systemd; you may be able to get up and running without systemd with `nix-installer install linux --init none`.
      See https://github.com/DeterminateSystems/nix-installer#without-systemd-linux-only for documentation on usage and drawbacks.
location:
   src/cli/subcommand/install.rs:193
backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

This is surprising because before that it says:

Set NIX_INSTALLER_INIT=none

I might be holding it wrong. Please enlighten me!

I am trying to use the action on a gitea-runner. The docker image is `catthehacker/ubuntu:act-latest`. My job description is simple: ``` name: Nix build on: [push] run-name: Test and build flake jobs: nix-build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - name: Install Nix uses: https://github.com/DeterminateSystems/nix-installer-action@v4 with: init: none ``` You can see the result here: https://code.maralorn.de/maralorn/runner-test/actions/runs/17/jobs/0 For your convenience the error message is: ``` info: downloading installer (https://install.determinate.systems/nix/tag/v0.10.0/nix-installer-x86_64-linux) Error: 0: Planner error 1: Error executing action 2: Action `configure_init_service` errored 3: Could not detect systemd; you may be able to get up and running without systemd with `nix-installer install linux --init none`. See https://github.com/DeterminateSystems/nix-installer#without-systemd-linux-only for documentation on usage and drawbacks. location: src/cli/subcommand/install.rs:193 backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it. Run with RUST_BACKTRACE=full to include source snippets. ``` This is surprising because before that it says: ``` Set NIX_INSTALLER_INIT=none ``` I might be holding it wrong. Please enlighten me!
maralorn commented 2023-07-07 14:04:51 +00:00 (Migrated from github.com)

Believing the docs helped. planner: linux fixes the issue.

Believing the docs helped. `planner: linux` fixes the issue.
Hoverbear commented 2023-07-07 19:06:19 +00:00 (Migrated from github.com)

Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error.

Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error.
maralorn commented 2023-07-08 12:15:24 +00:00 (Migrated from github.com)

Yeah, the error message could definitely be better.

Am 7. Juli 2023 21:06:30 MESZ schrieb Ana Hobden @.***>:

Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error.

--
Reply to this email directly or view it on GitHub:
https://github.com/DeterminateSystems/nix-installer-action/issues/33#issuecomment-1625917029
You are receiving this because you modified the open/close state.

Message ID: @.***>

Yeah, the error message could definitely be better. Am 7. Juli 2023 21:06:30 MESZ schrieb Ana Hobden ***@***.***>: >Yeah this is unfortunate UX isn't it. :( Maybe we can offer a better more immediate error. > >-- >Reply to this email directly or view it on GitHub: >https://github.com/DeterminateSystems/nix-installer-action/issues/33#issuecomment-1625917029 >You are receiving this because you modified the open/close state. > >Message ID: ***@***.***>
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
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-install-action#33
No description provided.