{"action":"created","issue":{"url":"https://api.github.com/repos/tsuru/tsuru/issues/1204","labels_url":"https://api.github.com/repos/tsuru/tsuru/issues/1204/labels{/name}","comments_url":"https://api.github.com/repos/tsuru/tsuru/issues/1204/comments","events_url":"https://api.github.com/repos/tsuru/tsuru/issues/1204/events","html_url":"https://github.com/tsuru/tsuru/issues/1204","id":79657299,"number":1204,"title":"runtime error with tsuru unit-remove","user":{"login":"vmalaga","id":500904,"avatar_url":"https://avatars.githubusercontent.com/u/500904?v=3","gravatar_id":"","url":"https://api.github.com/users/vmalaga","html_url":"https://github.com/vmalaga","followers_url":"https://api.github.com/users/vmalaga/followers","following_url":"https://api.github.com/users/vmalaga/following{/other_user}","gists_url":"https://api.github.com/users/vmalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/vmalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmalaga/subscriptions","organizations_url":"https://api.github.com/users/vmalaga/orgs","repos_url":"https://api.github.com/users/vmalaga/repos","events_url":"https://api.github.com/users/vmalaga/events{/privacy}","received_events_url":"https://api.github.com/users/vmalaga/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-22T23:46:21Z","updated_at":"2015-05-24T19:53:54Z","closed_at":"2015-05-24T19:53:54Z","body":"Hey all\r\n\r\nafter add some units to app, if I try to remove any unit, the tsr daemon crack with runtime error.\r\nI send the trace at the tsr\r\n```\r\ntsuru unit-remove 1 -a itapps\r\n```\r\n```\r\n2015-05-23T01:38:28.708126276+02:00 DELETE /apps/itapps/units 0 in 5.282663ms\r\npanic: runtime error: invalid memory address or nil pointer dereference\r\n[signal 0xb code=0x1 addr=0x20 pc=0x511a54]\r\n\r\ngoroutine 184 [running]:\r\ngithub.com/tsuru/tsuru/provision/docker.(*segregatedScheduler).GetRemovableContainer(0x0, 0xc208139562, 0x6, 0xc208055920, 0x0, 0x0, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/provision/docker/scheduler.go:140 +0x94\r\ngithub.com/tsuru/tsuru/provision/docker.(*dockerProvisioner).RemoveUnits(0xc20804cf00, 0x7f759b449210, 0xc20819db80, 0x1, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/provision/docker/provisioner.go:629 +0x630\r\ngithub.com/tsuru/tsuru/app.func·020()\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/app/app.go:427 +0xcd\r\ncreated by github.com/tsuru/tsuru/app.(*App).RemoveUnits\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/app/app.go:444 +0x3df\r\n\r\ngoroutine 1 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d1640, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d1640, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).accept(0xc2081d15e0, 0x0, 0x7f759b441e50, 0xc2081c6db0)\r\n        /usr/lib/go/src/net/fd_unix.go:419 +0x40b\r\nnet.(*TCPListener).AcceptTCP(0xc20804e390, 0xc2081fb238, 0x0, 0x0)\r\n        /usr/lib/go/src/net/tcpsock_posix.go:234 +0x4e\r\nnet.(*TCPListener).Accept(0xc20804e390, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/tcpsock_posix.go:244 +0x4c\r\nnet/http.(*Server).Serve(0xc2081001e0, 0x7f759b448f50, 0xc20804e390, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/server.go:1728 +0x92\r\ngopkg.in/tylerb/graceful%2ev1.(*Server).Serve(0xc2081d3f80, 0x7f759b448f50, 0xc20804e390, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:207 +0x535\r\ngopkg.in/tylerb/graceful%2ev1.(*Server).ListenAndServe(0xc2081d3f80, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:110 +0x211\r\ngithub.com/tsuru/tsuru/api.RunServer(0xc208073a00, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/api/server.go:357 +0x5d86\r\nmain.(*apiCmd).Run(0xc20807bb20, 0xc20800ca00, 0xc20800ca50, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/tsr/api.go:35 +0x1d1\r\nmain.(*tsrCommand).Run(0xc2080d48a0, 0xc20800ca00, 0xc20800ca50, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/tsr/command.go:60 +0x448\r\ngithub.com/tsuru/tsuru/cmd.(*Manager).Run(0xc2080b2180, 0x0, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/cmd.go:192 +0x1872\r\nmain.main()\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/tsr/main.go:60 +0x9c\r\n\r\ngoroutine 6 [chan receive]:\r\ngithub.com/tsuru/tsuru/db/storage.retire(0xc20804c100)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/db/storage/storage.go:108 +0x7f\r\ncreated by github.com/tsuru/tsuru/db/storage.init·1\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/db/storage/storage.go:103 +0x61\r\n\r\ngoroutine 9 [syscall]:\r\nos/signal.loop()\r\n        /usr/lib/go/src/os/signal/signal_unix.go:21 +0x1f\r\ncreated by os/signal.init·1\r\n        /usr/lib/go/src/os/signal/signal_unix.go:27 +0x35\r\n\r\ngoroutine 11 [chan receive]:\r\nmain.func·001()\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/tsr/main.go:50 +0x5c\r\ncreated by main.listenSignals\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/cmd/tsr/main.go:53 +0x18e\r\n\r\ngoroutine 18 [select]:\r\ngithub.com/tsuru/tsuru/provision/docker.(*containerHealer).runContainerHealer(0xc20818ffe0)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/provision/docker/healer_container.go:27 +0xfc\r\ncreated by github.com/tsuru/tsuru/provision/docker.(*dockerProvisioner).initDockerCluster\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/tsuru/provision/docker/provisioner.go:125 +0x791\r\n\r\ngoroutine 12 [select]:\r\ngopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0xc208144780)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:379 +0x606\r\ncreated by gopkg.in/mgo%2ev2.newCluster\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:73 +0x1d0\r\n\r\ngoroutine 15 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081a3330, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081a3330, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081a32d0, 0xc208181e60, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc2081c6b78)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e6d0, 0xc208181e60, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e6d0, 0xc208181e60, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818cb60)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 17 [syscall, locked to thread]:\r\nruntime.goexit()\r\n        /usr/lib/go/src/runtime/asm_amd64.s:2232 +0x1\r\n\r\ngoroutine 16 [sleep]:\r\ngopkg.in/mgo%2ev2.(*mongoServer).pinger(0xc20818ca80, 0x1)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:295 +0x169\r\ncreated by gopkg.in/mgo%2ev2.newServer\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:88 +0x196\r\n\r\ngoroutine 19 [select]:\r\ngithub.com/tsuru/docker-cluster/cluster.(*Cluster).runActiveMonitoring(0xc208055920, 0xb2d05e00)\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/docker-cluster/cluster/cluster.go:280 +0x4c6\r\ncreated by github.com/tsuru/docker-cluster/cluster.(*Cluster).StartActiveMonitoring\r\n        /build/buildd/tsuru-server-0.11.0/src/github.com/tsuru/docker-cluster/cluster/cluster.go:215 +0x79\r\n\r\ngoroutine 20 [select]:\r\ngopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0xc208144960)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:379 +0x606\r\ncreated by gopkg.in/mgo%2ev2.newCluster\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:73 +0x1d0\r\n\r\ngoroutine 50 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0d80, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0d80, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d0d20, 0xc2081cbad0, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc2081c6c90)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e1b0, 0xc2081cbad0, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e1b0, 0xc2081cbad0, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818c380)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 24 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081a3aa0, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081a3aa0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081a3a40, 0xc2081cabd0, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc2081f27e8)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e768, 0xc2081cabd0, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e768, 0xc2081cabd0, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818d260)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 23 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081a3790, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081a3790, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081a3730, 0xc2081ca840, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc2081c6c48)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e750, 0xc2081ca840, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e750, 0xc2081ca840, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818cfc0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 79 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc20815ca00, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc20815ca00, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc20815c9a0, 0xc208297440, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc2081f2938)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e228, 0xc208297440, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e228, 0xc208297440, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818c540)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 72 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc208165090, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc208165090, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc208165030, 0xc20822e000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc2082a7448)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e9d8, 0xc20822e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.(*liveSwitchReader).Read(0xc208191e48, 0xc20822e000, 0x1000, 0x1000, 0x2, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/server.go:214 +0xab\r\nio.(*LimitedReader).Read(0xc208249cc0, 0xc20822e000, 0x1000, 0x1000, 0x2, 0x0, 0x0)\r\n        /usr/lib/go/src/io/io.go:408 +0xce\r\nbufio.(*Reader).fill(0xc208054de0)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).ReadSlice(0xc208054de0, 0xc20824fb0a, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:295 +0x257\r\nbufio.(*Reader).ReadLine(0xc208054de0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:324 +0x62\r\nnet/textproto.(*Reader).readLineSlice(0xc208239530, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/textproto/reader.go:55 +0x9e\r\nnet/textproto.(*Reader).ReadLine(0xc208239530, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/textproto/reader.go:36 +0x4f\r\nnet/http.ReadRequest(0xc208054de0, 0xc208299380, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/request.go:598 +0xcb\r\nnet/http.(*conn).readRequest(0xc208191e00, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/server.go:586 +0x26f\r\nnet/http.(*conn).serve(0xc208191e00)\r\n        /usr/lib/go/src/net/http/server.go:1162 +0x69e\r\ncreated by net/http.(*Server).Serve\r\n        /usr/lib/go/src/net/http/server.go:1751 +0x35e\r\n\r\ngoroutine 65 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d1b10, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d1b10, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d1ab0, 0xc208205000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc2082163c8)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e440, 0xc208205000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e440, 0xc20807d658, 0xc208205000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081094e0, 0xc208205000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc208101c80)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc208101c80, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807d600)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 40 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0140, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0140, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d00e0, 0xc208199000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc2081f3728)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e088, 0xc208199000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e088, 0xc20807d238, 0xc208199000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081c46a0, 0xc208199000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2081d2b40)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2081d2b40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807d1e0)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 44 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0370, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0370, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d0310, 0xc2081ca630, 0x24, 0x24, 0x0, 0x7f759b441e50, 0xc20807b5f0)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e0a0, 0xc2081ca630, 0x24, 0x24, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\ngopkg.in/mgo%2ev2.fill(0x7f759b448648, 0xc20804e0a0, 0xc2081ca630, 0x24, 0x24, 0x0, 0x0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:501 +0x75\r\ngopkg.in/mgo%2ev2.(*mongoSocket).readLoop(0xc20818c1c0)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:518 +0x126\r\ncreated by gopkg.in/mgo%2ev2.newSocket\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/socket.go:165 +0x3d3\r\n\r\ngoroutine 42 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0060, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0060, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d0000, 0xc208161000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc2081f3408)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e098, 0xc208161000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e098, 0xc20807d188, 0xc208161000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081c4700, 0xc208161000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2081d2ba0)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2081d2ba0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807d130)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 38 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0450, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0450, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d03f0, 0xc208127000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc2081f3178)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e070, 0xc208127000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e070, 0xc20807d0d8, 0xc208127000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081c45e0, 0xc208127000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2081d2a20)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2081d2a20, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807d080)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 43 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807d130)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 41 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807d1e0)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 34 [select]:\r\ngopkg.in/mgo%2ev2.(*mongoCluster).syncServersLoop(0xc208144c30)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:379 +0x606\r\ncreated by gopkg.in/mgo%2ev2.newCluster\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/cluster.go:73 +0x1d0\r\n\r\ngoroutine 61 [select]:\r\ngopkg.in/tylerb/graceful%2ev1.(*Server).manageConnections(0xc2081d3f80, 0xc208100360, 0xc208100480, 0xc208100660, 0xc208100720)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:243 +0x3da\r\ncreated by gopkg.in/tylerb/graceful%2ev1.(*Server).Serve\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:193 +0x2f9\r\n\r\ngoroutine 39 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807d080)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 37 [sleep]:\r\ngopkg.in/mgo%2ev2.(*mongoServer).pinger(0xc20818d180, 0x1)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:295 +0x169\r\ncreated by gopkg.in/mgo%2ev2.newServer\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:88 +0x196\r\n\r\ngoroutine 47 [sleep]:\r\ngopkg.in/mgo%2ev2.(*mongoServer).pinger(0xc20818c0e0, 0x1)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:295 +0x169\r\ncreated by gopkg.in/mgo%2ev2.newServer\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/mgo.v2/server.go:88 +0x196\r\n\r\ngoroutine 48 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d0a70, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d0a70, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d0a10, 0xc208141000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc208217c20)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e148, 0xc208141000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e148, 0xc20807cf78, 0xc208141000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2081c52e0, 0xc208141000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2081d3140)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2081d3140, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807cf20)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 49 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807cf20)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 62 [chan receive]:\r\ngopkg.in/tylerb/graceful%2ev1.(*Server).handleInterrupt(0xc2081d3f80, 0x7f759b448f50, 0xc20804e390)\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:268 +0x41\r\ncreated by gopkg.in/tylerb/graceful%2ev1.(*Server).Serve\r\n        /build/buildd/tsuru-server-0.11.0/src/gopkg.in/tylerb/graceful.v1/graceful.go:203 +0x505\r\n\r\ngoroutine 66 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807d600)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\n\r\ngoroutine 69 [IO wait]:\r\nnet.(*pollDesc).Wait(0xc2081d1fe0, 0x72, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:84 +0x47\r\nnet.(*pollDesc).WaitRead(0xc2081d1fe0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/fd_poll_runtime.go:89 +0x43\r\nnet.(*netFD).Read(0xc2081d1f80, 0xc208218000, 0x1000, 0x1000, 0x0, 0x7f759b441e50, 0xc208217408)\r\n        /usr/lib/go/src/net/fd_unix.go:242 +0x40f\r\nnet.(*conn).Read(0xc20804e4b0, 0xc208218000, 0x1000, 0x1000, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/net/net.go:121 +0xdc\r\nnet/http.noteEOFReader.Read(0x7f759b4489e8, 0xc20804e4b0, 0xc20807d708, 0xc208218000, 0x1000, 0x1000, 0x9c6760, 0x0, 0x0)\r\n        /usr/lib/go/src/net/http/transport.go:1270 +0x6e\r\nnet/http.(*noteEOFReader).Read(0xc2080f9800, 0xc208218000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)\r\n        <autogenerated>:125 +0xd4\r\nbufio.(*Reader).fill(0xc2080f4b40)\r\n        /usr/lib/go/src/bufio/bufio.go:97 +0x1ce\r\nbufio.(*Reader).Peek(0xc2080f4b40, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /usr/lib/go/src/bufio/bufio.go:132 +0xf0\r\nnet/http.(*persistConn).readLoop(0xc20807d6b0)\r\n        /usr/lib/go/src/net/http/transport.go:842 +0xa4\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:660 +0xc9f\r\n\r\ngoroutine 70 [select]:\r\nnet/http.(*persistConn).writeLoop(0xc20807d6b0)\r\n        /usr/lib/go/src/net/http/transport.go:945 +0x41d\r\ncreated by net/http.(*Transport).dialConn\r\n        /usr/lib/go/src/net/http/transport.go:661 +0xcbc\r\nOpening config file: /etc/tsuru/tsuru.conf\r\n"},"comment":{"url":"https://api.github.com/repos/tsuru/tsuru/issues/comments/105057245","html_url":"https://github.com/tsuru/tsuru/issues/1204#issuecomment-105057245","issue_url":"https://api.github.com/repos/tsuru/tsuru/issues/1204","id":105057245,"user":{"login":"vmalaga","id":500904,"avatar_url":"https://avatars.githubusercontent.com/u/500904?v=3","gravatar_id":"","url":"https://api.github.com/users/vmalaga","html_url":"https://github.com/vmalaga","followers_url":"https://api.github.com/users/vmalaga/followers","following_url":"https://api.github.com/users/vmalaga/following{/other_user}","gists_url":"https://api.github.com/users/vmalaga/gists{/gist_id}","starred_url":"https://api.github.com/users/vmalaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmalaga/subscriptions","organizations_url":"https://api.github.com/users/vmalaga/orgs","repos_url":"https://api.github.com/users/vmalaga/repos","events_url":"https://api.github.com/users/vmalaga/events{/privacy}","received_events_url":"https://api.github.com/users/vmalaga/received_events","type":"User","site_admin":false},"created_at":"2015-05-24T19:53:53Z","updated_at":"2015-05-24T19:53:53Z","body":"@cezarsa you're right, with the segregate scheduler there is not any problem.\r\nok I use segregate from now.\r\n\r\nthanks"}}