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

WSL Server execution failed Error code: Wsl/CallMsi/Install/0x80080005 #11941

Closed
2 tasks
Tracked by #11965
DefinetlyNotAI opened this issue Aug 20, 2024 · 72 comments
Closed
2 tasks
Tracked by #11965

Comments

@DefinetlyNotAI
Copy link

DefinetlyNotAI commented Aug 20, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.4037]

WSL Version

FAILS: WITH SAME ERROR

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

FAILS: WITH SAME ERROR

Distro Version

CANT ENTER

Other Software

The main WSL only

Repro Steps

I have once deleted wsl - A power outage occured in the middle of it deleting, and now its fully corrupted, neither installed or removed, doesnt show up in program and features.

Not sure how to reproduce, its only a rare occuronce so not a bug, BUT nothing works to fix it

Attempted to use dism and sfc, both returned no errors,

Expected Behavior

To at least operate or open,

Actual Behavior

Anything related to wsl just fails entirely and does not in the slightest work or operate, disabling and re-enabling the feature was tried, IT used to work but not anymore (so required window and bios settings are fine) All other applications are operational, only wsl fails, no matter how or where it keeps failing, Also when i view it through the file manager, it shows its a empty folder, when i right click it to select properties i get the error shown in the attached image.

image

Here is the cmd prompt when running any command related to wsl:

PS C:\Users\Hp> wsl
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005
PS C:\Users\Hp> wsl.exe --version
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005
PS C:\Users\Hp> wsl -l -v
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005
PS C:\Users\Hp> wsl.exe --status
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005

Diagnostic Logs

WslLogs-2024-08-20_13-37-56.zip

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here

Once completed please upload the output files to this Github issue.

Click here for more info on logging
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

View similar issues

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Copy link

Diagnostic information
Detected appx version: 2.2.4.0
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005

Copy link

Diagnostic information
Issue was edited and new log file was found: https://github.com/user-attachments/files/16674428/WslLogs-2024-08-20_13-37-56.zip
Detected appx version: 2.2.4.0
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005
Detected user visible error: Wsl/CallMsi/Install/0x80080005

@DefinetlyNotAI
Copy link
Author

I have seen the similiar issues, they aren't helpful

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 20, 2024

Thank you @DefinetlyNotAI. Looking at logs, it looks like your installation is corrupted. Can you try to download and install the latest MSI and see if that solves the issue ?

@DefinetlyNotAI
Copy link
Author

i knew it was corrupted, ill try the msi

@DefinetlyNotAI
Copy link
Author

I installed the MSI
Now doing wsl or wsl --install takes forever and doesnt actually do anything, just hangs until ctrl-c is used

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 20, 2024

Interesting. Can you collect a dump when that happens ?

/dumps

@DefinetlyNotAI
Copy link
Author

Ok, Here are the attached logs, BUT just putting it out there, the windows explorer still shows an error

image

WslLogs-2024-08-21_09-30-05.zip

Copy link

Diagnostic information
Detected appx version: 2.3.17.0

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 21, 2024

@DefinetlyNotAI: Looking at the logs it still looks like you're on 2.2.4. Can you confirm that you installed the 2.3.17 MSI ?

@DefinetlyNotAI
Copy link
Author

Yes i have, it said success, then autoclosed the msi installer

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 21, 2024

Can you capture logs of installing that MSI ? Something is definitely not right there.

msiexec /i /path/to/msi /L*V C:\wsllogs.txt 

@DefinetlyNotAI
Copy link
Author

Sorry, rate response, i have deleted the msi, im reinstalling it

@DefinetlyNotAI
Copy link
Author

Now the msi just crashes,

Recording.2024-08-21.231915.mp4

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 21, 2024

@DefinetlyNotAI: Hmm, msiexec is weird sometimes. What if copy the .msi in C:\ and try to call it with msiexec from there ?

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 21, 2024

If it fails again, please share the log, this should contain more information at least

@DefinetlyNotAI
Copy link
Author

no log is found...
it is in the video

@DefinetlyNotAI
Copy link
Author

Wait.. now it opened UAC, then crashed

@OneBlue
Copy link
Collaborator

OneBlue commented Aug 21, 2024

Ah, I think I know what's missing: Can you try the msiexec command line in an elevated command prompt ?

@DefinetlyNotAI
Copy link
Author

WslLogs-2024-09-24_09-50-37.zip

The cmd is just stuck, shows nothing, no errors at all

Copy link

Diagnostic information
Detected appx version: 2.3.17.0

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 24, 2024

Ok this is most likely caused by a corrupted MSI installation.

In this case, your best bet would be to try to clean up the previous installation. This post has a couple paths on how to do that.

@DefinetlyNotAI
Copy link
Author

image
AMAZING - What was the problem tho?

(I used the troubleshooter (In uninstall mode), found wsl (As windows subsystem for linux) (DONT choose the other option that has the word UPDATER), asked it to uninstall, 2 min, and the image above happened

@DefinetlyNotAI
Copy link
Author

image AMAZING - What was the problem tho?

(I used the troubleshooter (In uninstall mode), found wsl (As windows subsystem for linux) (DONT choose the other option that has the word UPDATER), asked it to uninstall, 2 min, and the image above happened

I used this troubleshooter
MicrosoftProgram_Install_and_Uninstall.meta.zip

Copy link

Failed to parse logs. Unexpected file: MicrosoftProgram_Install_and_Uninstall.meta.diagcab
The log file doesn't contain any WSL traces. Please make sure that you reproduced the issue while the log collection was running.

Diagnostic information
Found no WSL traces in the logs

@DefinetlyNotAI
Copy link
Author

( Maybe fix the bot? Not every zip file is for the logs lol )

@DefinetlyNotAI
Copy link
Author

Oop: It works, but installing distro's now fail

WSL Fails to show distro?

C:\Users\Hp>wsl
Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore

C:\Users\Hp>wsl --install -d kali-linux
Kali Linux Rolling is already installed.
Launching Kali Linux Rolling...

WSL Opening Kali Linux (ERROR):

Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80004005
Error: 0x80004005 Unspecified error

WSL Working now

C:\Users\Hp>wsl --version
Invalid command line option: --version
Copyright (c) Microsoft Corporation. All rights reserved.

Usage: wsl.exe [Argument] [Options...] [CommandLine]

Arguments for running Linux binaries:

    If no command line is provided, wsl.exe launches the default shell.

    --exec, -e <CommandLine>
        Execute the specified command without using the default Linux shell.

    --
        Pass the remaining command line as is.

Options:
    --cd <Directory>
        Sets the specified directory as the current working directory.
        If ~ is used the Linux user's home path will be used. If the path begins
        with a / character, it will be interpreted as an absolute Linux path.
        Otherwise, the value must be an absolute Windows path.

    --distribution, -d <Distro>
        Run the specified distribution.

    --user, -u <UserName>
        Run as the specified user.

    --system
        Launches a shell for the system distribution.

Arguments for managing Windows Subsystem for Linux:

    --help
        Display usage information.

    --install [Options]
        Install additional Windows Subsystem for Linux distributions.
        For a list of valid distributions, use 'wsl --list --online'.

        Options:
            --distribution, -d [Argument]
                Downloads and installs a distribution by name.

                Arguments:
                    A valid distribution name (not case sensitive).

                Examples:
                    wsl --install -d Ubuntu
                    wsl --install --distribution Debian

            --no-launch, -n
                Do not launch the distribution after install.

    --mount <Disk>
        Attaches and mounts a physical disk in all WSL2 distributions.

        Options:
            --bare
                Attach the disk to WSL2, but don't mount it.

            --type <Type>
                Filesystem to use when mounting a disk, if not specified defaults to ext4.

            --options <Options>
                Additional mount options.

            --partition <Index>
                Index of the partition to mount, if not specified defaults to the whole disk.

    --set-default-version <Version>
        Changes the default install version for new distributions.

    --shutdown
        Immediately terminates all running distributions and the WSL 2
        lightweight utility virtual machine.

    --status
        Show the status of Windows Subsystem for Linux.

    --unmount [Disk]
        Unmounts and detaches a disk from all WSL2 distributions.
        Unmounts and detaches all disks if called without argument.

    --update [Options]
        If no options are specified, download and install WSL from the Microsoft Store.

        Options:
            --rollback
                Revert to the previous version of the WSL 2 kernel.

            --inbox
                Only update the inbox WSL 2 kernel. Do not install WSL from the Microsoft Store.

            --web-download
                Download the most recent version of WSL from the internet instead of the Microsoft Store.
Arguments for managing distributions in Windows Subsystem for Linux:

    --export <Distro> <FileName>
        Exports the distribution to a tar file.
        The filename can be - for standard output.

    --import <Distro> <InstallLocation> <FileName> [Options]
        Imports the specified tar file as a new distribution.
        The filename can be - for standard input.

        Options:
            --version <Version>
                Specifies the version to use for the new distribution.

    --list, -l [Options]
        Lists distributions.

        Options:
            --all
                List all distributions, including distributions that are
                currently being installed or uninstalled.

            --running
                List only distributions that are currently running.

            --quiet, -q
                Only show distribution names.

            --verbose, -v
                Show detailed information about all distributions.

            --online, -o
                Displays a list of available distributions for install with 'wsl --install'.

    --set-default, -s <Distro>
        Sets the distribution as the default.

    --set-version <Distro> <Version>
        Changes the version of the specified distribution.

    --terminate, -t <Distro>
        Terminates the specified distribution.

    --unregister <Distro>
        Unregisters the distribution and deletes the root filesystem.

@OneBlue
Copy link
Collaborator

OneBlue commented Sep 25, 2024

Thank you @DefinetlyNotAI, this is progress ! Can you collect /logs of the new error ?

Copy link
Contributor

Hello! Could you please provide more logs to help us better diagnose your issue?

To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The scipt will output the path of the log file once done.

Once completed please upload the output files to this Github issue.

Click here for more info on logging

If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue.

Thank you!

@DefinetlyNotAI
Copy link
Author

Done:
WslLogs-2024-09-26_09-01-48.zip

Copy link

Diagnostic information
Appx package is not installed

@OneBlue
Copy link
Collaborator

OneBlue commented Oct 1, 2024

@DefinetlyNotAI: It looks like WSL got removed. wsl --update should fix that.

@DefinetlyNotAI
Copy link
Author

Back to square one :(

C:\Users\Hp>wsl --update
Installing: Windows Subsystem for Linux
Windows Subsystem for Linux has been installed.

C:\Users\Hp>wsl --install -d kali-linux
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005

C:\Users\Hp>wsl
Server execution failed
Error code: Wsl/CallMsi/Install/0x80080005

@DefinetlyNotAI
Copy link
Author

...

@DefinetlyNotAI
Copy link
Author

Hello??

@DefinetlyNotAI
Copy link
Author

It seems no one can help, so I will end the issue as not fixed, thanks..

I will later reset my computer.

@DefinetlyNotAI DefinetlyNotAI closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
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

3 participants