{"action":"created","issue":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/806","labels_url":"https://api.github.com/repos/rubygems/rubygems/issues/806/labels{/name}","comments_url":"https://api.github.com/repos/rubygems/rubygems/issues/806/comments","events_url":"https://api.github.com/repos/rubygems/rubygems/issues/806/events","html_url":"https://github.com/rubygems/rubygems/issues/806","id":26846244,"number":806,"title":"Use of flock can cause problems on some NFS shares","user":{"login":"dark-panda","id":84783,"avatar_url":"https://avatars.githubusercontent.com/u/84783?v=3","gravatar_id":"","url":"https://api.github.com/users/dark-panda","html_url":"https://github.com/dark-panda","followers_url":"https://api.github.com/users/dark-panda/followers","following_url":"https://api.github.com/users/dark-panda/following{/other_user}","gists_url":"https://api.github.com/users/dark-panda/gists{/gist_id}","starred_url":"https://api.github.com/users/dark-panda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dark-panda/subscriptions","organizations_url":"https://api.github.com/users/dark-panda/orgs","repos_url":"https://api.github.com/users/dark-panda/repos","events_url":"https://api.github.com/users/dark-panda/events{/privacy}","received_events_url":"https://api.github.com/users/dark-panda/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rubygems/rubygems/labels/category%20-%20platform%20issues","name":"category - platform issues","color":"0b02e1"},{"url":"https://api.github.com/repos/rubygems/rubygems/labels/status%20-%20accepted","name":"status - accepted","color":"02d7e1"},{"url":"https://api.github.com/repos/rubygems/rubygems/labels/type%20-%20bug","name":"type - bug","color":"e10c02"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rubygems/rubygems/milestones/1","html_url":"https://github.com/rubygems/rubygems/milestones/Future","labels_url":"https://api.github.com/repos/rubygems/rubygems/milestones/1/labels","id":220002,"number":1,"title":"Future","description":"","creator":{"login":"drbrain","id":9831,"avatar_url":"https://avatars.githubusercontent.com/u/9831?v=3","gravatar_id":"","url":"https://api.github.com/users/drbrain","html_url":"https://github.com/drbrain","followers_url":"https://api.github.com/users/drbrain/followers","following_url":"https://api.github.com/users/drbrain/following{/other_user}","gists_url":"https://api.github.com/users/drbrain/gists{/gist_id}","starred_url":"https://api.github.com/users/drbrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drbrain/subscriptions","organizations_url":"https://api.github.com/users/drbrain/orgs","repos_url":"https://api.github.com/users/drbrain/repos","events_url":"https://api.github.com/users/drbrain/events{/privacy}","received_events_url":"https://api.github.com/users/drbrain/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":19,"state":"open","created_at":"2012-11-28T00:26:52Z","updated_at":"2015-10-05T21:59:26Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2014-02-03T23:11:21Z","updated_at":"2015-10-05T21:59:26Z","closed_at":"2015-10-05T21:59:26Z","body":"I've recently had a problem with installing gems to home directories that have been mounted over NFS on a cluster of linux servers. It seems that `flock` does not work over NFS in some situations, namely on older kernels. The recent calls to `flock` added in the more recent versions of rubygems is thus causing gem installs to hang on some systems where NFS is being used. \r\n\r\nHere's my situation and setup:\r\n\r\n- group of linux servers running CentOS 5, Ruby 2.1.0, linux kernel  2.6.18 with home directories mounted off of a central NFS server.\r\n\r\n- the calls to `flock` in `remote_fetcher.rb` and in `rubygems.rb` hang when used against the file systems mounted via NFS.\r\n\r\nAccording to http://nfs.sourceforge.net/#faq_d10 , some support for NFS was added to flock in kernel 2.6.12, although I'm having no luck with the RHEL version 2.6.18 that CentOS 5 ships with. \r\n\r\nIt might be worth looking into creating separate lock files rather than trying to lock the file itself with `flock`. This would involve creating and detecting the existence of a separate file and not relying on `flock` at all."},"comment":{"url":"https://api.github.com/repos/rubygems/rubygems/issues/comments/145680290","html_url":"https://github.com/rubygems/rubygems/issues/806#issuecomment-145680290","issue_url":"https://api.github.com/repos/rubygems/rubygems/issues/806","id":145680290,"user":{"login":"djberg96","id":78529,"avatar_url":"https://avatars.githubusercontent.com/u/78529?v=3","gravatar_id":"","url":"https://api.github.com/users/djberg96","html_url":"https://github.com/djberg96","followers_url":"https://api.github.com/users/djberg96/followers","following_url":"https://api.github.com/users/djberg96/following{/other_user}","gists_url":"https://api.github.com/users/djberg96/gists{/gist_id}","starred_url":"https://api.github.com/users/djberg96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djberg96/subscriptions","organizations_url":"https://api.github.com/users/djberg96/orgs","repos_url":"https://api.github.com/users/djberg96/repos","events_url":"https://api.github.com/users/djberg96/events{/privacy}","received_events_url":"https://api.github.com/users/djberg96/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T21:59:26Z","updated_at":"2015-10-05T21:59:26Z","body":"Closing, best we can do."}}