arangodb / kube-arangodb

ArangoDB Kubernetes Operator - Start ArangoDB on Kubernetes in 5min
https://arangodb.github.io/kube-arangodb/
Apache License 2.0
228 stars 71 forks source link

Docker for Windows #226

Open maku opened 6 years ago

maku commented 6 years ago

Hi,

I tried to run "single-server.yaml" on a windows machine with Docker for Windows (Win 10 Pro, with Docker Version 18.06.0-ce-win72 (19098)) But when I run the depolyment I get only errors:

[08:55:43.903][ApiProxy       ][Info   ] Expose tcp:0.0.0.0:8529:tcp:10.111.120.49:8529
[08:55:43.903][ApiProxy       ][Info   ] Failed to walk to [tcp:0.0.0.0:8529:tcp:10.111.120.49:8529] 9p: file not found
[08:55:43.907][ApiProxy       ][Info   ] Expose tcp:0.0.0.0:8529:tcp:10.111.120.49:8529: succeeded with tcp:0.0.0.0:8529:tcp:10.111.120.49:8529
[08:55:43.907][ApiProxy       ][Info   ] time="2018-07-31T08:55:43+02:00" msg="Opened port 8529 for service single-server-ea:8529"
[08:55:43.930][ApiProxy       ][Error  ] time="2018-07-31T08:55:43+02:00" msg="OnUpdate failed: Port 8529 for service single-server-ea is already opened by another service"
[08:55:46.001][Moby           ][Info   ] [ 1224.811159] IPVS: Creating netns size=2104 id=41
[08:55:46.014][Moby           ][Info   ] [ 1224.826412] IPVS: ftp: loaded support on port[0] = 21
[08:55:46.299][Moby           ][Info   ] [ 1225.110597] IPv6: ADDRCONF(NETDEV_UP): vethada5dc2e: link is not ready
[08:55:46.316][Moby           ][Info   ] [ 1225.124440] IPv6: ADDRCONF(NETDEV_CHANGE): vethada5dc2e: link becomes ready
[08:55:46.329][Moby           ][Info   ] [ 1225.141536] cni0: port 7(vethada5dc2e) entered blocking state
[08:55:46.342][Moby           ][Info   ] [ 1225.153530] cni0: port 7(vethada5dc2e) entered disabled state
[08:55:46.357][Moby           ][Info   ] [ 1225.168034] device vethada5dc2e entered promiscuous mode
[08:55:46.371][Moby           ][Info   ] [ 1225.182618] cni0: port 7(vethada5dc2e) entered blocking state
[08:55:46.386][Moby           ][Info   ] [ 1225.196416] cni0: port 7(vethada5dc2e) entered forwarding state
[08:55:46.472][VpnKit         ][Info   ] vpnkit.exe: Connected Ethernet interface f6:16:36:bc:f9:c6

[08:55:46.472][VpnKit         ][Info   ] vpnkit.exe: UDP interface connected on 10.110.50.51

[08:55:48.999][VpnKit         ][Error  ] vpnkit.exe: Socket.TCPv4.write tcp:10.110.50.51:8088: caught Bad file descriptor returning Eof

