Code Monkey home page Code Monkey logo

Comments (9)

nzbr avatar nzbr commented on June 14, 2024 1

The file you have contains the fix. That means there is another problem here
EDIT: I can reproduce the issue on my setup

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024 1

The problem was introduced by a change from #64. The commit just before it was merged works just fine

from nixos-wsl.

erik-smit avatar erik-smit commented on June 14, 2024 1

Solves the problem for me. Thank you!

from nixos-wsl.

erik-smit avatar erik-smit commented on June 14, 2024

This nsenter: failed to parse pid: '-p' only occurs with the latest release 21.11-d89f18a1.

20.09-1c1f5649 works.

PS C:\Users\erik.smit.ALETHO\Downloads> wsl --distribution NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.

[nixos@nixos:/mnt/c/Users/erik.smit.ALETHO/Downloads]$

Seems like the An error occurred mounting one of your file systems. Please run 'dmesg' for more details. is a red herring and a separate issue.

from nixos-wsl.

erik-smit avatar erik-smit commented on June 14, 2024

Rebooting or terminating the instance after importing 'solves' the problem.

It looks like the installer leaves the system in a bad state.

PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
An error occurred mounting one of your file systems. Please run 'dmesg' for more details.
nsenter: failed to parse pid: '-p'
PS C:\Users\erik.smit.ALETHO> wsl -t NixOS
PS C:\Users\erik.smit.ALETHO> wsl -d NixOS
Copying /usr/share/applications
Copying /usr/share/icons
setting up /etc...

[nixos@Budapest:/mnt/c/Users/erik.smit.ALETHO]$

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

The "An error occurred mounting one of your file systems. Please run 'dmesg' for more details." on first launch can be safely ignored. It should not happen after the installer has ran though. It happens because there is no /bin/mount present in the installer image.

You should not drop back to powershell after the installer finishes, instead a bash should open. There was an issue that caused the activation script to fail on the first start. I have pushed a fix for that issue and moved the release to that commit. The issue might be that you have a copy of the installer tarball that does not contain the fix. Can you give me the timestamp of the tarball you downloaded?

from nixos-wsl.

erik-smit avatar erik-smit commented on June 14, 2024
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ md5sum nixos-wsl-installer.tar.gz
d0f5078b774229964b88d1aa526819e5  nixos-wsl-installer.tar.gz
smite@Budapest:/mnt/c/Users/erik.smit.ALETHO/Downloads$ ls -la nixos-wsl-installer.tar.gz
-rwxrwxrwx 1 smite smite 203271183 Mar 31 14:36 nixos-wsl-installer.tar.gz

from nixos-wsl.

nzbr avatar nzbr commented on June 14, 2024

I have created a PR that should fix the issue. The CI should have built a tarball soon, so you can try if it works

https://github.com/nix-community/NixOS-WSL/suites/5882551859/artifacts/198820817

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.