{"action":"reopened","issue":{"url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3237","repository_url":"https://api.github.com/repos/git-lfs/git-lfs","labels_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3237/labels{/name}","comments_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3237/comments","events_url":"https://api.github.com/repos/git-lfs/git-lfs/issues/3237/events","html_url":"https://github.com/git-lfs/git-lfs/issues/3237","id":358213625,"node_id":"MDU6SXNzdWUzNTgyMTM2MjU=","number":3237,"title":"Gitlab-based sync process on pre-existing workspace repo with submodules intermittently throws \"Skipping object checkout, Git LFS is not installed.\"","user":{"login":"niasharper","id":43078688,"node_id":"MDQ6VXNlcjQzMDc4Njg4","avatar_url":"https://avatars0.githubusercontent.com/u/43078688?v=4","gravatar_id":"","url":"https://api.github.com/users/niasharper","html_url":"https://github.com/niasharper","followers_url":"https://api.github.com/users/niasharper/followers","following_url":"https://api.github.com/users/niasharper/following{/other_user}","gists_url":"https://api.github.com/users/niasharper/gists{/gist_id}","starred_url":"https://api.github.com/users/niasharper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niasharper/subscriptions","organizations_url":"https://api.github.com/users/niasharper/orgs","repos_url":"https://api.github.com/users/niasharper/repos","events_url":"https://api.github.com/users/niasharper/events{/privacy}","received_events_url":"https://api.github.com/users/niasharper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-09-07T21:14:38Z","updated_at":"2018-09-21T17:28:49Z","closed_at":null,"author_association":"NONE","body":"## Overview\r\n\r\nOur gitlab infrastructure uses a fetch strategy instead of a burn and clone strategy on the workspace.  Gitlab internally has LFS support and submodule support enabled.  With tens of builds per node per day going across our 15-runners build infrastructure, we have been seeing intermittent errors from git lfs spring up approximately once every week or two.\r\n\r\nMost all of our repos are leveraging submodules.  The parent repo is typically not using LFS.  The submodule is LFS-Enabled.\r\n\r\n## Problem/Error Received\r\n\r\nWhen a build node goes into a bad state, the following is consistently seen across sync'd local repos and projects until LFS is re-initialized on the problem node:\r\n```\r\n(Gitlab fetches changes)\r\nFetching changes...\r\n\r\n(Gitlab checks out tree state)\r\nChecking out <SHA> as <Branch Ref>...\r\n\r\n(Gitlab updates/synch)\r\nUpdating/initializing submodules recursively...\r\n\r\n(.gitlab-ci.yml script block)\r\n$ git submodule foreach --recursive git clean -fdx\r\nEntering 'repo/path/to/submodule'\r\n$ git submodule update --init --recursive\r\n$ git lfs pull\r\nSkipping object checkout, Git LFS is not installed.\r\n```\r\n\r\n## Work-Around Solution\r\n\r\nCorrective Work-Around Action:\r\n- Log into each problem build node\r\n- Re-run git lfs install:\r\n```\r\n$ git lfs install\r\nError: Failed to call git rev-parse --git-dir --show-toplevel: \"fatal: not a git repository (or any of the parent directories): .git\\n\"\r\nGit LFS initialized.\r\n```\r\n\r\nFuture gitlab builds on this node will then succeed and sync correctly until the problem occurs again and the \"LFS is not installed\" error is seen in the logs.\r\n\r\n## Expected behavior\r\n\r\nGit LFS should not de-initialize on pre-existing infrastructure.  Git LFS should be stable, reliable, and predictable.\r\n\r\nGit LFS should be able to work with typical submodule workflows\r\n\r\n## Build Infrastructure Details\r\n\r\nBuilds occur on HIgh Sierra build nodes with a concurrency of 2 parallel builds per build node under the same active logged in user.\r\n\r\n### Versions\r\n#### OS X\r\n```\r\n      System Version: macOS 10.13.4 (17E199)\r\n      Kernel Version: Darwin 17.5.0\r\n```\r\n#### Git\r\n```\r\n$ git --version\r\ngit version 2.18.0\r\n$ git-lfs --version\r\ngit-lfs/2.4.2 (GitHub; darwin amd64; go 1.10.2; git 6f4b2e98) \r\n```\r\n\r\n#### Gitlab Runner Version\r\n```\r\n$ gitlab-runner-darwin-amd64 --version\r\nVersion:      10.5.0\r\nGit revision: 80b03db9\r\nGit branch:   10-5-stable\r\nGO version:   go1.8.5\r\nBuilt:        2018-02-22T09:18:39+00:00\r\nOS/Arch:      darwin/amd64\r\n```"}}
{"actor":{"display_login":"niasharper"}}