Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Files missing in Gitlab after push

Tags:

git

gitlab

I recently pushed 4 commits to Gitlab, but now some of my files are missing. Whenever I attempt to view the files, I get an error like this:

Not Found: /gitlab/root/my-app/blob/9f2cc9da2ee7e6b8d0e7506ce8fc89213b73a442/app/controllers/arrivals_controller.rb

This applies for any commit, and the master branch. I've attempted to restart Gitlab, and clear the Resque cache as well but to no avail. I can pull the documents with a git clone command to a new directory.

Edit: Ran the test bundle exec rake gitlab:check RAILS_ENV=production and here is the output

Checking Environment ...

Git configured for git user? ... yes
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.1 ? ... OK (1.7.1)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... 
Joshua Smock / INTO Arrivals Form ... ok

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... 
Joshua Smock / INTO Arrivals Form ... yes
Projects have satellites? ... 
Joshua Smock / INTO Arrivals Form ... yes
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.1)

Checking GitLab ... Finished

Everything seems okay on this end.

like image 991
josh Avatar asked Dec 05 '25 10:12

josh


1 Answers

Most likely the gitlab-satellites folder is corrupt. Delete that folder and recreate it. This folder is used by gitlab as a scratchpad - for merging etc. Deleting this folder should be mostly harmless. To be safer you can rename it to something else (instead of deleting) before running the following command.

bundle exec rake gitlab:satellites:create RAILS_ENV=production

and then restart gitlab.

like image 104
Litmus Avatar answered Dec 07 '25 07:12

Litmus



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!