Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libgit2 has problems cloning on NFS mounts #1247

Open
sbromberger opened this issue Jul 5, 2019 · 5 comments
Open

Libgit2 has problems cloning on NFS mounts #1247

sbromberger opened this issue Jul 5, 2019 · 5 comments

Comments

@sbromberger
Copy link

Using dev when home directory is an NFS mount results in the following error:

   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.2.0-rc1.0 (2019-05-30)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(v1.2) pkg> dev LightGraphs
  Updating registry at `~/.julia/registries/General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: Some registries failed to update:
│     — /nfs/auto/home/seth/.julia/registries/General — failed to fetch from repo
└ @ Pkg.Types /buildworker/worker/package_linuxarmv7l/build/usr/share/julia/stdlib/v1.2/Pkg/src/Types.jl:1171
   Cloning git-repo `https://github.com/JuliaGraphs/LightGraphs.jl.git`
ERROR: failed to clone from https://github.com/JuliaGraphs/LightGraphs.jl.git, error: GitError(Code:ERROR, Class:OS, failed to truncate pack file '/nfs/auto/home/seth/.julia/clones/2040551779_full/.git/objects/pack/pack_git2_mBsfFV': Permission denied)

I have r/w permissions for /nfs/auto/home/seth and have confirmed there is no concurrent access occurring. Not sure how to go about troubleshooting this but it's reproducible here so please let me know what other information I can provide.

julia> versioninfo()
Julia Version 1.2.0-rc1.0
Commit 7097799cf1 (2019-05-30 02:22 UTC)
Platform Info:
  OS: Linux (arm-linux-gnueabihf)
  CPU: ARMv7 Processor rev 3 (v7l)
  WORD_SIZE: 32
  LIBM: libm
  LLVM: libLLVM-6.0.1 (ORCJIT, cortex-a72)
@sbromberger
Copy link
Author

ref: rust-lang/cargo#6652

@DilumAluthge
Copy link
Member

Is this only happening on NFS mounts?

@sbromberger
Copy link
Author

as far as I can tell. I can't reproduce it with a user that is using a local fs.

@thomasjm
Copy link

I'm seeing this as well, using NFS in a different context: in a Kubernetes pod that has a mounted volume provisioned by the AWS EFS provisioner. Seems to be the same problem since EFS uses the NFS protocol.

There's a longstanding issue in libgit2 that might be the root cause: libgit2/git2go#194. Seems like certain filesystems behave slightly differently and cause problems like this.

@pfitzseb
Copy link
Member

Did anyone give the suggested patch a go?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants