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

WSL2 is running but terminal hangs when connet WSL #5983

Closed
FavonianKong opened this issue Sep 24, 2020 · 8 comments
Closed

WSL2 is running but terminal hangs when connet WSL #5983

FavonianKong opened this issue Sep 24, 2020 · 8 comments
Labels
failure-to-launch failure to launch

Comments

@FavonianKong
Copy link

Environment

Windows build number: 19041.264 
Your Distribution version: Centos7
Whether the issue is on WSL 2 and/or WSL 1: WSL2

Steps to reproduce

Before run the wsl,thewsl -l -v shows:

  NAME       STATE          VERSION
* CentOS7   Stopped         2

After run the wsl on PowerShell or use the terminal to launch the Centos7, It show nothing but just a cursor. Also, the wsl -l -v shows:

  NAME       STATE          VERSION
* CentOS7    Running         2

It seems that the Centos has been activated,but the terminal show nothing. No matter what I type, it's only printed on the screen and without any response.

image

WSL logs: I cant get any logs, if there is something I missed, plz tell me and I will upload it.

Expected behavior

Connet the Centos7 successfully and Linux commands can be used properly.

Actual behavior

Nothing reponse :(!!

@onomatopellan
Copy link

Does Ubuntu WSL2 distro work? If it does you can do sudo dmesg -w there, let the window open and try running again Centos7. You should see some error appear in the dmesg window.

@Fagbemi-Jeremiah
Copy link

please check out #5973

@therealkenc
Copy link
Collaborator

please check out #5973

Please stop. Not one of these issues cites a 0x80070005 error.

@FavonianKong
Copy link
Author

Does Ubuntu WSL2 distro work? If it does you can do sudo dmesg -w there, let the window open and try running again Centos7. You should see some error appear in the dmesg window.

Sadly not, neither Centos nor Ubuntu can be launched successful,I guess the problem is caused by loading configuration files, eg: ~/.bashrc. Is there any way to view the configuration file of the WSL system from the Windows?

@onomatopellan
Copy link

onomatopellan commented Sep 25, 2020

@FavonianKong You can try launching with the root user with wsl.exe -d CentOS7 -u root

If it's a configuration problem then you should be able to access files via windows explorer. Open Run (win+R) and type \\wsl$\ to see the CentOS7 files.

@FavonianKong
Copy link
Author

@FavonianKong You can try launching with the root user with wsl.exe -d CentOS7 -u root

If it's a configuration problem then you should be able to access files via windows explorer. Open Run (win+R) and type \\wsl$\ to see the CentOS7 files.

Thanks for your advice,I failed to slove the problem in the end. I find it so strange why the terminal never responds, even though the Centos7 is already running.

@onomatopellan
Copy link

@FavonianKong If it happens again please collect some WSL Logs following these steps:
https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs

@therealkenc therealkenc added the failure-to-launch failure to launch label Apr 1, 2021
Copy link
Contributor

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!

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

No branches or pull requests

4 participants