Julia v1.10.3 cannot locate repository GitError(Code:ENOTFOUND, Class:Repository, could not find repository from '.../.julia/clones/10051337927520772488')

Hi all, fearing that this could potentially be a duplicate see here I am running into a similar error but I believe the .cache directory may not exist anymore? I cannot located it in my .julia directory. But I am getting a similiar error when trying to instantiate my environment.

ERROR: GitError(Code:ENOTFOUND, Class:Repository, could not find repository from '/exports/eddie/scratch/s2439277/.julia/clones/10051337927520772488')
Stacktrace:
  [1] macro expansion
    @ /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/LibGit2/src/error.jl:112 [inlined]
  [2] LibGit2.GitRepo(path::String)
    @ LibGit2 /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/LibGit2/src/repository.jl:11
  [3] #ensure_clone#2
    @ /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:72 [inlined]
  [4] instantiate(ctx::Pkg.Types.Context; manifest::Nothing, update_registry::Bool, verbose::Bool, platform::Base.BinaryPlatforms.Platform, allow_build::Bool, allow_autoprecomp::Bool, kwargs::@Kwargs{})
    @ Pkg.API /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:1853
  [5] instantiate
    @ /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:1773 [inlined]
  [6] instantiate(; kwargs::@Kwargs{})
    @ Pkg.API /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/API.jl:1772
  [7] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/REPLMode/REPLMode.jl:409
  [8] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/REPLMode/REPLMode.jl:390
  [9] do_cmd
    @ /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/REPLMode/REPLMode.jl:380 [inlined]
 [10] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/Pkg/src/REPLMode/REPLMode.jl:557
 [11] #invokelatest#2
    @ ./essentials.jl:892 [inlined]
 [12] invokelatest
    @ ./essentials.jl:889 [inlined]
 [13] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/LineEdit.jl:2656
 [14] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:1312
 [15] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL /exports/eddie3_homes_local/s2439277/.julia/juliaup/julia-1.10.3+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:386 ```

Move the clones directory to clones_backup. If all is well after this you can remove the clones_backup directory.

1 Like