Git LFS Not Authorized

I’m trying to build Blender from source code on a Windows machine and I keep failing at the LFS fetch due to a 401 unauthorized error.

I followed the directions here:
docs/handbook/building_blender/windows/

  1. When I run make update it fails. I get a similar error to other people in the past where it fails, I try to run make update again, and I get an error about Python not being compatible with 64-bit.
  2. It seems the LFS fails on the Windows libs, so I cd lib\windows_x64 and run git lfs pull to trigger the LFS fetch that happens during the initial make update.
  3. LFS prompts me for my username password. I use the same credentials I use on projects.blender.com (where my account is confirmed and I can login fine) and it keeps repeating asking me for my username and password.
  4. I enabled GIT_TRACE to see logs and it seems the login is 401 unauthorized:
11:54:55.649347 trace git-lfs: filepathfilter: accepting "zlib/lib/libz_st.lib"
11:54:55.649347 trace git-lfs: filepathfilter: accepting "zlib/lib/libz_st_d.lib"
11:54:55.649347 trace git-lfs: filepathfilter: accepting "zstd/lib/zstd_static.lib"
11:54:56.027111 trace git-lfs: HTTP: 200
11:54:56.179785 trace git-lfs: HTTP: {"objects":[{"oid":"48f17691fd9afbd79c5b98539852b1e53fd9ec0630eab822464661fa0f47ac3

11:54:56.187367 trace git-lfs: creds: git credential fill ("https", "projects.blender.org", "")
11:54:56.196327 trace git-lfs: exec: git 'credential' 'fill'
Username for 'https://projects.blender.org': Ryosuke-Hana
Password for 'https://[email protected]':
11:55:18.498566 trace git-lfs: Filled credentials for https://projects.blender.org/blender/lib-windows_x64.git
11:55:18.500096 trace git-lfs: HTTP: GET https://projects.blender.org/blender/lib-windows_x64.git/info/lfs/objects/48f17691fd9afbd79c5b98539852b1e53fd9ec0630eab822464661fa0f47ac33
11:55:18.973772 trace git-lfs: HTTP: 401
11:55:18.973883 trace git-lfs: exec: git 'credential' 'reject'
11:55:18.987249 trace git-lfs: creds: git credential fill ("https", "projects.blender.org", "")
11:55:18.987348 trace git-lfs: exec: git 'credential' 'fill'

This is a snippet of the last of the logs. The full logs are pretty long and show just fetching other packages.

I can post this as an issue in the repo if it’s helpful, but I figured there’s some secret documentation I can’t find with the info. Do I need a special SSH key for the Blender git instance or something? There doesn’t seem to be any mention of this process in the starter guide.

It seems like it’s trying to do username + password authentication, which we don’t support. By default it should anonymously fetch the files. It’s also possible to set up SSH with a public key, but that shouldn’t be needed for the libraries.

The output of these commands might give more clues:

git remote -v
git submodule foreach git remote -v

Or maybe there is some git configuration or environment variable that is causing it to try the username.

I cloned the official mirror on GitHub.
When I clone from the Blender Projects website it resolves the LFS auth issue and it downloads the Windows libraries.
Appreciate the suggestion.

Maybe a warning/call out should be placed on the GitHub that LFS support is unstable (minimally for Windows).