{"thread":{"id":"57598","subject":"Potential Bug - GIT/GIT LFS doing dnsquery on an IP address","startedAt":"2022-03-21T23:25:23Z","lastAt":"2022-03-21T23:52:13Z","messageCount":2,"participants":["Hecker, David A","brian m. carlson"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"451822","messageId":"BN8PR20MB28354228F53ACD3680F505E6FB169@BN8PR20MB2835.namprd20.prod.outlook.com","threadId":"57598","inReplyTo":null,"subject":"Potential Bug - GIT/GIT LFS doing dnsquery on an IP address","fromName":"Hecker, David A","fromEmail":"david.hecker@conduent.com","sentAt":"2022-03-21T23:20:25Z","receivedAt":"2022-03-21T23:25:23Z","isPatch":false,"sender":{"key":"david.hecker@conduent.com","avatar":null},"body":"I started the message below with git bugreport so I think I have all the details. (UPPERCASE to highlight; not shouting. 😊)\n\nThanks!\n--Dave Hecker\n\n\n====================================================================================================\nWHAT DID YOU DO BEFORE THE BUG HAPPENED? (STEPS TO REPRODUCE YOUR ISSUE)\n----------------------------------------------------------------------------------------------------\nI have an older laptop running Visual Studio 2019 and Git-2.35.1.2-64-bit.exe WITH the \"GIT LFS\" option checked, which is working as expected: committing a change to a large file and pushing the changes DOES update the remote repository with the change, and other team members who ALREADY HAVE A FULL COPY OF THE OLDER LARGE FILE are able to pull changes and will receive the updated copy of that file.\n\nAnother team member and I got a new laptop and set up Visual Studio 2019 and Git-2.35.1.2-64-bit.exe, and then attempted to clone the repository. The clone succeeds, but checkout fails with this error:\n\nbatch response: Post https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch:\nlookup 216.115.169.22: dnsquery: DNS name does not exist.\n\nGIT/GIT LFS successfully resolved \"tfs.acsgs.com\" to the IP 216.115.169.22 for the clone, but then it seems like it’s mistakenly attempted a DNS lookup of \"216.115.169.22\" which fails because it's already an IP address, NOT a DNS name. (Doing \"nslookup 216.115.169.22\" fails in a similar/expected way: \"can't find 216.115.169.22: Non-existent domain\".)\n\nIMPORTANT: I then tried cloning to a new folder on my OLDER (Windows 7) laptop, and GOT THE SAME ERROR. Therefore I SUSPECT this is NOT related to my NEWER (Windows 10) vs. OLDER (Windows 7) laptop, but instead seems to be a GIT/GIT LFS bug…and only when attempting the initial download of an “actual” file.\n\nAnother possibility is our internal TFS server perhaps has changed configuration since the first time we cloned our repository, but it seems unlikely (I can manually download a large file into my local folder, then GIT/GIT LFS will manage it properly…it seems to be only when trying to make the initial download of a full file that fails with this “lookup 216.115.169.22: dnsquery: DNS name does not exist” error).\n====================================================================================================\n\n====================================================================================================\nWHAT I EXPECTED: All the files managed by LFS should be downloaded to my local folder.\nWHAT HAPPENED: The \"lookup 216.115.169.22\" error aborts the process and I don’t get the files that are managed by LFS.\n----------------------------------------------------------------------------------------------------\nFYI at this point I can issue these commands in GIT BASH and get the same error:\n\nmyid@mypc MINGW64 /c/test/test (master)\n$ git fetch\n        {successful; no message reported}\n\nmyid@mypc MINGW64 /c/test/test (master)\n$ git pull\n        {successful; reports the following}\nAlready up to date.\n\nmyid@mypc MINGW64 /c/test/test (master)\n$ git lfs fetch\n        {fails; reports the following}\nfetch: Fetching reference refs/heads/master\nbatch response: Post https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch: lookup 216.115.169.22: dnsquery: DNS name does not exist.\nerror: failed to fetch some objects from 'https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs'\n====================================================================================================\n\n====================================================================================================\nHERE'S THE LOG OF THE INITIAL CLONE:\n----------------------------------------------------------------------------------------------------\nCloning into 'c:Test'...\nremote:\nremote:                    fTfs\nremote:                  fSSSSSSSs\nremote:                fSSSSSSSSSS\nremote: TSSf         fSSSSSSSSSSSS\nremote: SSSSSF     fSSSSSSST SSSSS\nremote: SSfSSSSSsfSSSSSSSt   SSSSS\nremote: SS  tSSSSSSSSSs      SSSSS\nremote: SS   fSSSSSSST       SSSSS\nremote: SS fSSSSSFSSSSSSf    SSSSS\nremote: SSSSSST    FSSSSSSFt SSSSS\nremote: SSSSt        FSSSSSSSSSSSS\nremote:                FSSSSSSSSSS\nremote:                  FSSSSSSs\nremote:                    FSFs    (TM)\nremote:\nremote:  Microsoft (R) Visual Studio (R) Team Foundation Server\nremote:\nReceiving objects: 100% (358654/358654), 498.24 MiB | 8.25 MiB/s, done.\nResolving deltas: 100% (318843/318843), done.\nerror: unable to create file Nucleus/SharedSolution/BusinessServices/Service References/Internal.CompletionCertificateManagementServiceProxy/LearnSomething.Nucleus.BusinessServices.Internal.CompletionCertificateManagementServiceProxy.DeleteUnapprovedTemplateResponse.datasource: Filename too long\nUpdating files: 100% (9290/9290), done.\nDownloading Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (77 KB)\nError downloading object: Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (5e4f888): Smudge error: Error downloading Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (5e4f888baf46329f841612572a39fd9d3a5c803b5c051fcb8548cbaeadce5333): batch response: Post https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch: lookup 216.115.169.22: dnsquery: DNS name does not exist.\n\nErrors logged to C:\\Test\\Test\\.git\\lfs\\logs\\20220321T132305.040305.log\nUse `git lfs logs last` to view the log.\nerror: external filter 'git-lfs filter-process' failed\nfatal: Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj: smudge filter lfs failed\nwarning: Clone succeeded, but checkout failed.\nYou can inspect what was checked out with 'git status'\nand retry with 'git restore --source=HEAD :/'\n====================================================================================================\n\n====================================================================================================\nHERE'S THE CONTENT OF THE C:\\Test\\Test\\.git\\lfs\\logs\\20220321T132305.040305.log FILE\n(shows the same error, but also other details that may be useful)\n----------------------------------------------------------------------------------------------------\ngit-lfs/3.0.2 (GitHub; windows amd64; go 1.17.2)\ngit version 2.35.1.windows.2\n\n$ git-lfs.exe filter-process\nError downloading object: Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (5e4f888): Smudge error: Error downloading Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (5e4f888baf46329f841612572a39fd9d3a5c803b5c051fcb8548cbaeadce5333): batch response: Post https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch: lookup 216.115.169.22: dnsquery: DNS name does not exist.\n\nPost https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch: lookup 216.115.169.22: dnsquery: DNS name does not exist.\nbatch response\ngithub.com/git-lfs/git-lfs/v3/errors.newWrappedError\n                D:/a/git-lfs/git-lfs/errors/types.go:225\ngithub.com/git-lfs/git-lfs/v3/errors.Wrap\n                D:/a/git-lfs/git-lfs/errors/errors.go:74\ngithub.com/git-lfs/git-lfs/v3/tq.(*tqClient).Batch\n                D:/a/git-lfs/git-lfs/tq/api.go:95\ngithub.com/git-lfs/git-lfs/v3/tq.Batch\n                D:/a/git-lfs/git-lfs/tq/api.go:43\ngithub.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).enqueueAndCollectRetriesFor\n                D:/a/git-lfs/git-lfs/tq/transfer_queue.go:558\ngithub.com/git-lfs/git-lfs/v3/tq.(*TransferQueue).collectBatches.func1\n                D:/a/git-lfs/git-lfs/tq/transfer_queue.go:452\nruntime.goexit\n                go/src/runtime/asm_amd64.s:1581\nError downloading Extras/LSADataAdapterSolution/lib/LearnSomethingAbout.llblgenproj (5e4f888baf46329f841612572a39fd9d3a5c803b5c051fcb8548cbaeadce5333)\ngithub.com/git-lfs/git-lfs/v3/errors.newWrappedError\n                D:/a/git-lfs/git-lfs/errors/types.go:225\ngithub.com/git-lfs/git-lfs/v3/errors.Wrapf\n                D:/a/git-lfs/git-lfs/errors/errors.go:85\ngithub.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).downloadFile\n                D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:119\ngithub.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge\n                D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:78\ngithub.com/git-lfs/git-lfs/v3/commands.smudge\n                D:/a/git-lfs/git-lfs/commands/command_smudge.go:127\ngithub.com/git-lfs/git-lfs/v3/commands.filterCommand\n                D:/a/git-lfs/git-lfs/commands/command_filter_process.go:122\ngithub.com/spf13/cobra.(*Command).execute\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766\ngithub.com/spf13/cobra.(*Command).ExecuteC\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852\ngithub.com/spf13/cobra.(*Command).Execute\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800\ngithub.com/git-lfs/git-lfs/v3/commands.Run\n                D:/a/git-lfs/git-lfs/commands/run.go:105\nmain.main\n                D:/a/git-lfs/git-lfs/git-lfs.go:33\nruntime.main\n                go/src/runtime/proc.go:255\nruntime.goexit\n                go/src/runtime/asm_amd64.s:1581\nSmudge error\ngithub.com/git-lfs/git-lfs/v3/errors.newWrappedError\n                D:/a/git-lfs/git-lfs/errors/types.go:225\ngithub.com/git-lfs/git-lfs/v3/errors.NewSmudgeError\n                D:/a/git-lfs/git-lfs/errors/types.go:311\ngithub.com/git-lfs/git-lfs/v3/lfs.(*GitFilter).Smudge\n                D:/a/git-lfs/git-lfs/lfs/gitfilter_smudge.go:87\ngithub.com/git-lfs/git-lfs/v3/commands.smudge\n                D:/a/git-lfs/git-lfs/commands/command_smudge.go:127\ngithub.com/git-lfs/git-lfs/v3/commands.filterCommand\n                D:/a/git-lfs/git-lfs/commands/command_filter_process.go:122\ngithub.com/spf13/cobra.(*Command).execute\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:766\ngithub.com/spf13/cobra.(*Command).ExecuteC\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:852\ngithub.com/spf13/cobra.(*Command).Execute\n                mailto:go/pkg/mod/github.com/spf13/cobra@v0.0.3/command.go:800\ngithub.com/git-lfs/git-lfs/v3/commands.Run\n                D:/a/git-lfs/git-lfs/commands/run.go:105\nmain.main\n                D:/a/git-lfs/git-lfs/git-lfs.go:33\nruntime.main\n                go/src/runtime/proc.go:255\nruntime.goexit\n                go/src/runtime/asm_amd64.s:1581\n\nCurrent time in UTC: \n2022-03-21 17:23:05\n\nENV:\nLocalWorkingDir=C:\\Test\\Test\nLocalGitDir=C:\\Test\\Test\\.git\nLocalGitStorageDir=C:\\Test\\Test\\.git\nLocalMediaDir=C:\\Test\\Test\\.git\\lfs\\objects\nLocalReferenceDirs=\nTempDir=C:\\Test\\Test\\.git\\lfs\\tmp\nConcurrentTransfers=8\nTusTransfers=false\nBasicTransfersOnly=false\nSkipDownloadErrors=false\nFetchRecentAlways=false\nFetchRecentRefsDays=7\nFetchRecentCommitsDays=0\nFetchRecentRefsIncludeRemotes=true\nPruneOffsetDays=3\nPruneVerifyRemoteAlways=false\nPruneRemoteName=origin\nLfsStorageDir=C:\\Test\\Test\\.git\\lfs\nAccessDownload=none\nAccessUpload=none\nDownloadTransfers=basic,lfs-standalone-file,ssh\nUploadTransfers=basic,lfs-standalone-file,ssh\nGIT_DIR=C:/Test/Test/.git\nGIT_EXEC_PATH=C:/Program Files/Git/mingw64/libexec/git-core\nGIT_LFS_PATH=C:\\Program Files\\Git LFS\n\nClient IP addresses:\nfd6f:ceb3:d044:1:fc6e:cfb4:5b12:726 fd6f:ceb3:d044:1:d5a8:53d3:eb3e:d44d fe80::fc6e:cfb4:5b12:726 10.0.0.25\n====================================================================================================\n\n====================================================================================================\nHERE'S THE DETAIL FROM \"git bugreport\":\n----------------------------------------------------------------------------------------------------\n[System Info]\ngit version:\ngit version 2.35.1.windows.2\ncpu: x86_64\nbuilt from commit: 5437f0fd368c7faf1a0b5e1fef048232c1f2a3e6\nsizeof-long: 4\nsizeof-size_t: 8\nshell-path: /bin/sh\nfeature: fsmonitor--daemon\nuname: Windows 10.0 19043 \ncompiler info: gnuc: 11.2\nlibc info: no libc information available\n$SHELL (typically, interactive shell): C:\\Program Files\\Git\\usr\\bin\\bash.exe\n\n[Enabled Hooks]\npost-checkout\npost-commit\npost-merge\npre-push\n====================================================================================================\n"},{"id":"451823","messageId":"YjkPaBzrTeiskVTv@camp.crustytoothpaste.net","threadId":"57598","inReplyTo":"BN8PR20MB28354228F53ACD3680F505E6FB169@BN8PR20MB2835.namprd20.prod.outlook.com","subject":"Re: Potential Bug - GIT/GIT LFS doing dnsquery on an IP address","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2022-03-21T23:51:04Z","receivedAt":"2022-03-21T23:52:13Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"Hey,\n\nOn 2022-03-21 at 23:20:25, Hecker, David A wrote:\n> I started the message below with git bugreport so I think I have all the details. (UPPERCASE to highlight; not shouting. 😊)\n> \n> Thanks!\n> --Dave Hecker\n> \n> \n> ====================================================================================================\n> WHAT DID YOU DO BEFORE THE BUG HAPPENED? (STEPS TO REPRODUCE YOUR ISSUE)\n> ----------------------------------------------------------------------------------------------------\n> I have an older laptop running Visual Studio 2019 and Git-2.35.1.2-64-bit.exe WITH the \"GIT LFS\" option checked, which is working as expected: committing a change to a large file and pushing the changes DOES update the remote repository with the change, and other team members who ALREADY HAVE A FULL COPY OF THE OLDER LARGE FILE are able to pull changes and will receive the updated copy of that file.\n> \n> Another team member and I got a new laptop and set up Visual Studio 2019 and Git-2.35.1.2-64-bit.exe, and then attempted to clone the repository. The clone succeeds, but checkout fails with this error:\n> \n> batch response: Post https://tfs.acsgs.com/tfs/PDSI/HRS2/Learning/_git/KnowledgeConnection.git/info/lfs/objects/batch:\n> lookup 216.115.169.22: dnsquery: DNS name does not exist.\n> \n> GIT/GIT LFS successfully resolved \"tfs.acsgs.com\" to the IP 216.115.169.22 for the clone, but then it seems like it’s mistakenly attempted a DNS lookup of \"216.115.169.22\" which fails because it's already an IP address, NOT a DNS name. (Doing \"nslookup 216.115.169.22\" fails in a similar/expected way: \"can't find 216.115.169.22: Non-existent domain\".)\n> \n> IMPORTANT: I then tried cloning to a new folder on my OLDER (Windows 7) laptop, and GOT THE SAME ERROR. Therefore I SUSPECT this is NOT related to my NEWER (Windows 10) vs. OLDER (Windows 7) laptop, but instead seems to be a GIT/GIT LFS bug…and only when attempting the initial download of an “actual” file.\n> \n> Another possibility is our internal TFS server perhaps has changed configuration since the first time we cloned our repository, but it seems unlikely (I can manually download a large file into my local folder, then GIT/GIT LFS will manage it properly…it seems to be only when trying to make the initial download of a full file that fails with this “lookup 216.115.169.22: dnsquery: DNS name does not exist” error).\n> ====================================================================================================\n\nThis looks like a Git LFS issue, and Git LFS is managed independently\nfrom this project.  Could you please open an issue on the Git LFS issue\ntracker[0] instead, including all of this information, filling out the\nissue template, and including the output when using GIT_TRACE=1\nGIT_TRANSFER_TRACE=1 GIT_CURL_VERBOSE=1 (stripping out any\nauthentication headers)?\n\nThat would allow one of us who work on Git LFS to look at this in more\ndetail.\n\nThanks.\n\n[0] https://github.com/git-lfs/git-lfs\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"}]}