-
Notifications
You must be signed in to change notification settings - Fork 855
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
[nixos] WslRegisterDistributionFailed: 0x800707b - ProcMon - CreateFile NAME INVALID #3207
Comments
https://twitter.com/grhmc/status/996876883307499520
|
@DarthSpock - This repo is fine. @ghuntley - Can you share the instructions you are using to create your install.tar.gz file so I can step through this under a debugger? |
I presume the expansion is happening on the Windows side, in which case the question mark in the filename being an invalid NTFS path character is the problem (quick summary here). I guess it will be difficult to get NTFS behaviour changed. Curious about how WSL translates these characters to be stored on the underlying NTFS,
resulting in...
Then on the Windows side...
resulting in...
So perhaps it would work if you repackage the "install.tar...s" with question marks mapped to #003F, Proof of concept... On Windows side...
Then on Linux side...
results in
|
@ghuntley I installed NixOS with some tweaking: Download install.tar.7z.001 > extract install.tar.gz with 7zip > install with Some queries & suggestions:
|
Replies for @Biswa96:
GitHub has a restriction on how many big a particular binary can be so I split them.
Of course - let's get a successful bring up first tho.
Nope, that's standard with nixos. When packages are installed they are installed into the nixstore. Assuming standard locations is a recipe for failure. Always defer to
Install nixos v18.03 (see next post) and then from
Then FTP it off the virtual machine ;-) |
Replies for @benhillis:
I'm happy to pair with you @benhillis - name the time and place. You'll also find the install instructions over at https://nixos.org/nixos/manual/#sec-installation. ps. this may help 👇 A big implication of the way that Nix/NixOS stores packages is that there is no /bin, /sbin, /lib, /usr, and so on. Instead all packages are kept in /nix/store. (The only exception is a symlink /bin/sh to bash in the Nix store.) Not using ‘global’ directories such as /bin is what allows multiple versions of a package to coexist. Nix does have a /etc to keep system-wide configuration files, but most files in that directory are symlinks to generated files in /nix/store. |
Just chiming in to clarify that on NixOS, the To prevent too long |
Fwiw at a glance it looks like the distrolauncher has some absolute paths that may need to be touched up (when trying to create the user?). Not sure if relevant. You say same result, is there an error or....? (does something point to tools not being found? seems worth chasing! Also any logs/traces may be useful) |
I didn't commit any changes to distro launcher as it's blowing up during extraction. Yes it will need to be customised to account for nixos conventions of not using standard paths. |
It is pretty common that a program in nix is installed multiple times, although I'm not too sure about bash. It might be interesing to do a garbage collection and see if the second bash goes away. You might be looking fot the nix pill on store paths |
Just naive idea floating through my head... Outside the chroot directory the binaries required by WSL could be provided in the location it expects. |
To be perfectly clear NixOS != Nix.
Subtle but major difference. This thread was raised to report NTFS errors upon expansion of a valid install.tar.gz |
There was no distribution registered when this error occurred. It is directly related to expanding install.tar.gz. Shall we open up another issue related to nixos and move these discussions about nixos bring up there? |
Let's keep this topic about ntfs file names and move to 👉 NixOS/nixpkgs#30391 |
This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request. Thank you! |
ver
at a Windows Command Prompt)Microsoft Windows [Version 10.0.16299.431]
Howdy folks I'm working on bringing https://nixos.org v18.03 up on WSL (NixOS/nixpkgs#30391). You can reproduce this issue by cloning down http://github.com/ghuntley/nixos-wsl and uncompressing
install.tar.7z.[0..]
into thex64
directory.See twitter thread at https://twitter.com/tara_msft/status/996870558741508096 and below
If I understand this correctly the installation is failing because this image contains filenames or directories that cannot be expanded onto NTFS which is causing WslRegisterDistributionFailed to go boom. I'm not sure if you have used NixOS before but it's a functional linux distribution which centers around the concept of
/nix
aka the nixstore.When
/etc/nixos/configuration.nix
is updated/applied by root ornix-shell
is invoked the output state (ie operating system or resulting application) is placed into the nixstore. This allows scenarios such as side-by-side installation of multiple versions of python with different FFI dependancies and instant rollback to previous known operating state (think of it like "boot to last known good configuration" in windows). NixOS has a garbage collector which cleans up state within the nixstore as need be.Thus the filenames or directories you see here are valid and a requirement for nixos.
The text was updated successfully, but these errors were encountered: