{"action":"created","issue":{"url":"https://api.github.com/repos/heroku/heroku/issues/1462","labels_url":"https://api.github.com/repos/heroku/heroku/issues/1462/labels{/name}","comments_url":"https://api.github.com/repos/heroku/heroku/issues/1462/comments","events_url":"https://api.github.com/repos/heroku/heroku/issues/1462/events","html_url":"https://github.com/heroku/heroku/issues/1462","id":63097540,"number":1462,"title":"Hung on forking an application","user":{"login":"Taytay","id":1330693,"avatar_url":"https://avatars.githubusercontent.com/u/1330693?v=3","gravatar_id":"","url":"https://api.github.com/users/Taytay","html_url":"https://github.com/Taytay","followers_url":"https://api.github.com/users/Taytay/followers","following_url":"https://api.github.com/users/Taytay/following{/other_user}","gists_url":"https://api.github.com/users/Taytay/gists{/gist_id}","starred_url":"https://api.github.com/users/Taytay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taytay/subscriptions","organizations_url":"https://api.github.com/users/Taytay/orgs","repos_url":"https://api.github.com/users/Taytay/repos","events_url":"https://api.github.com/users/Taytay/events{/privacy}","received_events_url":"https://api.github.com/users/Taytay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-19T21:45:55Z","updated_at":"2015-03-20T10:12:10Z","closed_at":null,"body":"Our build machine regularly forks applications, but as of today or yesterday it began to hang. \r\n\r\nHere is the command we are now executing (this is running on Ubuntu):\r\n`heroku fork --copy-pg-data --app base-app target-app`\r\n\r\nIt appears to just sit there afterwards - no output. I believe this was introduced at the same time the --copy-pg-data flag was introduced. The first failure I saw was the first time I saw it instruct me to include `--copy-pg-data` to include a copy of the database. But even after adding that, it still hangs. "},"comment":{"url":"https://api.github.com/repos/heroku/heroku/issues/comments/83973213","html_url":"https://github.com/heroku/heroku/issues/1462#issuecomment-83973213","issue_url":"https://api.github.com/repos/heroku/heroku/issues/1462","id":83973213,"user":{"login":"Taytay","id":1330693,"avatar_url":"https://avatars.githubusercontent.com/u/1330693?v=3","gravatar_id":"","url":"https://api.github.com/users/Taytay","html_url":"https://github.com/Taytay","followers_url":"https://api.github.com/users/Taytay/followers","following_url":"https://api.github.com/users/Taytay/following{/other_user}","gists_url":"https://api.github.com/users/Taytay/gists{/gist_id}","starred_url":"https://api.github.com/users/Taytay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taytay/subscriptions","organizations_url":"https://api.github.com/users/Taytay/orgs","repos_url":"https://api.github.com/users/Taytay/repos","events_url":"https://api.github.com/users/Taytay/events{/privacy}","received_events_url":"https://api.github.com/users/Taytay/received_events","type":"User","site_admin":false},"created_at":"2015-03-20T10:12:10Z","updated_at":"2015-03-20T10:12:10Z","body":"I've narrowed down the issue to these lines of the [Heroku fork](https://github.com/heroku/heroku-fork) plugin (I added those console logs)\r\n\r\n```\r\ngetLastRelease: function* (app) {\r\n    console.log('before asking for releases')\r\n    let releases = yield this.heroku.request({\r\n      path: `/apps/${app.name}/releases`,\r\n      headers: { 'Range': 'version ..; order=desc;'}\r\n    });\r\n    console.log('before processing releases')\r\n    let release = _.chain(releases)\r\n    .filter('slug')\r\n    .first()\r\n    .value();\r\n    if (!release) {\r\n      throw new ForkError(`No slug for app ${app.name} was found.\r\nPush some code to ${app.name} before forking it.`);\r\n    }\r\n    return release;\r\n  }\r\n```\r\n\r\nI see the \"before asking for releases\" but nothing else, so I don't think it's returning from that method.\r\nStill debugging to see if it's throwing a silent error internally, or if the request really is hanging.\r\n\r\nP.S. Man, love the new ES6 plugin architecture. The generator syntax makes async code linear and much easier to read. The transition time makes for some bugs, but I bet it will be worth it."}}