-
Notifications
You must be signed in to change notification settings - Fork 821
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
Error The attempted operation is not supported for the type of object referenced when using virtual network adapter on wsl2 #5351
Comments
Confirmed. Same issue. |
Try this
and retry. |
I am facing same issue with Open TEXT Socks Client. Thanks! |
same problem here @mfazam |
I can confirm it as well! |
Fixed it only for one day for me. |
Please collect WSL logs and post the backlink to the feedback item here. Also please identify any third-party networking software that has been installed on Windows. |
@therealkenc |
@therealkenc Same for me with the company PC. I was able to install the feedback hub, however as sending diag data is disabled by group policy, I can not collect logs. |
Not being able to send logs is actually not a bad data point, funny enough. Correlation (if not causation) "Can't send logs" and "Can't use WSL2". Logs from the OP (aka "Astrill VPN" scenario) are mostly what is needed in this tracker. But if we never get logs, and the reason is because not a single person landing here on " |
I had the same issue on a fresh install with Astrill VPN. Then
fixed it. If it does come back then I should be able to get the logs since my machine is not locked down. |
Same here. With open text socks installed the wsl2 ubuntu shows the "Error The attempted operation is not supported for the type of object referenced ...." . If I try
The wsl2 starts working but the open text socks don't. I had to downgrade the ubuntu console to wsl1 to make both work. |
I have the same problem, and can confirm that Open text socks, does not work with WSL2, even tried uninstalling Open text socks , and install again, but still same problems , now i have reverted back to WSL1 , and everything is working nice again. |
Same issue in 20H2 (19042.610).
|
https://aka.ms/AAackm6 |
I have the same issue when installing Ubuntu from the Microsoft Store, I get "The attempted operation is not supported for the type of object referenced." as soon as the WSL2 instance "boots". Downgrading to WSL1 fixes the issue. Same issue with Debian from the Microsoft Store. |
This works for me. |
same here |
No progress on a fix for this!??!? |
After typing "netsh winsock reset", don't listen when it says "You must restart the computer in order to complete the reset." For me, it only works if I do not restart, and after I restart the problem comes back. |
While I do have a VPN client installed. It existed before I enabled wsl and updated to wsl2 and I could use the wsl default distro, I installed (openSUSE-Leap-15.2), along with rebooting with no issue. The issue started for me once I installed docker-desktop but the behavior is exactly the same. It only occurs when using an account that isn't in the admin group. (My user is in the When I reboot my machine and try to open a wsl distro or docker engine starts I get an error:
For me resetting the winsock stack is not a long term viable solution for me. This is on a work machine and for policy reasons I do not have admin access and my machine has to reboot every other day per group policy. Windows Version: As a side note VPN version: |
How is this still an issue... I was finally ready to make the switch to windows full time......... please release a patch/solution for this soon. Having to reset the winsock manually and kill my vpn's is ridiculous. |
Try the NoLsp.exe solution found at #4177 (comment) It magically resolved this issue for me. |
Every developer machine at my work has this problem, and the nolsp solution works reliably for us. (Apart from our virus checker won't let us run nolsp.exe so we wrote a LINQPad script that does the same thing - it's just a call to WSCSetApplicationCategory) |
@markheath |
Try this (needs to run as Administrator) void Main()
{
try
{
var p = "C:\\windows\\system32\\wsl.exe";
UInt32 d = 0;
var x = WSCSetApplicationCategory(p, (UInt32)p.Length, "", 0, 0x80000000, 0x0, ref d);
// should return 0,0
Console.WriteLine($"{x},{d}");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
}
}
[DllImport("C:\\Windows\\System32\\ws2_32.dll")]
public static extern UInt32 WSCSetApplicationCategory(
[MarshalAs(UnmanagedType.LPWStr)] string path,
UInt32 len,
[MarshalAs(UnmanagedType.LPWStr)] string param,
UInt32 len2,
UInt32 settings,
UInt32 settings2,
ref UInt32 settings3); |
@markheath |
I should mention that you probably also need to unregister and reinstall your wsl2 distro |
@markheath |
I'm using SSH Dynamic Proxy inside WSL, then using proxifier in host to redirect traffic Chrome using proxy server.
This works for me too. |
solved my problem. |
Works prefectly |
Is there any planned fix for this issue? I have a continues conflict between WSL2 and OpenText SOCKS client, whenever the client is enabled, I can't run WSL, and when I run the command "netsh winsock reset" command to fix WSL OpenText SOCKS client stops working and I must reinstall it to get to work, which would cause the issue with WSL2 again!! |
Same here, I have been desperately waiting to get a fix for this issue, this is seen with the GlobalProtect VPN client. The "fix" of doing "netsh winsock reset" upon every boot works, but boy, would not it be better if it worked out of the box on every boot? |
@ffainelli @hkatory Did you try this fix? #5351 (comment) |
@RichardDavies for other reasons I cannot download the Lsp.exe application, do you know how to create a valid AppId_Catalog folder for wsl.exe? |
for me this solved all my trouble with WSL2 - MicrosoftDocs/WSL#547 (comment) - thanks a lot @esunilkumare |
@hilmarf yes this does work great for me as well. |
this works form mew |
Duplicate of MicrosoftDocs/WSL#547? |
@F4r5h4d, the issue I linked in previous comment, MicrosoftDocs/WSL#547, says to create or update a registry entry, so you may try that. I have two different VPN softwares on that computer and after setting that registry entry, it works for me across reboots OK. |
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! |
Environment
Windows build number: Microsoft Windows [Version 10.0.19041.264]
Distribution version: Ubuntu 20.04 LTS
WSL 2
Steps to reproduce
Expected behavior
Usable distro
Actual behavior
If a vpn software with virtual network adapter is installed, renders impossible to use the distro on the new WSL2 with error The attempted operation is not supported for the type of object referenced
disabling or uninstalling the virtual network adapter doesn't change the behaviour. The only way to go back to normal is uninstalling the whole vpn software.
Opening the distro in microsoft terminal shows an additional error code 4294967295
The kind of network adapter is SSL VPN Adapter
The text was updated successfully, but these errors were encountered: