Portainer: 1.16.0 new deployment fails to connect to Windows host

Created on 22 Jan 2018  路  3Comments  路  Source: portainer/portainer

Description
Attempting to connect to a Windows swarm host from a new deployment of Portainer 1.16.0 fails. 1.15.5 works fine.

Steps to reproduce the issue:

  1. Deploy a Windows Server 2016 swarm host with dockerd listening on tcp://0.0.0.0:2375
  2. Create a Portainer service: docker service create --name portainer --publish published=9000,target=9000,mode=host --endpoint-mode dnsrr --replicas=1 --constraint 'node.role == manager' --mount type=volume,src=portainer,dst=c:/data portainer/portainer:latest
  3. Identify the host's nat-network IP address with get-netipaddress
  4. Connect to Portainer, set the admin password, and attempt to connect to host-nat-ip-address:2375

Chrome console shows requests to http://host:9000/api/endpoints/xx/docker/plugins returning 500 errors, followed by DELETE .../endpoints/xx. The error body contains a message of "Plugins are not supported on this platform"

Technical details:

  • Portainer version: 1.16.0
  • Target Docker version (the host/cluster you manage): 17.06.2-ee-6
  • Platform (windows/linux): Windows 2016
  • Command used to start Portainer: docker service create --name portainer --publish published=9000,target=9000,mode=host --endpoint-mode dnsrr --replicas=1 --constraint 'node.role == manager' --mount type=volume,src=portainer,dst=c:/data portainer/portainer:latest
  • Target Swarm version (if applicable): built in?
  • Browser: Chrome 63
kinbug platforwindows

All 3 comments

Hey @chrisvanderpennen, thanks for the report.

Could you give a try to portainer/portainer:pr1586 and tell me if it solves the issue?

Hey @deviantony, your PR fixes the connection issue. I have an instance of portainer:pr1586 happily managing the Windows swarm node hosting it. Thanks!

There's a few routes that still make the same request and pop up a toast of:

Failure
Unable to retrieve plugins

  • actions/create/network
  • actions/create/service
  • actions/create/volume

But they appear to work fine despite the toast. Would you like me to file a separate report for that?

@chrisvanderpennen nice !

Yes, please open another issue to report the problems on the other routes.

Was this page helpful?
0 / 5 - 0 ratings