[08:55:52.584][ApiProxy       ][Error  ] time="2018-07-31T08:55:52+02:00" msg="OnUpdate failed: Port 8529 for service single-server-ea is already opened by another service"
[08:55:55.226][Moby           ][Info   ] [ 1234.038000] cni0: port 7(vethada5dc2e) entered disabled state
[08:55:55.239][Moby           ][Info   ] [ 1234.050930] device vethada5dc2e left promiscuous mode
[08:55:55.251][Moby           ][Info   ] [ 1234.063289] cni0: port 7(vethada5dc2e) entered disabled state
[08:55:56.410][Moby           ][Info   ] [ 1235.225698] IPVS: Creating netns size=2104 id=42
[08:55:56.421][Moby           ][Info   ] [ 1235.235489] IPVS: ftp: loaded support on port[0] = 21
[08:55:56.761][Moby           ][Info   ] [ 1235.570593] IPv6: ADDRCONF(NETDEV_UP): veth0787d27e: link is not ready
[08:55:56.777][Moby           ][Info   ] [ 1235.585627] IPv6: ADDRCONF(NETDEV_CHANGE): veth0787d27e: link becomes ready
[08:55:56.790][Moby           ][Info   ] [ 1235.602840] cni0: port 7(veth0787d27e) entered blocking state
[08:55:56.803][Moby           ][Info   ] [ 1235.614380] cni0: port 7(veth0787d27e) entered disabled state
[08:55:56.814][Moby           ][Info   ] [ 1235.628132] device veth0787d27e entered promiscuous mode
[08:55:56.828][Moby           ][Info   ] [ 1235.639173] cni0: port 7(veth0787d27e) entered blocking state
[08:55:56.844][Moby           ][Info   ] [ 1235.653051] cni0: port 7(veth0787d27e) entered forwarding state
[08:56:02.867][Moby           ][Info   ] [ 1241.676428] cni0: port 7(veth0787d27e) entered disabled state
[08:56:02.881][Moby           ][Info   ] [ 1241.692730] device veth0787d27e left promiscuous mode
[08:56:02.896][Moby           ][Info   ] [ 1241.705480] cni0: port 7(veth0787d27e) entered disabled state
[08:56:11.025][Moby           ][Info   ] [ 1249.840147] IPVS: Creating netns size=2104 id=43
[08:56:11.037][Moby           ][Info   ] [ 1249.849997] IPVS: ftp: loaded support on port[0] = 21
[08:56:11.329][Moby           ][Info   ] [ 1250.140665] IPv6: ADDRCONF(NETDEV_UP): veth2fdf5bb0: link is not ready
[08:56:11.345][Moby           ][Info   ] [ 1250.154766] IPv6: ADDRCONF(NETDEV_CHANGE): veth2fdf5bb0: link becomes ready
[08:56:11.361][Moby           ][Info   ] [ 1250.170612] cni0: port 7(veth2fdf5bb0) entered blocking state
[08:56:11.375][Moby           ][Info   ] [ 1250.185960] cni0: port 7(veth2fdf5bb0) entered disabled state
[08:56:11.387][Moby           ][Info   ] [ 1250.200953] device veth2fdf5bb0 entered promiscuous mode
[08:56:11.400][Moby           ][Info   ] [ 1250.212295] cni0: port 7(veth2fdf5bb0) entered blocking state
[08:56:11.413][Moby           ][Info   ] [ 1250.225897] cni0: port 7(veth2fdf5bb0) entered forwarding state
[08:56:16.215][Moby           ][Info   ] [ 1255.022355] cni0: port 7(veth2fdf5bb0) entered disabled state
[08:56:16.230][Moby           ][Info   ] [ 1255.040543] device veth2fdf5bb0 left promiscuous mode
[08:56:16.243][Moby           ][Info   ] [ 1255.054361] cni0: port 7(veth2fdf5bb0) entered disabled state

Does anybody know how to get it running...

TIA

ewoutp commented 6 years ago

This looks like a port conflict in docker. Is there anything else running that claims port 8529?

maku commented 6 years ago

@ewoutp Yeah I no, the log output looks like. But before I start the "single server" nothing runs on port "8529". (Tried the same on MacOS where it works with no problems)

ewoutp commented 6 years ago

I've seen it before (on Mac) that docker's userproxy hold a port while no container was actually using it. Try to restart docker and see if it makes a difference.

maku commented 6 years ago

I restarted docker (and also my machine). But it had no effect... Same situation.

maku commented 6 years ago

It is questionable whether it is a problem with my environment or with windows / docker / kubernetes in general....

ewoutp commented 6 years ago

Please run this to see if this is a general docker problem.

docker run -it -d -e ARANGO_NO_AUTH=1 -p 8529:8529 arangodb/arangodb

maku commented 6 years ago

running arangodb as docker container works...