我最近向 Gitlab 推送了 4 个提交,但现在我的一些文件丢失了。每当我尝试查看文件时,都会收到如下错误:
Not Found: /gitlab/root/my-app/blob/9f2cc9da2ee7e6b8d0e7506ce8fc89213b73a442/app/controllers/arrivals_controller.rb
这适用于任何提交和主分支。我试图重新启动 Gitlab,并清除 Resque 缓存,但无济于事。我可以使用git clone
命令将文档拉到新目录。
编辑:运行测试bundle exec rake gitlab:check RAILS_ENV=production
,这是输出
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
在这一端,一切似乎都很好。