Code Monkey home page Code Monkey logo

Comments (14)

nzbr avatar nzbr commented on June 14, 2024 4

I have left the issue closed (as it seems to be fixed on main), but pinned it so that anyone experiencing that problem can find it on top of the issue list

from nixos-wsl.

Panke avatar Panke commented on June 14, 2024 1

Ah sorry, I only looked at the open bugs.

from nixos-wsl.

RivenSkaye avatar RivenSkaye commented on June 14, 2024 1

Commenting here because this is resurfacing for me when installing the latest release. The entire unpacking step works perfectly fine, but then it just sits there, claiming to start systemd but never actually carrying on. SIGKILL is required to continue (I let it sit for well over 20 mins). Afterwards, any attempt to start wsl -d NixOS results in the same error.

Log of the install attempt, click to expand
> wsl -d NixOS
Unpacking root file system...
 307MiB 0:00:17 [18.0MiB/s] [=========================================================================================>] 100%
Activating nix configuration...
Copying /usr/share/applications
Copying /usr/share/icons
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
setting up /etc...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
setting up /bin...
Cleaning up installer files...
finding garbage collector roots...
removing stale link from '/nix/var/nix/gcroots/auto/6yfbrv8wfkyl40wq6827lamr9m29z7wg' to '/build/nix/var/nix/profiles/per-user/root/channels-1-link'
removing stale link from '/nix/var/nix/gcroots/auto/zxi8v969la5n36bg7gs016wgcif4qjhp' to '/build/nix/var/nix/profiles/system-1-link'
deleting garbage...
deleting '/nix/store/ab5mixyq1zg0x5lnr5i7m4l5815fp1h8-wsl-prepare'
deleting '/nix/store/scr6balqjknqpgm7igd0b4pagmp2ldbl-installer.sh'
deleting '/nix/store/pmb55f6rk98cdycqf589vb3xpbg15k28-source'
deleting '/nix/store/cq6l0b0iv2y3gln3xi6nzxs57mz5rxws-tarball'
deleting '/nix/store/0p9v7yvblgxsds9pbsrir3af6gw0x77s-busybox-1.35.0'
deleting '/nix/store/5mism3qrfc3ah9ahvf7sczxy4bax9cgq-pv-1.6.20'
deleting unused links...
note: currently hard linking saves -0.00 MiB
6 store paths deleted, 309.05 MiB freed
Optimizing store...
5.74 MiB freed by hard-linking 3714 files
Starting systemd...

At this point, ctrl+C is the only way to continue. The shell hangs on this, presumably because of the following:

> wsl -d NixOS
nsenter: failed to parse pid: '-p'

In the meantime I'll try installing the previous (-fixed) release and upgrading from there to see if it helps

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024 1

@dliberalesso The link I shared doesn't go to the latest release, but the latest CI run of the main branch, which is a few commits ahead and contains a full rewrite of syschdemd (the systemd wrapper script)

from nixos-wsl.

sielicki avatar sielicki commented on June 14, 2024

Duplicate of #67

Please try the -fixed installer.

from nixos-wsl.

sielicki avatar sielicki commented on June 14, 2024

@nzbr is it possible to delete the old tarball on the release page?

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

I did (again). The CI re-uploads it every time I change the release text

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

I can't force-push the tag, unfortunately. It stopped working a while ago. @Mic92 ist that on purpose? Or is something broken on my end?

from nixos-wsl.

Panke avatar Panke commented on June 14, 2024

Works with the newer release!

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

@RivenSkaye Did you manage to get it to work? If not, can you try the latest build? (the installer tarball is inside the "installer" artifact, so you'll need to unpack that first)

from nixos-wsl.

dliberalesso avatar dliberalesso commented on June 14, 2024

@RivenSkaye You can install direclty via the tarball available in the latest build using the command wsl --import NixOS .\NixOS\ nixos-wsl-x86_64-linux.tar.gz --version 2.

from nixos-wsl.

dliberalesso avatar dliberalesso commented on June 14, 2024

@nzbr In that case, I'll try it too. Thanks!

from nixos-wsl.

jamesreprise avatar jamesreprise commented on June 14, 2024

I also had the exact same issue as @RivenSkaye and @nzbr's fix worked perfectly (thank you!) It might be worth re-opening this issue so that it's visible to anyone else having the same problem without removing issue:open.

from nixos-wsl.

nixos-discourse avatar nixos-discourse commented on June 14, 2024

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-wsl-2-error-with-22-05-5c211b47-nsenter-failed-to-parse-pid-p/24238/1

from nixos-wsl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.