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

wslpath: Invalid argument in Windows Server 2019 #224

Open
yasu0796 opened this issue Aug 18, 2024 · 1 comment
Open

wslpath: Invalid argument in Windows Server 2019 #224

yasu0796 opened this issue Aug 18, 2024 · 1 comment

Comments

@yasu0796
Copy link

Describe the bug
When run on Windows Server 2019, "wslpath: (path) : Invalid argument" error occurs every time the command is executed.

To Reproduce
Steps to reproduce the behavior:

  1. Any command is executed
  2. See error "wslpath: (path) : Invalid argument"

Expected behavior
As with Windows 11, no errors are displayed when the command is executed.

Screenshots
If applicable, add screenshots to help explain your problem.

2024 08 19  Windows Server 2019 WSL wslpath エラー

Additional context
Add any other context about the problem here.

It seems that wslpath -w (current path) is executed on the Fedora Remix side every time a command is executed.

wslpath -w /home succeeds on Windows 11, but becomes error on Windows Server 2019.

Basic Troubleshooting Checklist

[ ] I have searched Google for the error message.
[ ] I have checked official WSL troubleshooting documentation: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#confirm-wsl-is-enabled.
[ ] I have searched the official Microsoft WSL issues page: https://github.com/Microsoft/WSL/issues.
[ ] I have searched the WLinux issues page: https://github.com/WhitewaterFoundry/WLinux/issues.
[ ] I have reset WLinux: Settings->Apps->Apps & features->WLinux->Advanced Options->Reset.
[ ] I have disabled and re-enabled WSL in Windows Features.
[ ] I have run Windows 10 updates and restarted.

What other troubleshooting have you attempted?

Insert here:

Installing a new evaluation version of Windows Server 2019 on VMware, same problem occurs.

Fedora Remix for WSL Version

Find: Settings->Apps->Apps & features->Fedora Remix for WSL Version->Advanced Options->Version.
Also, cat /etc/os-release

Insert here:

NAME="Fedora Remix for WSL"
VERSION="40"
ID=fedoraremixforwsl
ID_LIKE=fedora
VERSION_ID=40
PLATFORM_ID="platform:f40"
PRETTY_NAME="Fedora Remix for WSL"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:40"
HOME_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
SUPPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
BUG_REPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues"
PRIVACY_POLICY_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/blob/master/PRIVACY.md"
FEDORA_REMIX_VERSION=40.1.0

Windows Build

Run 'systeminfo | findstr /C:"OS"' in Command Prompt and insert here:

C:\Users\Administrator>systeminfo | findstr /C:"OS"
OS 名:                  Microsoft Windows Server 2019 Standard Evaluation
OS バージョン:          10.0.17763 N/A ビルド 17763
OS 製造元:              Microsoft Corporation
OS 構成:                スタンドアロン サーバー
OS ビルドの種類:        Multiprocessor Free
BIOS バージョン:        VMware, Inc. VMW201.00V.21805430.B64.2305221830, 2023/05/22

For help on retrieving: https://docs.microsoft.com/en-us/windows/wsl/troubleshooting#check-your-build-number

@crramirez
Copy link
Contributor

crramirez commented Aug 18, 2024

It looks like the version of WSL that you have in Windows Server 2019 is ancient. It corresponds to "Windows 10 version 1809". At that version you couldn't access the WSL filesystem from Windows thus wslpath is telling you that.

For example if you execute wslpath 'C:\' probably it will answer with /mnt/c

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

No branches or pull requests

2 participants