Mirroring and LFS problem

#1

We are testing GItea with LSF option in our head office (Windows server). Everything works fine locally. People can clone the test repository to their workstations (Windows), checkout, pull, push, etc. LFS works fine.

We installed a second instance of Gitea in our remote branch and mirrored the head office repository to that instance with standard Gitea “migration to mirror” procedure. Performed manually (as advised on the migration page) “git lfs fetch --all”, “git lfs push --all” commands. Everything looked fine so far. The mirror repository in the branch office successfully got LFS objects.

The problem begins when user tries to clone this mirror repository to the workstation.
It goes fine except getting LFS objects.

“git lfs checkout” gives the message:

Errors logged to G:\My_Repo\My_Test.git\lfs\logs\20190406T005458.8673572.log
Use git lfs logs last to view the log.
Skipped checkout for “The Phoenix Project_ A Novel About IT.pdf”, content not local. Use fetch to download.

“git lfs fetch” or “git lfs pull” takes a couple of minutes pause and then gives multiple errors (one per expected lfs object):

image

LFS: Repository or object not found: http ://gitm.jvl.ca:3000/gitadmin/My_Test.git/info/lfs/objects/e88bbc92294cfbdc5d82e037c79fd810e2520ec6b92af17cefea2654248d08bf
Check that it exists and that you have proper access to it.

“git lfs env” on the workstation gives the normal picture of the enabled LFS environment:

super@BKUP MINGW64 /g/My_Repo/My_Test (master)
$ git lfs env
git-lfs/2.6.1 (GitHub; windows amd64; go 1.11.1; git dc072c3e)
git version 2.20.1.windows.1

Endpoint=http://gitm.jvl.ca:3000/gitadmin/My_Test.git/info/lfs (auth=basic)
LocalWorkingDir=G:\My_Repo\My_Test
LocalGitDir=G:\My_Repo\My_Test.git
LocalGitStorageDir=G:\My_Repo\My_Test.git
LocalMediaDir=G:\My_Repo\My_Test.git\lfs\objects
LocalReferenceDirs=
TempDir=G:\My_Repo\My_Test.git\lfs\tmp
ConcurrentTransfers=3
TusTransfers=false
BasicTransfersOnly=false
SkipDownloadErrors=false
FetchRecentAlways=false
FetchRecentRefsDays=7
FetchRecentCommitsDays=0
FetchRecentRefsIncludeRemotes=true
PruneOffsetDays=3
PruneVerifyRemoteAlways=false
PruneRemoteName=origin
LfsStorageDir=G:\My_Repo\My_Test.git\lfs
AccessDownload=basic
AccessUpload=basic
DownloadTransfers=basic
UploadTransfers=basic
GIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core
GIT_LFS_PATH=C:\Program Files\Git LFS
GIT_SSH=C:\Program Files (x86)\GitExtensions\PuTTY\plink.exe
git config filter.lfs.process = “git-lfs filter-process”
git config filter.lfs.smudge = “git-lfs smudge – %f”
git config filter.lfs.clean = “git-lfs clean – %f”

Could anybody advise on the matter. We got stuck at this point.

0 Likes