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
failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006) #41094
Comments
Did you recently update Windows? Wondering if there's a relation to #40998 |
Using Windows Version:10.0.19041 Build 19041 |
This error usually indicates there is already an adapted reserved by an existing vSwitch + HNS network. You can view existing networks using: Then, to remove any old networks: Also, in case the Windows was elected as master, the full init command should be: |
I previously tried:
This is what I got by following your instructions (before initializing the swarm): @daschott Which networks do you want me to remove? All of them? The only one that I created was ExternalSwich, using the Virtual Switch Manager. As far as I know "Default Switch", "nat" were automatically created by Docker. I don't have a clue who created the "none" one. |
Assuming you have only 1 active NIC that can be used, the transparent network is already reserving it. In that case you need to do one of either:
Option 3 might be easiest, if you do not need the VM and container running side-by-side simultaneously. If you do need them running side-by-side, you should also be able to connect the VMs over WinNAT. |
@daschott I initialized the swarm inside my Windows 10 Box , and as you suggested (Option 3), I removed the ExternalSwich.
After trying to bring the service up, as you can see it is stuck somewhere.
As you can see, it complaining about my-overlay network. Not sure if I need to pass any additional parameter while I create the network? |
This error usually means something has already reserved port 8000. Either another app or an existing container. Host port mode publishing means there can only be one instance of the container running per host. Can you try removing the old service and recreate either without host mode publishing, or try changing the port? If host mode publishing is needed, can you try setting replicas to 1 (or if more replicas are needed, more hosts are also needed). If you use default routing mesh publishing instead of host mode you should not face this constraint. |
@daschott any idea why this is happenig? |
It is happening to me also,
Someone pointed here https://stackoverflow.com/questions/56366762/how-to-fix-docker-error-hnscall-failed-in-win32-an-adapter-was-not-found-when that this error could be happening because docker trying to start compute service for Linux instead of Windows but no clue about how he figured out. Some help would be appreciated. |
Now tried joining windows worker to a linux manager Get-EventLog -LogName Application -Newest 100
|
@daschott I tried in a different windows box without External network switch then the error changes but still similar:
|
I had similar issue and "--publish mode=host,target=80,published=4010" worked for me (instead of "-p 4010:80"). |
I had similar "port is already allocated" problem when trying to init docker swarn (specifying even both parameters "advertise-addr" and "listen-addr") and then create network and new service, using publish with host mode: docker swarm init --advertise-addr IP --listen-addr IP:2377 But few years ago it was working: https://www.youtube.com/watch?v=ZfMV5JmkWCY @KhimairaCrypto , did you manage to solve this problem? |
Sharing a solution that I have found. What I have noticed is that when an overlay network is created, the default So, when you create your overlay network, ensure to specify This is not really practical as people may rely on Swarm to allocate subnet ranges for them, but this at least gets the environment up and running. Wish this helps anyone facing this issue, and hope it can be resolved soon. |
Same issue here when creating a service with pulishing a "host" mode port:
Windows Version: 10.0.19041.928
|
Expected behavior
Been able to run the service
Actual behavior
The service wont run and the task will send log the following error: failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)
Information
Steps to reproduce the behavior
. I am able to have iis running on port 8000 without any issues.
wsdxwby7g2va0gvsfo3ghdfen web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Ready Rejected 2 seconds ago "failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)" pp6ocb9zmtx5ei3riie8a97s0 \_ web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Shutdown Rejected 7 seconds ago "failed during hnsCallRawResponse: hnsCall failed in Win32: An adapter was not found. (0x803b0006)" zp1pnwqwcq1s85enaz4qm7ilt \_ web.1 mcr.microsoft.com/windows/servercore/iis:latest@sha256:efca6c1d6af873ef75997a8331d6b1e0677cab38f14002de9ca820940b75785f roller Shutdown Rejected 12 seconds ago "failed during hnsCallRawResponse: hns
I created an issue with the for-win team, but they send me here. docker/for-win#7155 (comment)
Update
I followed these instructions #39191 and still same issue. I even set my WinNode as a worker and created the container using my linux master node. same result :-/
dockerd is only listening on ports TCP: 53, 2377 and 7946 . What about this UDP port 4789 ?
The text was updated successfully, but these errors were encountered: