Docker Community Forums

Share and learn in the Docker community.

Debian 9: error creating vxlan interface: operation not supported [RESOLVED]

docker
swarm

(Baptistep) #1

Hi,

I trying to start with Docker following this instructions:


Even if all the prerequisites are ok I get this error:

starting container failed: subnet sandbox join failed error creating vxlan interface: operation not supported

Here is my linux server version:

Linux ks-1 4.9.33-mod-std-ipv6-64 #1 SMP Tue Jun 20 11:36:21 CEST 2017 x86_64 GNU/Linux

Here is my docker-compose.yml file:

$ cat docker-compose.yml 
version: "3"
services:
  web:
    # replace username/repo:tag with your name and image details
    image: baptistep/get-started:part2
    deploy:
      replicas: 2
      resources:
        limits:
          cpus: "0.4"
          memory: 200M
      restart_policy:
        condition: on-failure
    ports:
      - "80:80"
    networks:
      - webnet
networks:
  webnet:
$ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                         PORTS
v1bm8udjquoq        getstartedlab_web   replicated          0/2                 baptistep/get-started:part2   *:80->80/tcp
$ docker service ps v1bm8udjquoq

ID                  NAME                      IMAGE                         NODE                DESIRED STATE       CURRENT STATE                  ERROR                              PORTS
w1kl46bpzmhx        getstartedlab_web.1       baptistep/get-started:part2   ks-1                Ready               Ready 2 seconds ago                                               
zkt0ggb60awx         \_ getstartedlab_web.1   baptistep/get-started:part2   ks-1                Shutdown            Failed 36 seconds ago          "starting container failed: su…"   
zcapbzygzlh8         \_ getstartedlab_web.1   baptistep/get-started:part2   ks-1                Shutdown            Failed 2 minutes ago           "starting container failed: su…"   
zkd3okwygeax         \_ getstartedlab_web.1   baptistep/get-started:part2   ks-1                Shutdown            Failed 3 minutes ago           "starting container failed: su…"   
zrwv77nvvg2l         \_ getstartedlab_web.1   baptistep/get-started:part2   ks-1                Shutdown            Failed 8 minutes ago           "starting container failed: su…"   
zdkk33mo8o8r        getstartedlab_web.2       baptistep/get-started:part2   ks-1                Ready               Ready less than a second ago                                      
zh9438cxxv4s         \_ getstartedlab_web.2   baptistep/get-started:part2   ks-1                Shutdown            Failed 2 minutes ago           "starting container failed: su…"   
zp0il7bsrvit         \_ getstartedlab_web.2   baptistep/get-started:part2   ks-1                Shutdown            Failed 4 minutes ago           "starting container failed: su…"   
ydljjgkzlg3n         \_ getstartedlab_web.2   baptistep/get-started:part2   ks-1                Shutdown            Failed 5 minutes ago           "starting container failed: su…"   
zcre1qdx9oy6         \_ getstartedlab_web.2   baptistep/get-started:part2   ks-1                Shutdown            Failed 8 minutes ago           "starting container failed: su…"
$ docker inspect zkt0ggb60awx

