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 failed due to networking issue #22

Closed
rapenne-s opened this issue Oct 26, 2022 · 5 comments
Closed

installer failed due to networking issue #22

rapenne-s opened this issue Oct 26, 2022 · 5 comments

Comments

@rapenne-s
Copy link

I had connectivity issues during the installation process, this leaves the installer in a weird state, and I couldn't resume / uninstall it.

The following actions will be taken:
* Create the directory `/nix`

* Fetch Nix from `https://releases.nixos.org/nix/nix-2.11.0/nix-2.11.0-x86_64-linux.tar.xz`

* Create build users and group

* Create a directory tree in `/nix`

* Move the downloaded Nix into `/nix`

* Setup the default Nix profile

* Configure Nix daemon related settings with systemd

* Place the nix configuration in `/etc/nix/nix.conf`

* Place channel configuration at `/root/.nix-channels`

* Configure the shell profiles

* Start the systemd Nix service and socket

        

Are you sure? (y/N): useradd warning: nixbld7's uid 3008 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld1's uid 3002 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld3's uid 3004 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld20's uid 3021 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld24's uid 3025 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld17's uid 3018 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld21's uid 3022 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld8's uid 3009 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld25's uid 3026 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld22's uid 3023 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld12's uid 3013 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld13's uid 3014 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld5's uid 3006 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld19's uid 3020 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld30's uid 3031 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld18's uid 3019 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld31's uid 3032 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld2's uid 3003 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld16's uid 3017 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld23's uid 3024 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld6's uid 3007 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld26's uid 3027 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld15's uid 3016 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld0's uid 3001 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld9's uid 3010 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld4's uid 3005 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld28's uid 3029 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld11's uid 3012 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld14's uid 3015 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld10's uid 3011 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld27's uid 3028 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.
useradd warning: nixbld29's uid 3030 outside of the SYS_UID_MIN 101 and SYS_UID_MAX 999 range.

  2022-10-26T12:52:21.257363Z ERROR harmonic::cli::subcommand::install: 
   0: Error executing action
   1: Fetching Nix
   2: Request error
   3: error sending request for url (https://releases.nixos.org/nix/nix-2.11.0/nix-2.11.0-x86_64-linux.tar.xz): error trying to connect: dns error: failed to lookup address information: Try again
   4: error trying to connect: dns error: failed to lookup address information: Try again
   5: dns error: failed to lookup address information: Try again
   6: failed to lookup address information: Try again

Location:
   /rustc/4b91a6ea7258a947e59c6522cd5898e7c0a6a88f/library/core/src/convert/mod.rs:550

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

   0: harmonic::cli::subcommand::install::execute
      at src/cli/subcommand/install.rs:43
   1: harmonic::cli::execute
      at src/cli/mod.rs:29

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
    at src/cli/subcommand/install.rs:88
    in harmonic::cli::subcommand::install::execute
    in harmonic::cli::execute

This Nix uninstall is for:
Operating System: Linux
Init system: systemd
Nix channels: nixpkgs=https://nixos.org/channels/nixpkgs-unstable

Created by planner: LinuxMultiUser
            
The following actions will be taken:
* Remove the directory tree in `/nix`

* Remove build users and group

* Remove the directory `/nix`

        

Are you sure? (y/N): Cancelled!Okay, didn't do anything! Bye!
@Hoverbear
Copy link
Contributor

It looks like you cancelled the revert (hello #24 ) which is why it failed to uninstall.

Did you attempt an uninstall after the fact?

@rapenne-s
Copy link
Author

rapenne-s commented Oct 26, 2022

Oh, I certainly pressed 'y + ENTER' at the first input. Did it reuse the second key for the next question? 🤔 that would explain this behavior

@Hoverbear
Copy link
Contributor

Hoverbear commented Oct 26, 2022

I think it did reuse it, I caught that too. I'm looking forward to getting that prompt fixed.

@Hoverbear
Copy link
Contributor

Originally I thought it wouldn't reuse it since we create a new event stream each time... https://github.com/DeterminateSystems/harmonic/blob/64e7423a0a1a08a7b500095429fe2dea4c630a10/src/interaction.rs#L7-L51

@Hoverbear
Copy link
Contributor

I'm marking this as complete as the specific case described is resolved (the prompt is more natural around uninstalling.), a test on the current main with a --nix-package-url flag which is nonsense results in a working uninstall, so the underlying issue, if one existed, also was resolved.

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

No branches or pull requests

2 participants