{"action":"created","issue":{"url":"https://api.github.com/repos/crowbar/crowbar-core/issues/582","repository_url":"https://api.github.com/repos/crowbar/crowbar-core","labels_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/582/labels{/name}","comments_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/582/comments","events_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/582/events","html_url":"https://github.com/crowbar/crowbar-core/pull/582","id":169165871,"number":582,"title":"Force reconnect to the database","user":{"login":"rsalevsky","id":4128547,"avatar_url":"https://avatars.githubusercontent.com/u/4128547?v=3","gravatar_id":"","url":"https://api.github.com/users/rsalevsky","html_url":"https://github.com/rsalevsky","followers_url":"https://api.github.com/users/rsalevsky/followers","following_url":"https://api.github.com/users/rsalevsky/following{/other_user}","gists_url":"https://api.github.com/users/rsalevsky/gists{/gist_id}","starred_url":"https://api.github.com/users/rsalevsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsalevsky/subscriptions","organizations_url":"https://api.github.com/users/rsalevsky/orgs","repos_url":"https://api.github.com/users/rsalevsky/repos","events_url":"https://api.github.com/users/rsalevsky/events{/privacy}","received_events_url":"https://api.github.com/users/rsalevsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crowbar/crowbar-core/labels/do%20not%20merge%20yet","name":"do not merge yet","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","url":"https://api.github.com/users/vuntz","html_url":"https://github.com/vuntz","followers_url":"https://api.github.com/users/vuntz/followers","following_url":"https://api.github.com/users/vuntz/following{/other_user}","gists_url":"https://api.github.com/users/vuntz/gists{/gist_id}","starred_url":"https://api.github.com/users/vuntz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuntz/subscriptions","organizations_url":"https://api.github.com/users/vuntz/orgs","repos_url":"https://api.github.com/users/vuntz/repos","events_url":"https://api.github.com/users/vuntz/events{/privacy}","received_events_url":"https://api.github.com/users/vuntz/received_events","type":"User","site_admin":false},"assignees":[{"login":"vuntz","id":1758783,"avatar_url":"https://avatars.githubusercontent.com/u/1758783?v=3","gravatar_id":"","url":"https://api.github.com/users/vuntz","html_url":"https://github.com/vuntz","followers_url":"https://api.github.com/users/vuntz/followers","following_url":"https://api.github.com/users/vuntz/following{/other_user}","gists_url":"https://api.github.com/users/vuntz/gists{/gist_id}","starred_url":"https://api.github.com/users/vuntz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuntz/subscriptions","organizations_url":"https://api.github.com/users/vuntz/orgs","repos_url":"https://api.github.com/users/vuntz/repos","events_url":"https://api.github.com/users/vuntz/events{/privacy}","received_events_url":"https://api.github.com/users/vuntz/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-08-03T15:48:39Z","updated_at":"2016-08-24T08:09:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/crowbar/crowbar-core/pulls/582","html_url":"https://github.com/crowbar/crowbar-core/pull/582","diff_url":"https://github.com/crowbar/crowbar-core/pull/582.diff","patch_url":"https://github.com/crowbar/crowbar-core/pull/582.patch"},"body":"In case the database connection gets cut, ActiveRecord will not recognize\r\nthat the connection is broken until the next access attempt. In this case\r\nit will raise the StatementInvalid error.\r\nIn our case this happens when we apply a proposal e.g. provisioner on\r\nthe admin node.\r\n\r\nFor more information please check:\r\nhttps://github.com/cantino/huginn/issues/1116\r\nhttps://github.com/rails/rails/issues/12867\r\n\r\nThe full error message is:\r\n`ActiveRecord::StatementInvalid: PG::ConnectionBad: PQconsumeInput()\r\nserver closed the connection unexpectedly`"},"comment":{"url":"https://api.github.com/repos/crowbar/crowbar-core/issues/comments/241988920","html_url":"https://github.com/crowbar/crowbar-core/pull/582#issuecomment-241988920","issue_url":"https://api.github.com/repos/crowbar/crowbar-core/issues/582","id":241988920,"user":{"login":"MaximilianMeister","id":5364817,"avatar_url":"https://avatars.githubusercontent.com/u/5364817?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximilianMeister","html_url":"https://github.com/MaximilianMeister","followers_url":"https://api.github.com/users/MaximilianMeister/followers","following_url":"https://api.github.com/users/MaximilianMeister/following{/other_user}","gists_url":"https://api.github.com/users/MaximilianMeister/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximilianMeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximilianMeister/subscriptions","organizations_url":"https://api.github.com/users/MaximilianMeister/orgs","repos_url":"https://api.github.com/users/MaximilianMeister/repos","events_url":"https://api.github.com/users/MaximilianMeister/events{/privacy}","received_events_url":"https://api.github.com/users/MaximilianMeister/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T08:09:24Z","updated_at":"2016-08-24T08:09:24Z","body":"> I've added this PR to crowbar/crowbar-ha#137,\r\n\r\n@jsuchome you don't need to add the patch from github, it is in the package currently"}}
{"actor":{"display_login":"MaximilianMeister"}}