[
    {
        "ID": "zkt0ggb60awxbqohba81wqqod",
        "Version": {
            "Index": 1964
        },
        "CreatedAt": "2017-10-18T14:48:08.909594985Z",
        "UpdatedAt": "2017-10-18T14:48:15.143716344Z",
        "Labels": {},
        "Spec": {
            "ContainerSpec": {
                "Image": "baptistep/get-started:part2@sha256:eecf1f9dd65bd213e9d5979f6ecd3c9e735db0fd7fe39ff0660f2596863ede34",
                "Labels": {
                    "com.docker.stack.namespace": "getstartedlab"
                },
                "Privileges": {
                    "CredentialSpec": null,
                    "SELinuxContext": null
                }
            },
            "Resources": {
                "Limits": {
                    "NanoCPUs": 400000000,
                    "MemoryBytes": 209715200
                }
            },
            "RestartPolicy": {
                "Condition": "on-failure",
                "MaxAttempts": 0
            },
            "Placement": {
                "Platforms": [
                    {
                        "Architecture": "amd64",
                        "OS": "linux"
                    }
                ]
            },
            "Networks": [
                {
                    "Target": "mi67c6gw0o265c7phsekcvukn",
                    "Aliases": [
                        "web"
                    ]
                }
            ],
            "ForceUpdate": 0
        },
        "ServiceID": "v1bm8udjquoqvu2wr07ml4vm6",
        "Slot": 1,
        "NodeID": "2c7eln99va1bdq2fnkwejjqkq",
        "Status": {
            "Timestamp": "2017-10-18T14:48:14.713700501Z",
            "State": "failed",
            "Message": "starting",
            "Err": "starting container failed: subnet sandbox join failed for \"10.0.0.0/24\": error creating vxlan interface: operation not supported",
            "ContainerStatus": {
                "ContainerID": "84de95dff0363d5c49235fd551c914c3792f6c71f893d732f97fa1c19bada35f",
                "ExitCode": 128
            },
            "PortStatus": {}
        },
        "DesiredState": "shutdown",
        "NetworksAttachments": [
            {
                "Network": {
                    "ID": "pbunle72agspuxyeqz7o409ce",
                    "Version": {
                        "Index": 6
                    },
                    "CreatedAt": "2017-10-18T14:38:59.233492545Z",
                    "UpdatedAt": "2017-10-18T14:38:59.286693583Z",
                    "Spec": {
                        "Name": "ingress",
                        "Labels": {},
                        "DriverConfiguration": {},
                        "Ingress": true,
                        "IPAMOptions": {
                            "Driver": {},
                            "Configs": [
                                {
                                    "Subnet": "10.255.0.0/16",
                                    "Gateway": "10.255.0.1"
                                }
                            ]
                        },
                        "Scope": "swarm"
                    },
                    "DriverState": {
                        "Name": "overlay",
                        "Options": {
                            "com.docker.network.driver.overlay.vxlanid_list": "4096"
                        }
                    },
                    "IPAMOptions": {
                        "Driver": {
                            "Name": "default"
                        },
                        "Configs": [
                            {
                                "Subnet": "10.255.0.0/16",
                                "Gateway": "10.255.0.1"
                            }
                        ]
                    }
                },
                "Addresses": [
                    "10.255.0.4/16"
                ]
            },
            {
                "Network": {
                    "ID": "mi67c6gw0o265c7phsekcvukn",
                    "Version": {
                        "Index": 12
                    },
                    "CreatedAt": "2017-10-18T14:39:08.657383131Z",
                    "UpdatedAt": "2017-10-18T14:39:08.744082402Z",
                    "Spec": {
                        "Name": "getstartedlab_webnet",
                        "Labels": {
                            "com.docker.stack.namespace": "getstartedlab"
                        },
                        "DriverConfiguration": {
                            "Name": "overlay"
                        },
                        "Scope": "swarm"
                    },
                    "DriverState": {
                        "Name": "overlay",
                        "Options": {
                            "com.docker.network.driver.overlay.vxlanid_list": "4097"
                        }
                    },
                    "IPAMOptions": {
                        "Driver": {
                            "Name": "default"
                        },
                        "Configs": [
                            {
                                "Subnet": "10.0.0.0/24",
                                "Gateway": "10.0.0.1"
                            }
                        ]
                    }
                },
                "Addresses": [
                    "10.0.0.3/24"
                ]
            }
        ]
    }
]

This script https://raw.githubusercontent.com/moby/moby/master/contrib/check-config.sh give this:

info: reading kernel config from /proc/config.gz ...

Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_CPUSETS: enabled
- CONFIG_MEMCG: enabled
- CONFIG_KEYS: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_BRIDGE_NETFILTER: enabled
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_FILTER: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NETFILTER_XT_MATCH_IPVS: missing
- CONFIG_IP_NF_NAT: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
- CONFIG_POSIX_MQUEUE: enabled

Optional Features:
- CONFIG_USER_NS: enabled
- CONFIG_SECCOMP: enabled
- CONFIG_CGROUP_PIDS: enabled
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_MEMCG_SWAP_ENABLED: enabled
    (cgroup swap accounting is currently enabled)
- CONFIG_LEGACY_VSYSCALL_EMULATE: enabled
- CONFIG_BLK_CGROUP: enabled
- CONFIG_BLK_DEV_THROTTLING: enabled
- CONFIG_IOSCHED_CFQ: enabled
- CONFIG_CFQ_GROUP_IOSCHED: enabled
- CONFIG_CGROUP_PERF: missing
- CONFIG_CGROUP_HUGETLB: missing
- CONFIG_NET_CLS_CGROUP: enabled
- CONFIG_CGROUP_NET_PRIO: enabled
- CONFIG_CFS_BANDWIDTH: missing
- CONFIG_FAIR_GROUP_SCHED: enabled
- CONFIG_RT_GROUP_SCHED: missing
- CONFIG_IP_VS: missing
- CONFIG_IP_VS_NFCT: missing
- CONFIG_IP_VS_RR: missing
- CONFIG_EXT3_FS: enabled
- CONFIG_EXT3_FS_XATTR: missing
- CONFIG_EXT3_FS_POSIX_ACL: enabled
- CONFIG_EXT3_FS_SECURITY: enabled
    (enable these ext3 configs if you are using ext3 as backing filesystem)
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: enabled
- Network Drivers:
  - "overlay":
    - CONFIG_VXLAN: missing
      Optional (for encrypted networks):
      - CONFIG_CRYPTO: enabled
      - CONFIG_CRYPTO_AEAD: enabled
      - CONFIG_CRYPTO_GCM: missing
      - CONFIG_CRYPTO_SEQIV: enabled
      - CONFIG_CRYPTO_GHASH: missing
      - CONFIG_XFRM: enabled
      - CONFIG_XFRM_USER: enabled
      - CONFIG_XFRM_ALGO: enabled
      - CONFIG_INET_ESP: enabled
      - CONFIG_INET_XFRM_MODE_TRANSPORT: enabled
  - "ipvlan":
    - CONFIG_IPVLAN: missing
  - "macvlan":
    - CONFIG_MACVLAN: enabled
    - CONFIG_DUMMY: enabled
  - "ftp,tftp client in container":
    - CONFIG_NF_NAT_FTP: enabled
    - CONFIG_NF_CONNTRACK_FTP: enabled
    - CONFIG_NF_NAT_TFTP: enabled
    - CONFIG_NF_CONNTRACK_TFTP: enabled
- Storage Drivers:
  - "aufs":
    - CONFIG_AUFS_FS: missing
  - "btrfs":
    - CONFIG_BTRFS_FS: enabled
    - CONFIG_BTRFS_FS_POSIX_ACL: enabled
  - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled
    - CONFIG_DM_THIN_PROVISIONING: enabled
  - "overlay":
    - CONFIG_OVERLAY_FS: enabled
  - "zfs":
    - /dev/zfs: missing
    - zfs command: missing
    - zpool command: missing

Limits:
- /proc/sys/kernel/keys/root_maxkeys: 1000000

Here are the logs:

