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
cannot unmarshal array into Go value of type hcsshim.HNSNetwork #26982
Comments
@fabiendibot Is it Windows RTM with GA package (9D). You might be getting stuck at endpoint creation. The 1.13-dev branch requires 9D package. There was a parsing issue in Server 2016 RTM that was fixed in 9D. |
Also happens to me in Windows 10 Anniversary Update.
|
The server patch 9D has a fix. There is a client patch (9D') being released Thursday which also contains the fix. I will validate when the patch comes out. Just FYI this was the commit that causes this issue: d3139fc |
Thank you! Sorry for disturbing, could you please expand a little on what a patch 9D' is? Do I get it as a newer version of docker, or maybe it comes from windows update? |
Hi @msabansal same question. What is this 9D package, i have the RTM GA Windows 2016 Server version. Do i need to install some patche ? |
@fabiendibot @eugeneagafonov 9D is a mandatory update for Windows Server 2016. 9D' is the corresponding client update. 9D update was released on Tuesday and 9D' would be available today on the client. |
How and when can we update to this? |
I confirm that the issue has been resolved with the latest windows update. Thank you! |
Still not working after updating Windows Server 2016 with the latest patches. |
@fabiendibot Can you please provide the version of hostnetsvc.dll in system32 directory. On my patched system it is 10.0.14393.206 |
@msabansal i've got the same file version as you. |
@fabiendibot Are you getting the same error where you are stuck at endpoint creation or is it a different error? |
I think there is some confusion here as there is an issue with Windows 10 that requires a Windows Update. But it seems like the issue with Windows Server 2016 is something that requires a Docker update, not an OS update, based on the patch @msabansal mentions. Is the 9D patch integrated into the CS-1.12 Docker mentioned in https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server or should a different URL be used to pull Docker? |
The 9D patch is a windows Server 2016 patch which you will receive using the normal update channel. It requires latest docker (currently master) to enable service discovery but should not cause any issues with previous docker versions. Just that Service Discovery will not be available with previous docker versions. |
Actually service discovery SHOULD be in the CS version of docker. As well as latest master. Whether server or client though, you still need the 9D update regardless to run containers on Windows. Two separate things, but for service discovery you need both updates. |
I have gone thru the entire OS install + updates + Docker install based on the MSDN site to no effect. I also have the same version of the HostNetSvc.dll mentioned above. The Docker engine being installed is 1.12.2-cs2-ws-beta-rc1. I have also tried using the 1.13.0-dev Docker engine with the same result. |
@richardgavel Can you please give details of the error you see. Are you getting stuck at endpoint creation? I will also start with a fresh install and see if I get this error. The error: time="2016-09-30T11:05:13.855535200-07:00" level=debug msg="Launching DNS server for network%!(EXTRA string=none)" Is expected because none is a null network which is not there. I would submit a patch sometime to hide this error. |
@richardgavel I am really confused. I just installed Windows Server 2016 (it was a VHD from an internal share) and am able to launch containers seamlessly. PS C:\Users\Administrator> docker run -td --name=c2 nanoserver cmd Pinging c2 [172.27.63.247] with 32 bytes of data: Server: I am now trying the steps mentioned in the blog post at https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server aswell |
I made an assumption, an incorrect one, as it turns out. In my original attempt, I tried to launch a container, saw the error in the dockerd log, googled the error to come here and saw a solution. However, since the error still appeared after the updates, I assumed that I had not solved the issue with container launch and did not actually attempt it. I have been able to successfully launch a container now. |
Thanks for the confirmation. |
@msabansal sorry for the delay, i still have the error during pipeline creation. And new errors after a docker run Client error:
Deamon error
|
@fabiendibot This is probably because there is another container which has a port mapping of using port 80. Can you please try fixing it. Try running without the port mapping or a different one and see if you get the error. |
Hi, Here's the error:
|
@msabansal sorry for the delay. In fact i launched this container two times. First aptemt resulted a timeout and i got this error as a second. Edit: Ok seems it's working on a Windows 2016 freshly installed on Azure after patched with updates. Using this link: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server Ok, seems it works using this procedure. I'd like to know what there is in the docker package, because using the *.exe from master.dockerproject.com and installeing container feature isn't enough :) |
@msabansal it looks like I have a different issue from the one opened here, since it is hte first container I am starting on a vanilla 2016. In the same time the message is exactly the same: "json: cann ot unmarshal array into Go value of type hcsshim.HNSNetwork" So do you want me to open another case? Thanks |
Even though that message displays in log, containers will start OK, On Wed, Oct 19, 2016, 3:33 AM happysysadm notifications@github.com wrote:
|
I have a Win 2016 GA running in azure from Oct 15th. Until yesterday i was able to bring up my application cluster (4 services with docker-compose) and able to ping the linked containers using their service name from other containers. Also ran Resolve-DnsName "servicename" within the container and able to successfully resolve it. But now i am running the same docker-compose.yml in the same server, where containers are created successfully, but unable to ping or resolve the container names from other containers. Please let me know if this behaviour is something related to the recent patch (9D) you are talking about! What is the KBXXX of the windows update..? Please let me know if this should go into a new issue! docker-version : Server Version: 1.12.2-cs2-ws-beta Thank you! |
@richardgavel no, containers don't start. Updates have been installed. |
thanks @happysysadm 9D update is there. Just updated the docker engine to v1.13 dev. Still the problem is there. All of the sudden DNS Resolve feature stopped working in the containers. To confirm created new 2016 GA server in azure and DNS Resolve not working in it either. |
@sasiezilmadhavan @happysysadm Can you please help with the error you are facing with name resolution? Does using service name. work? . Is important. Also please share ipconfiguration of one of the containers. ipconfig /all |
@happysysadm What is the error for container startup? Can you please post what docker run shows? |
@msabansal, no using servicename doesn't work. unable to ping . Also Resolve-DnsName doesn't resolves. ipconfig/all from the container : Ethernet adapter vEthernet (Temp Nic Name) 3: Connection-specific DNS Suffix . : vm-windkr-demo.h7.internal.cloudapp.net the docker-compose.yml that worked before and now doesn't resolve DNS inside container is services: FYI, the links section in docker inspect 4e58e32aa5c2 has appropriate entries |
@sasiezilmadhavan I have got some really high priority work right now. Sorry. I am looking at this whenever I am getting time. |
@sasiezilmadhavan Is it possible that your containers are terminating? What does docker ps say? Is kpicoreservice active? I tried with this compose file on a latest patched machine: version: '2'
networks: PS C:\Tools\ctest3> docker-compose up -d Pinging kpicoreservice [172.24.10.10] with 32 bytes of data: |
@msabansal No the containers are not terminating. All the containers including kpicoreservice are running. I can able to ping the kpicoreservice with its IP. Even i tried your compose file, unable to resolve the names.
|
@sasiezilmadhavan Can you please post the output for following:
|
@msabansal, its working now. Your above lines of script, as well as the previously used compose file is working now. I can ping one container from other with its name . Strange!! Note there is no change made in the system. This machine is in azure. Wonder if that is anyway causing this inconsistencies. Thanks a lot for your help |
@sasiezilmadhavan Maybe related #27499 Workaround is documented. We are planning to fix this so that you don't need the workaround. |
should we close this? |
Actually I lost the whole environment I was running this upon: my OS ssd disk got broken (kind of voltage issue which makes it whistle, you should hear that!) and so I can't repro the problem for now... At the same time I don't have this error on my azure VMs. So close it and I'll re-open in case. |
ouch! Good luck with that @happysysadm Let me go ahead and close, but happy to reopen if anyone is running into this again |
hm, I seem to have the same error when starting docker service: Resolver Setup/Start failed for container none, "json: cannot unmarshal array into Go value of type hcsshim.HNSNetwork" Server 2016 with all patches installed, hostnetsvc.dll version 10.0.14393.351 This server is an upgrade from 2012r2 server and is running as a VM in Hyper-V on Windows 10. docker version: |
@clarity99 That error is an incorrect log we need to cleanup in docker daemon. It should not cause any issues. |
@msabansal Hmm, well the dockerd is not starting. here are the last lines from debug output:
If you think this is another issue I can open a separate issue for it. |
@clarity99 Separate issue for sure. But might be something that is easily resolvable. How did you start facing this issue? Did you deploy a new build and start getting this error? Did you try anything to fix this issue? |
@msabansal I've opened #27984 for this |
Hello,
It seems there is an issue starting docker deamon 1.13-dev on the new realeses Windows Server 2016. It's an error related to network (it seems). After this error, i can pull images from repository, but i can't start any containers, seems like a timeout without any end.
Regards
ping @jhowardmsft
Here are the logs
The text was updated successfully, but these errors were encountered: