GitLab 18.5.1 Fails to Import LFS Files from Github via Import Project Flow

Summary

Gitlab 18.5.1-ee Fails to import lfs files from Github via UI Import Project Flow

Steps to reproduce

  • Create private repo with at least 1 lfs object on Github.com
  • Launch 18.5.1 enterprise GitLab instance (I did this via the docker setup as well as linux package install methods via gitlab-environment-toolkit)
  • Enable imports for Github in gitlab
  • Follow the flow: Create New Project -> Import Project -> Input github PAT with proper permissions -> Select repo with lfs files and import.
  • After import check to see if lfs files have been properly imported.

Example Project

Don't have an example project but one can be created with simply 1 lfs file to repro.

What is the current bug behavior?

No lfs files are imported, putting the repo in a bad state.

What is the expected correct behavior?

I would expect the lfs files to be imported properly.

Relevant logs and/or screenshots

18.4.3 (lfs works)

Screenshot from 2025-11-11 11-57-49.png

18.5.1 (lfs import missing)

Screenshot from 2025-11-11 11-40-58.png

Output of checks

Results of GitLab environment info

Click to expand
root@172:/# gitlab-rake gitlab:env:info

System information
System:		
Proxy:		no
Current User:	git
Using RVM:	no
Ruby Version:	3.2.8
Gem Version:	3.7.1
Bundler Version:2.7.1
Rake Version:	13.0.6
Redis Version:	7.2.10
Sidekiq Version:7.3.9
Go Version:	unknown

GitLab information
Version:	18.5.1-ee
Revision:	a01b2eeb76d
Directory:	/opt/gitlab/embedded/service/gitlab-rails
DB Adapter:	PostgreSQL
DB Version:	16.10
URL:		http://172.20.1.52
HTTP Clone URL:	http://172.20.1.52/some-group/some-project.git
SSH Clone URL:	git@172.20.1.52:some-group/some-project.git
Elasticsearch:	no
Geo:		no
Using LDAP:	no
Using Omniauth:	yes
Omniauth Providers: 

GitLab Shell
Version:	14.45.3
Repository storages:
- default: 	unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:		/opt/gitlab/embedded/service/gitlab-shell

Gitaly
- default Address: 	unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version: 	18.5.1
- default Git Version: 	2.50.1

Results of GitLab application Check

Click to expand
root@172:/# gitlab-rake gitlab:check SANITIZE=true
Checking GitLab subtasks ...

Checking GitLab Shell ...

GitLab Shell: ... GitLab Shell version >= 14.45.3 ? ... OK (14.45.3)
Running /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-check
Internal API available: OK
Redis available via internal API: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Gitaly ...

Gitaly: ... default ... OK

Checking Gitaly ... Finished

Checking Sidekiq ...

Sidekiq: ... Running? ... yes
Number of Sidekiq processes (cluster/worker) ... 1/1

Checking Sidekiq ... Finished

Checking Incoming Email ...

Incoming Email: ... Reply by email is disabled in config/gitlab.yml

Checking Incoming Email ... Finished

Checking LDAP ...

LDAP: ... LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab App ...

Database config exists? ... yes
Tables are truncated? ... skipped
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config up to date? ... yes
Cable config exists? ... yes
Resque config exists? ... yes
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory exists? ... yes
Uploads directory has correct permissions? ... yes
Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet)
Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units)
Projects have namespace: ... 
1/1 ... yes
1/34 ... yes
Redis version >= 6.2.14? ... yes
Ruby version >= 3.0.6 ? ... yes (3.2.8)
Git user has default SSH configuration? ... yes
Active users: ... 1
Is authorized keys file accessible? ... yes
GitLab configured to store new projects in hashed storage? ... yes
All projects are in hashed storage? ... yes
Elasticsearch version 7.x-9.x or OpenSearch version 1.x-3.x ... skipped (advanced search is disabled)
All migrations must be finished before doing a major upgrade ... skipped (Advanced Search is disabled)

Checking GitLab App ... Finished


Checking GitLab subtasks ... Finished

Possible fixes

Unsure

Edited by 🤖 GitLab Bot 🤖