{"action":"created","issue":{"url":"https://api.github.com/repos/phacility/phabricator/issues/799","labels_url":"https://api.github.com/repos/phacility/phabricator/issues/799/labels{/name}","comments_url":"https://api.github.com/repos/phacility/phabricator/issues/799/comments","events_url":"https://api.github.com/repos/phacility/phabricator/issues/799/events","html_url":"https://github.com/phacility/phabricator/issues/799","id":56321834,"number":799,"title":"commit_hook.php hangs up","user":{"login":"RuralHunter","id":723880,"avatar_url":"https://avatars.githubusercontent.com/u/723880?v=3","gravatar_id":"","url":"https://api.github.com/users/RuralHunter","html_url":"https://github.com/RuralHunter","followers_url":"https://api.github.com/users/RuralHunter/followers","following_url":"https://api.github.com/users/RuralHunter/following{/other_user}","gists_url":"https://api.github.com/users/RuralHunter/gists{/gist_id}","starred_url":"https://api.github.com/users/RuralHunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuralHunter/subscriptions","organizations_url":"https://api.github.com/users/RuralHunter/orgs","repos_url":"https://api.github.com/users/RuralHunter/repos","events_url":"https://api.github.com/users/RuralHunter/events{/privacy}","received_events_url":"https://api.github.com/users/RuralHunter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-03T01:44:19Z","updated_at":"2015-02-03T07:04:31Z","closed_at":null,"body":"I updated phabricator to the latest code and found the newest commit_hook.php causes all commits hanging up and finally reports \"Gateway timeout\".\r\nI found many commit-hook processes were hanging up like this:\r\n1014     31633 31631 62 13:11 ?        00:00:55 /usr/bin/env TERM=dumb php /var/www/phabricator/bin/commit-hook FS pretxnchangegroup\r\nThis is the log in the error.log of nginx when client sided received \"Gateway timeout\":\r\n2015/02/02 11:11:34 [error] 1115#0: *1679 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 116.226.*.*, server: phaserver, request: \"POST /diffu\r\nsion/FS/fs?cmd=unbundle HTTP/1.1\", upstream: \"fastcgi://127.0.0.1:9000\", host: \"phaserver:8000\"\r\n\r\nI also checked the log of php5-fpm and phd and there was nothing. So I reviewed the change history of https://github.com/phacility/phabricator/commits/master/scripts/repository/commit_hook.php and found there were 2 changes these days. So I rolled  backup to the version(Jan 10, 2014) I used before the update of today and the problem went away.\r\nI believe one of the latest 2 changes(Jan 28 and Jan 29, 2015) caused the problem.\r\n"},"comment":{"url":"https://api.github.com/repos/phacility/phabricator/issues/comments/72604352","html_url":"https://github.com/phacility/phabricator/issues/799#issuecomment-72604352","issue_url":"https://api.github.com/repos/phacility/phabricator/issues/799","id":72604352,"user":{"login":"RuralHunter","id":723880,"avatar_url":"https://avatars.githubusercontent.com/u/723880?v=3","gravatar_id":"","url":"https://api.github.com/users/RuralHunter","html_url":"https://github.com/RuralHunter","followers_url":"https://api.github.com/users/RuralHunter/followers","following_url":"https://api.github.com/users/RuralHunter/following{/other_user}","gists_url":"https://api.github.com/users/RuralHunter/gists{/gist_id}","starred_url":"https://api.github.com/users/RuralHunter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuralHunter/subscriptions","organizations_url":"https://api.github.com/users/RuralHunter/orgs","repos_url":"https://api.github.com/users/RuralHunter/repos","events_url":"https://api.github.com/users/RuralHunter/events{/privacy}","received_events_url":"https://api.github.com/users/RuralHunter/received_events","type":"User","site_admin":false},"created_at":"2015-02-03T07:04:31Z","updated_at":"2015-02-03T07:04:31Z","body":"Yes, it fixed the problem. Thanks! I will try to figuer it out. "}}