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/
- When I run
make update
it fails. I get a similar error to other people in the past where it fails, I try to runmake update
again, and I get an error about Python not being compatible with 64-bit. - It seems the LFS fails on the Windows libs, so I
cd lib\windows_x64
and rungit lfs pull
to trigger the LFS fetch that happens during the initialmake update
. - 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.
- 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.