{"action":"created","issue":{"url":"https://api.github.com/repos/weaveworks/scope/issues/478","labels_url":"https://api.github.com/repos/weaveworks/scope/issues/478/labels{/name}","comments_url":"https://api.github.com/repos/weaveworks/scope/issues/478/comments","events_url":"https://api.github.com/repos/weaveworks/scope/issues/478/events","html_url":"https://github.com/weaveworks/scope/issues/478","id":106022431,"number":478,"title":"can't stop weave ","user":{"login":"Red-wolf-s-husband","id":4018764,"avatar_url":"https://avatars.githubusercontent.com/u/4018764?v=3","gravatar_id":"","url":"https://api.github.com/users/Red-wolf-s-husband","html_url":"https://github.com/Red-wolf-s-husband","followers_url":"https://api.github.com/users/Red-wolf-s-husband/followers","following_url":"https://api.github.com/users/Red-wolf-s-husband/following{/other_user}","gists_url":"https://api.github.com/users/Red-wolf-s-husband/gists{/gist_id}","starred_url":"https://api.github.com/users/Red-wolf-s-husband/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Red-wolf-s-husband/subscriptions","organizations_url":"https://api.github.com/users/Red-wolf-s-husband/orgs","repos_url":"https://api.github.com/users/Red-wolf-s-husband/repos","events_url":"https://api.github.com/users/Red-wolf-s-husband/events{/privacy}","received_events_url":"https://api.github.com/users/Red-wolf-s-husband/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-11T14:32:45Z","updated_at":"2015-09-23T08:59:05Z","closed_at":"2015-09-23T08:59:05Z","body":"```\r\n$ docker ps\r\nCONTAINER ID        IMAGE                    COMMAND                CREATED             STATUS              PORTS               NAMES\r\n5592db746a1f        weaveworks/scope:0.6.0   \"/home/weave/entrypo   3 days ago          Up 3 days                               weavescope          \r\n\r\n~ ⌚ 22:28:17\r\n$ docker stop 55\r\nError response from daemon: Cannot stop container 55: no such process\r\nFATA[0000] Error: failed to stop one or more containers \r\n\r\n~ ⌚ 22:28:31\r\n$ docker inspect 55 \r\n[{\r\n    \"AppArmorProfile\": \"\",\r\n    \"Args\": [\r\n        \"--probe.docker\",\r\n        \"true\"\r\n    ],\r\n    \"Config\": {\r\n        \"AttachStderr\": false,\r\n        \"AttachStdin\": false,\r\n        \"AttachStdout\": false,\r\n        \"Cmd\": [\r\n            \"--probe.docker\",\r\n            \"true\"\r\n        ],\r\n        \"CpuShares\": 0,\r\n        \"Cpuset\": \"\",\r\n        \"Domainname\": \"\",\r\n        \"Entrypoint\": [\r\n            \"/home/weave/entrypoint.sh\"\r\n        ],\r\n        \"Env\": [\r\n            \"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\r\n        ],\r\n        \"ExposedPorts\": {\r\n            \"4040/tcp\": {}\r\n        },\r\n        \"Hostname\": \"Sunan-ubuntu\",\r\n        \"Image\": \"weaveworks/scope:0.6.0\",\r\n        \"MacAddress\": \"\",\r\n        \"Memory\": 0,\r\n        \"MemorySwap\": 0,\r\n        \"NetworkDisabled\": false,\r\n        \"OnBuild\": null,\r\n        \"OpenStdin\": false,\r\n        \"PortSpecs\": null,\r\n        \"StdinOnce\": false,\r\n        \"Tty\": false,\r\n        \"User\": \"\",\r\n        \"Volumes\": null,\r\n        \"WorkingDir\": \"/home/weave\"\r\n    },\r\n    \"Created\": \"2015-09-07T16:37:44.614464816Z\",\r\n    \"Driver\": \"aufs\",\r\n    \"ExecDriver\": \"native-0.2\",\r\n    \"ExecIDs\": null,\r\n    \"HostConfig\": {\r\n        \"Binds\": [\r\n            \"/var/run/docker.sock:/var/run/docker.sock\"\r\n        ],\r\n        \"CapAdd\": null,\r\n        \"CapDrop\": null,\r\n        \"ContainerIDFile\": \"\",\r\n        \"Devices\": [],\r\n        \"Dns\": null,\r\n        \"DnsSearch\": null,\r\n        \"ExtraHosts\": null,\r\n        \"IpcMode\": \"\",\r\n        \"Links\": null,\r\n        \"LxcConf\": [],\r\n        \"NetworkMode\": \"host\",\r\n        \"PidMode\": \"host\",\r\n        \"PortBindings\": {},\r\n        \"Privileged\": true,\r\n        \"PublishAllPorts\": false,\r\n        \"ReadonlyRootfs\": false,\r\n        \"RestartPolicy\": {\r\n            \"MaximumRetryCount\": 0,\r\n            \"Name\": \"\"\r\n        },\r\n        \"SecurityOpt\": [\r\n            \"label:disable\"\r\n        ],\r\n        \"VolumesFrom\": null\r\n    },\r\n    \"HostnamePath\": \"/var/lib/docker/containers/5592db746a1f6d820d939bdd94f48e403533f0659898bef8e9c375fdd43ef11c/hostname\",\r\n    \"HostsPath\": \"/var/lib/docker/containers/5592db746a1f6d820d939bdd94f48e403533f0659898bef8e9c375fdd43ef11c/hosts\",\r\n    \"Id\": \"5592db746a1f6d820d939bdd94f48e403533f0659898bef8e9c375fdd43ef11c\",\r\n    \"Image\": \"5ad5956cf618ce793ccd5ca5309b65634b537ff1aa485c70ded90b03639ec95e\",\r\n    \"MountLabel\": \"\",\r\n    \"Name\": \"/weavescope\",\r\n    \"NetworkSettings\": {\r\n        \"Bridge\": \"\",\r\n        \"Gateway\": \"\",\r\n        \"GlobalIPv6Address\": \"\",\r\n        \"GlobalIPv6PrefixLen\": 0,\r\n        \"IPAddress\": \"\",\r\n        \"IPPrefixLen\": 0,\r\n        \"IPv6Gateway\": \"\",\r\n        \"LinkLocalIPv6Address\": \"\",\r\n        \"LinkLocalIPv6PrefixLen\": 0,\r\n        \"MacAddress\": \"\",\r\n        \"PortMapping\": null,\r\n        \"Ports\": null\r\n    },\r\n    \"Path\": \"/home/weave/entrypoint.sh\",\r\n    \"ProcessLabel\": \"\",\r\n    \"ResolvConfPath\": \"/var/lib/docker/containers/5592db746a1f6d820d939bdd94f48e403533f0659898bef8e9c375fdd43ef11c/resolv.conf\",\r\n    \"RestartCount\": 0,\r\n    \"State\": {\r\n        \"Error\": \"\",\r\n        \"ExitCode\": 0,\r\n        \"FinishedAt\": \"0001-01-01T00:00:00Z\",\r\n        \"OOMKilled\": false,\r\n        \"Paused\": false,\r\n        \"Pid\": 16902,\r\n        \"Restarting\": false,\r\n        \"Running\": true,\r\n        \"StartedAt\": \"2015-09-07T16:37:44.793659155Z\"\r\n    },\r\n    \"Volumes\": {\r\n        \"/var/run/docker.sock\": \"/run/docker.sock\"\r\n    },\r\n    \"VolumesRW\": {\r\n        \"/var/run/docker.sock\": true\r\n    }\r\n}\r\n]\r\n\r\n$ ps aux|grep weave\r\nroot     22556 28.8  1.2 319184 74596 ?        Sl   22:26   0:53 /home/weave/scope-probe -docker=true\r\nroot     22569  1.0  0.1  18524 11248 ?        Sl   22:26   0:01 /home/weave/scope-app\r\n\r\n~/docker ⌚ 22:31:07\r\n$ docker version\r\nClient version: 1.5.0\r\nClient API version: 1.17\r\nGo version (client): go1.4.1\r\nGit commit (client): a8a31ef\r\nOS/Arch (client): linux/amd64\r\nServer version: 1.5.0\r\nServer API version: 1.17\r\nGo version (server): go1.4.1\r\nGit commit (server): a8a31ef\r\n```\r\n\r\nIf I kill that weave process. It will restart. And please notice that inspect return PID are not equals ps PID"},"comment":{"url":"https://api.github.com/repos/weaveworks/scope/issues/comments/142533976","html_url":"https://github.com/weaveworks/scope/issues/478#issuecomment-142533976","issue_url":"https://api.github.com/repos/weaveworks/scope/issues/478","id":142533976,"user":{"login":"tomwilkie","id":444037,"avatar_url":"https://avatars.githubusercontent.com/u/444037?v=3","gravatar_id":"","url":"https://api.github.com/users/tomwilkie","html_url":"https://github.com/tomwilkie","followers_url":"https://api.github.com/users/tomwilkie/followers","following_url":"https://api.github.com/users/tomwilkie/following{/other_user}","gists_url":"https://api.github.com/users/tomwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomwilkie/subscriptions","organizations_url":"https://api.github.com/users/tomwilkie/orgs","repos_url":"https://api.github.com/users/tomwilkie/repos","events_url":"https://api.github.com/users/tomwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/tomwilkie/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T08:59:05Z","updated_at":"2015-09-23T08:59:05Z","body":"@peterbourgon is rejigging the shutdown code as part of #424, and we've added a test to ensure this can't happen again."}}