time="06:51" level=debug msg="(*worker).Update" len(assignments)=1 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileSecrets" len(removedSecrets)=0 len(updatedSecrets)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileConfigs" len(removedConfigs)=0 len(updatedConfigs)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileTaskState" len(removedTasks)=0 len(updatedTasks)=1 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg=assigned module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.desiredstate=RUNNING task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="state changed" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=RUNNING state.transition="READY->STARTING" task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="container mounted via layerStore: /var/lib/docker/overlay2/a25dbaa0cb1961db6e01c2daf554da421b2bfd4e7bb3b4e5c9815ea79fbd8299/merged"
time="06:51" level=debug msg="Assigning addresses for endpoint getstartedlab_web.2.h4m11y7f8re5336qbnt71u9ii's interface on network ingress"
time="06:51" level=debug msg="RequestAddress(LocalDefault/10.255.0.0/16, 10.255.0.5, map[])"
time="06:51" level=debug msg="Assigning addresses for endpoint getstartedlab_web.2.h4m11y7f8re5336qbnt71u9ii's interface on network ingress"
time="06:51" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="READY->STARTING" task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="Releasing addresses for endpoint getstartedlab_web.2.h4m11y7f8re5336qbnt71u9ii's interface on network ingress"
time="06:51" level=debug msg="ReleaseAddress(LocalDefault/10.255.0.0/16, 10.255.0.5)"
time="06:51" level=debug msg="releasing IPv4 pools from network getstartedlab_webnet (mi67c6gw0o265c7phsekcvukn)"
time="06:51" level=debug msg="ReleaseAddress(LocalDefault/10.0.0.0/24, 10.0.0.1)"
time="06:51" level=debug msg="ReleasePool(LocalDefault/10.0.0.0/24)"
time="06:51" level=debug msg="cleanupServiceBindings for mi67c6gw0o265c7phsekcvukn"
time="06:51" level=error msg="fatal task error" error="starting container failed: subnet sandbox join failed for \"10.255.0.0/16\": error creating vxlan interface: operation not supported" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="state changed" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=RUNNING state.transition="STARTING->FAILED" task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="STARTING->FAILED" task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg="ReleaseAddress(GlobalDefault/10.255.0.0/16, 10.255.0.5)"
time="06:51" level=debug msg="ReleaseAddress(GlobalDefault/10.0.0.0/24, 10.0.0.4)"
time="06:51" level=debug msg="RequestAddress(GlobalDefault/10.255.0.0/16, <nil>, map[])"
time="06:51" level=debug msg="RequestAddress(GlobalDefault/10.0.0.0/24, <nil>, map[])"
time="06:51" level=debug msg="assigning to node 2c7eln99va1bdq2fnkwejjqkq" module=node node.id=2c7eln99va1bdq2fnkwejjqkq task.id=4wlw01t26fqoorvtebcjdyikd
time="06:51" level=debug msg="(*worker).Update" len(assignments)=2 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileSecrets" len(removedSecrets)=0 len(updatedSecrets)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileConfigs" len(removedConfigs)=0 len(updatedConfigs)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg="(*worker).reconcileTaskState" len(removedTasks)=0 len(updatedTasks)=2 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:51" level=debug msg=assigned module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.desiredstate=SHUTDOWN task.id=h4m11y7f8re5336qbnt71u9ii
time="06:51" level=debug msg=assigned module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.desiredstate=READY task.id=4wlw01t26fqoorvtebcjdyikd
time="06:51" level=debug msg="state changed" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=READY state.transition="ASSIGNED->ACCEPTED" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:51" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=4wlw01t26fqoorvtebcjdyikd
time="06:51" level=debug msg="state changed" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=READY state.transition="ASSIGNED->ACCEPTED" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="state changed" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=READY state.transition="ACCEPTED->PREPARING" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="ASSIGNED->ACCEPTED" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=h4m11y7f8re5336qbnt71u9ii
time="06:52" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="Allocating IPv4 pools for network getstartedlab_webnet (mi67c6gw0o265c7phsekcvukn)"
time="06:52" level=debug msg="RequestPool(LocalDefault, 10.0.0.0/24, , map[], false)"
time="06:52" level=debug msg="RequestAddress(LocalDefault/10.0.0.0/24, 10.0.0.1, map[RequestAddressType:com.docker.network.gateway])"
time="06:52" level=debug msg="overlay: Received vxlan IDs: 4097"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t mangle -C OUTPUT -p udp --dport 4789 -m u32 --u32 0>>22&0x3C@12&0xFFFFFF00=1048832 -j MARK --set-mark 13681891]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -C INPUT -m policy --dir in --pol ipsec -p udp --dport 4789 -m u32 --u32 0>>22&0x3C@12&0xFFFFFF00=1048832 -j ACCEPT]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -C INPUT -p udp --dport 4789 -m u32 --u32 0>>22&0x3C@12&0xFFFFFF00=1048832 -j DROP]"
time="06:52" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="FAILED->FAILED" task.id=h4m11y7f8re5336qbnt71u9ii
time="06:52" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="ACCEPTED->PREPARING" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="ks-1-e22eb8087d67: joined network mi67c6gw0o265c7phsekcvukn"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -L DOCKER-INGRESS]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -n -L DOCKER-USER]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -C DOCKER-USER -j RETURN]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -t filter -C FORWARD -j DOCKER-USER]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -D FORWARD -j DOCKER-USER]"
time="06:52" level=debug msg="/sbin/iptables, [--wait -I FORWARD -j DOCKER-USER]"
time="06:52" level=warning msg="Your kernel does not support CPU cfs period or the cgroup is not mounted. Period discarded."
time="06:52" level=warning msg="Your kernel does not support CPU cfs quota or the cgroup is not mounted. Quota discarded."
time="06:52" level=debug msg="container mounted via layerStore: /var/lib/docker/overlay2/8ba7f7def21c40e765f7224a742040cf6ccfccac69ff94cd2b65c9446ef0a215/merged"
time="06:52" level=debug msg="(*worker).Update" len(assignments)=1 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="(*worker).reconcileSecrets" len(removedSecrets)=0 len(updatedSecrets)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="(*worker).reconcileConfigs" len(removedConfigs)=0 len(updatedConfigs)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="(*worker).reconcileTaskState" len(removedTasks)=1 len(updatedTasks)=0 module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="Could not find network sandbox for container getstartedlab_web.2.h4m11y7f8re5336qbnt71u9ii on service binding deactivation request"
time="06:52" level=debug msg="Creating service config in agent for t = &Task{ID:4wlw01t26fqoorvtebcjdyikd,Meta:Meta{Version:Version{Index:6036,},CreatedAt:2017-10-18T15:06:51.749163174Z,UpdatedAt:2017-10-18T15:06:51.820606234Z,},Spec:TaskSpec{Runtime:&TaskSpec_Container{Container:&ContainerSpec{Image:baptistep/get-started:part2@sha256:eecf1f9dd65bd213e9d5979f6ecd3c9e735db0fd7fe39ff0660f2596863ede34,Labels:map[string]string{com.docker.stack.namespace: getstartedlab,},Command:[],Args:[],Env:[],Dir:,User:,Mounts:[],StopGracePeriod:(duration: nil google_protobuf1.Duration),PullOptions:nil,Groups:[],Secrets:[],TTY:false,Hostname:,DNSConfig:nil,Healthcheck:nil,Hosts:[],OpenStdin:false,ReadOnly:false,StopSignal:,Configs:[],Privileges:&Privileges{CredentialSpec:nil,SELinuxContext:nil,},Init:<nil>,},},Resources:&ResourceRequirements{Limits:&Resources{NanoCPUs:400000000,MemoryBytes:209715200,Generic:[],},Reservations:nil,},Restart:&RestartPolicy{Condition:ON_FAILURE,Delay:(duration: nil google_protobuf1.Duration),MaxAttempts:0,Window:(duration: nil google_protobuf1.Duration),},Placement:&Placement{Constraints:[],Preferences:[],Platforms:[&Platform{Architecture:amd64,OS:linux,}],},LogDriver:nil,Networks:[&NetworkAttachmentConfig{Target:mi67c6gw0o265c7phsekcvukn,Aliases:[web],Addresses:[],DriverAttachmentOpts:map[string]string{},}],ForceUpdate:0,ResourceReferences:[],},ServiceID:v1bm8udjquoqvu2wr07ml4vm6,Slot:2,NodeID:2c7eln99va1bdq2fnkwejjqkq,Annotations:Annotations{Name:,Labels:map[string]string{},Indices:[],},ServiceAnnotations:Annotations{Name:getstartedlab_web,Labels:map[string]string{com.docker.stack.image: baptistep/get-started:part2,com.docker.stack.namespace: getstartedlab,},Indices:[],},Status:TaskStatus{Timestamp:2017-10-18T15:06:51.819829898Z,State:ASSIGNED,Message:scheduler assigned task to node,Err:,RuntimeStatus:<nil>,PortStatus:nil,AppliedBy:,AppliedAt:(timestamp: nil google_protobuf.Timestamp),},DesiredState:READY,Networks:[&NetworkAttachment{Network:&Network{ID:pbunle72agspuxye
qz7o409ce,Meta:Meta{Version:Version{Index:6,},CreatedAt:2017-10-18T14:38:59.233492545Z,UpdatedAt:2017-10-18T14:38:59.286693583Z,},Spec:NetworkSpec{Annotations:Annotations{Name:ingress,Labels:map[string]string{},Indices:[],},DriverConfig:&Driver{Name:,Options:map[string]string{},},Ipv6Enabled:false,Internal:false,IPAM:&IPAMOptions{Driver:&Driver{Name:,Options:map[string]string{},},Configs:[&IPAMConfig{Family:UNKNOWN,Subnet:10.255.0.0/16,Range:,Gateway:10.255.0.1,Reserved:map[string]string{},}],},Attachable:false,Ingress:true,ConfigFrom:<nil>,},DriverState:&Driver{Name:overlay,Options:map[string]string{com.docker.network.driver.overlay.vxlanid_list: 4096,},},IPAM:&IPAMOptions{Driver:&Driver{Name:default,Options:map[string]string{},},Configs:[&IPAMConfig{Family:UNKNOWN,Subnet:10.255.0.0/16,Range:,Gateway:10.255.0.1,Reserved:map[string]string{},}],},},Addresses:[10.255.0.5/16],Aliases:[],DriverAttachmentOpts:map[string]string{},} &NetworkAttachment{Network:&Network{ID:mi67c6gw0o265c7phsekcvukn,Meta:Meta{Version:Version{Index:12,},CreatedAt:2017-10-18T14:39:08.657383131Z,UpdatedAt:2017-10-18T14:39:08.744082402Z,},Spec:NetworkSpec{Annotations:Annotations{Name:getstartedlab_webnet,Labels:map[string]string{com.docker.stack.namespace: getstartedlab,},Indices:[],},DriverConfig:&Driver{Name:overlay,Options:map[string]string{},},Ipv6Enabled:false,Internal:false,IPAM:nil,Attachable:false,Ingress:false,ConfigFrom:<nil>,},DriverState:&Driver{Name:overlay,Options:map[string]string{com.docker.network.driver.overlay.vxlanid_list: 4097,},},IPAM:&IPAMOptions{Driver:&Driver{Name:default,Options:map[string]string{},},Configs:[&IPAMConfig{Family:IPV4,Subnet:10.0.0.0/24,Range:,Gateway:10.0.0.1,Reserved:map[string]string{},}],},},Addresses:[10.0.0.4/24],Aliases:[web],DriverAttachmentOpts:map[string]string{},}],Endpoint:&Endpoint{Spec:&EndpointSpec{Mode:VIP,Ports:[&PortConfig{Name:,Protocol:TCP,TargetPort:80,PublishedPort:80,PublishMode:INGRESS,}],},Ports:[&PortConfig{Name:,Protocol:TCP,TargetPort:80,PublishedPort:80,PublishMode:INGRESS,}
],VirtualIPs:[&Endpoint_VirtualIP{NetworkID:pbunle72agspuxyeqz7o409ce,Addr:10.255.0.3/16,} &Endpoint_VirtualIP{NetworkID:mi67c6gw0o265c7phsekcvukn,Addr:10.0.0.2/24,}],},LogDriver:nil,SpecVersion:&Version{Index:0,},AssignedGenericResources:[],}"
time="06:52" level=debug msg="state changed" module="node/agent/taskmanager" node.id=2c7eln99va1bdq2fnkwejjqkq service.id=v1bm8udjquoqvu2wr07ml4vm6 state.desired=READY state.transition="PREPARING->READY" task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="(*Agent).UpdateTaskStatus" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq task.id=4wlw01t26fqoorvtebcjdyikd
time="06:52" level=debug msg="task status reported" module="node/agent" node.id=2c7eln99va1bdq2fnkwejjqkq
time="06:52" level=debug msg="dispatcher committed status update to store" method="(*Dispatcher).processUpdates" module=dispatcher node.id=2c7eln99va1bdq2fnkwejjqkq state.transition="PREPARING->READY" task.id=4wlw01t26fqoorvtebcjdyikd

