{"action":"created","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3458","labels_url":"https://api.github.com/repos/deis/deis/issues/3458/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3458/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3458/events","html_url":"https://github.com/deis/deis/issues/3458","id":67754146,"number":3458,"title":"/home/git/project.git/hooks/pre-receive: No such file or directory","user":{"login":"onbjerg","id":8862627,"avatar_url":"https://avatars.githubusercontent.com/u/8862627?v=3","gravatar_id":"","url":"https://api.github.com/users/onbjerg","html_url":"https://github.com/onbjerg","followers_url":"https://api.github.com/users/onbjerg/followers","following_url":"https://api.github.com/users/onbjerg/following{/other_user}","gists_url":"https://api.github.com/users/onbjerg/gists{/gist_id}","starred_url":"https://api.github.com/users/onbjerg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onbjerg/subscriptions","organizations_url":"https://api.github.com/users/onbjerg/orgs","repos_url":"https://api.github.com/users/onbjerg/repos","events_url":"https://api.github.com/users/onbjerg/events{/privacy}","received_events_url":"https://api.github.com/users/onbjerg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/deis/deis/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/deis/deis/labels/builder","name":"builder","color":"207de5"},{"url":"https://api.github.com/repos/deis/deis/labels/production-team","name":"production-team","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"krancour","id":1821014,"avatar_url":"https://avatars.githubusercontent.com/u/1821014?v=3","gravatar_id":"","url":"https://api.github.com/users/krancour","html_url":"https://github.com/krancour","followers_url":"https://api.github.com/users/krancour/followers","following_url":"https://api.github.com/users/krancour/following{/other_user}","gists_url":"https://api.github.com/users/krancour/gists{/gist_id}","starred_url":"https://api.github.com/users/krancour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krancour/subscriptions","organizations_url":"https://api.github.com/users/krancour/orgs","repos_url":"https://api.github.com/users/krancour/repos","events_url":"https://api.github.com/users/krancour/events{/privacy}","received_events_url":"https://api.github.com/users/krancour/received_events","type":"User","site_admin":false},"milestone":null,"comments":58,"created_at":"2015-04-11T08:11:24Z","updated_at":"2015-10-29T03:03:51Z","closed_at":null,"body":"Uh. I tried to push a new version to Deis. Mid-push my computer shut down, and when I returned I could not push again because a push was in progress.\r\n\r\nI read in the issue tracker that you could a) delete the lock file or b) restart the builder. I didn't find any lockfile, so I restarted the builder.\r\n\r\nNow it seems like nothing works.\r\n\r\nI get this error when pushing\r\n\r\n```\r\nonbjerg at AIR in ~/Projects/wallz on develop\r\n$ git push deis develop:master\r\n/usr/local/bin/gitreceive: line 33: /home/git/wallz.git/hooks/pre-receive: No such file or directory\r\nfatal: Could not read from remote repository.\r\n\r\nPlease make sure you have the correct access rights\r\nand the repository exists.```"},"comment":{"url":"https://api.github.com/repos/deis/deis/issues/comments/152060721","html_url":"https://github.com/deis/deis/issues/3458#issuecomment-152060721","issue_url":"https://api.github.com/repos/deis/deis/issues/3458","id":152060721,"user":{"login":"rvadim","id":7434399,"avatar_url":"https://avatars.githubusercontent.com/u/7434399?v=3","gravatar_id":"","url":"https://api.github.com/users/rvadim","html_url":"https://github.com/rvadim","followers_url":"https://api.github.com/users/rvadim/followers","following_url":"https://api.github.com/users/rvadim/following{/other_user}","gists_url":"https://api.github.com/users/rvadim/gists{/gist_id}","starred_url":"https://api.github.com/users/rvadim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvadim/subscriptions","organizations_url":"https://api.github.com/users/rvadim/orgs","repos_url":"https://api.github.com/users/rvadim/repos","events_url":"https://api.github.com/users/rvadim/events{/privacy}","received_events_url":"https://api.github.com/users/rvadim/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T03:03:51Z","updated_at":"2015-10-29T03:03:51Z","body":"I spent ~16 hours trying identify what process create catalog app.git/cache and app.git/build without success. Maybe this is bug of overlayfs or something near.\r\nIf add ls -la on /home/git/ catalog in builder/rootfs/bin/boot, it show only .ssh catalog. At the builder started, there are many /home/git/app.git catalogs with only empty build and cache catalog. On git hook, go code in git/git.go try to detect existence of /home/git/app.git catalog(it's exist), and skip git init and other functions, next builder (sh file) fails with /home/git/app.git not a git repo.\r\n\r\nI was create a working code which handle this situation by detecting some files in git repo, and if its not exists, remove catalog and create it again.\r\n```\r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: [info] Found user rvadim for fingerprint \r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: [warning] Path '/home/git/forecast.git' have not config file, remove it and recreate.\r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: [info] Creating new directory at /home/git/forecast.git\r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: [info] git-shell -c git-receive-pack 'forecast.git'\r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: Waiting for git-receive to run.\r\nOct 29 02:48:49 dev-node-3.novalocal sh[12086]: Waiting for deploy. \r\n```\r\nToday I will start testing this on our dev cluster with 30+ projects, and try to create PR soon. "}}