{"action":"created","issue":{"url":"https://api.github.com/repos/flynn/flynn/issues/4011","repository_url":"https://api.github.com/repos/flynn/flynn","labels_url":"https://api.github.com/repos/flynn/flynn/issues/4011/labels{/name}","comments_url":"https://api.github.com/repos/flynn/flynn/issues/4011/comments","events_url":"https://api.github.com/repos/flynn/flynn/issues/4011/events","html_url":"https://github.com/flynn/flynn/issues/4011","id":216908606,"number":4011,"title":"Migrated application has a stale route","user":{"login":"temujin9","id":627414,"avatar_url":"https://avatars2.githubusercontent.com/u/627414?v=3","gravatar_id":"","url":"https://api.github.com/users/temujin9","html_url":"https://github.com/temujin9","followers_url":"https://api.github.com/users/temujin9/followers","following_url":"https://api.github.com/users/temujin9/following{/other_user}","gists_url":"https://api.github.com/users/temujin9/gists{/gist_id}","starred_url":"https://api.github.com/users/temujin9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temujin9/subscriptions","organizations_url":"https://api.github.com/users/temujin9/orgs","repos_url":"https://api.github.com/users/temujin9/repos","events_url":"https://api.github.com/users/temujin9/events{/privacy}","received_events_url":"https://api.github.com/users/temujin9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-03-24T21:24:33Z","updated_at":"2017-03-25T00:34:50Z","closed_at":null,"body":"I recently did a system-wide export / import pass. After it was done, an odd user complaint popped up:\r\n\r\n```\r\nflynn -c prod-us-east-1 -a feedcheck delete -y\r\nDeleted feedcheck (removed 1 routes, deleted 1 releases, deprovisioned 0 resources)\r\n\r\n[ . . . push happens inside orchestration . . . ]\r\n\r\npanic: conflict: Duplicate route\r\n\r\nCommand [flynn -c prod-us-east-1 -a feedcheck route add http feedcheck.flynn-prod-us-east-1-internal.nexus.bazaarvoice.com] failed: exit status 1\r\n```\r\n\r\nSeveral rounds of debugging, including deleting and repushing from scratch, didn't resolve the issue.\r\n\r\nI've collected https://bazaarvoice.box.com/s/4qpa1jwlkuobogj4i9o6tv7k1vmi9evw from the cluster. Ping here soon if you want further testing.\r\n"},"comment":{"url":"https://api.github.com/repos/flynn/flynn/issues/comments/289174003","html_url":"https://github.com/flynn/flynn/issues/4011#issuecomment-289174003","issue_url":"https://api.github.com/repos/flynn/flynn/issues/4011","id":289174003,"user":{"login":"lmars","id":488515,"avatar_url":"https://avatars1.githubusercontent.com/u/488515?v=3","gravatar_id":"","url":"https://api.github.com/users/lmars","html_url":"https://github.com/lmars","followers_url":"https://api.github.com/users/lmars/followers","following_url":"https://api.github.com/users/lmars/following{/other_user}","gists_url":"https://api.github.com/users/lmars/gists{/gist_id}","starred_url":"https://api.github.com/users/lmars/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmars/subscriptions","organizations_url":"https://api.github.com/users/lmars/orgs","repos_url":"https://api.github.com/users/lmars/repos","events_url":"https://api.github.com/users/lmars/events{/privacy}","received_events_url":"https://api.github.com/users/lmars/received_events","type":"User","site_admin":false},"created_at":"2017-03-25T00:34:50Z","updated_at":"2017-03-25T00:34:50Z","body":"So it is unclear how those routes have stuck around (perhaps a previous app deletion failed halfway through), but you can just delete them (some of them are probably already deleted):\r\n\r\n```\r\n$ flynn -a router pg psql -- -c \"UPDATE http_routes SET deleted_at = now() WHERE parent_ref IN ('controller/apps/5309a585-30da-48e2-9e5e-de1f1dbaef4a', 'controller/apps/d36fe582-56b7-4fa7-84c4-cd2665ee49b5')\"\r\n```"}}
{"actor":{"display_login":"lmars"}}