I tried to fix that by disabling ipv6, my firewall and a reboot, but still the same issue.
Any idea is welcome!
Sorry for the big post.

Baptiste


(Baptistep) #2

Doing exactly the same things on my local environment is working well (but not on my server):

$ docker service ls
ID                  NAME                MODE                REPLICAS            IMAGE                         PORTS
ki77e8bxiwld        getstartedlab_web   replicated          3/5                 baptistep/get-started:part2   *:80->80/tcp
$ docker service ps ki77e8bxiwld
ID                  NAME                  IMAGE                         NODE                DESIRED STATE       CURRENT STATE           ERROR               PORTS
4f3or5hocmoq        getstartedlab_web.1   baptistep/get-started:part2   moby                Running             Running 6 seconds ago                       
ye0cq0ewtsjs        getstartedlab_web.2   baptistep/get-started:part2   moby                Running             Running 7 seconds ago                       
jk1tw7cbuh75        getstartedlab_web.3   baptistep/get-started:part2   moby                Running             Running 7 seconds ago                       
tm4x0osmqzwd        getstartedlab_web.4   baptistep/get-started:part2   moby                Running             Running 6 seconds ago                       
k8dgss9s8inu        getstartedlab_web.5   baptistep/get-started:part2   moby                Running             Running 7 seconds ago                       
$ docker inspect --format='{{.Status.ContainerStatus.ContainerID}}' 4f3or5hocmoq
939161e557494d2492a64c7800a76caf795b09cde802ee4c1d8a6df0788ddadb

(Baptistep) #3

As I read somewhere, it was a kernel issue, installing the last debian kernel in replacement of the host generated kernel did the trick


(Flavio) #4

I think you should check if the CONFIG_VXLAN is set to build the module in your kernel config before compiling it. Most likely you were simply missing the kernel module


(Rjiraya) #5

Hello,

I’m having the same issue, and i’m not sur to understand what i have to do.

Today my kernel has CONFIG_VXLAN to missing.

regards


(Baptistep) #6

If like me you have a dedicated server, it could be that, when you install your distribution from the list of distributions of your host provider, the kernel is “optimized” by your host provider.

I replaced their kernel by my debian distribution official kernel and it worked well.
I had to setup my boot loader in oder to boot on the freshly installed kernel.

Regards


(Rjiraya) #7

I have OVH dedicated server, do you have some input to do that ?

Thank you,

Regards


(Rjiraya) #8

I found something which works :

first install the kernel

 echo 'deb http://ftp.debian.org/debian/ stretch-backports main' | tee -a /etc/apt/sources.list.d/backports.list

apt-get update

apt-get -t stretch-backports install linux-image-amd64

Edit this file /etc/default/grub and replace GRUB_DEFAULT=0 by 1 or 2 (select the number of installed kernel, 0 for the default) for me i installed only on more. So kernel number is 1.
More detail here: https://github.com/dannyti/sboxsetup/wiki/Changing-OVH-Server-Kernel

GRUB_DEFAULT=1

run

update-grub

then reboot

reboot

(Tiangolo) #9

I was having issues with Docker Swarm in Linode.

Changing the kernel resulted to be quite easy in the Dashboard interface. And it solved my issues.

The full steps with screenshots are in this comment, for anyone trying to solve it in Linode: https://github.com/docker/machine/issues/2753#issuecomment-341850111