2013-09-26 127 views
2

我最近推送4个提交到Gitlab,但现在我的一些文件丢失了。每当我试图查看文件,我得到一个错误这样的:推后Gitlab文件丢失

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 

似乎一切都还好。

+0

您在本地回购中仍然有这些提交。试着再推一次。 – madhead

+1

当我'git推起源大师'它说'一切都是最新的' – josh

+0

尝试删除并重新创建您的分支在服务器上? – madhead

回答

1

最有可能的gitlab-satellites文件夹已损坏。删除该文件夹并重新创建它。该文件夹由gitlab用作暂存器 - 用于合并等。删除此文件夹应该基本无害。为了更安全,您可以在运行以下命令之前将其重命名为其他内容(而不是删除)。

bundle exec rake gitlab:satellites:create RAILS_ENV=production 

然后重新启动gitlab

+0

我跑了,但不幸的是它仍然给我错误。我认为这意味着我的git存储库已损坏? – josh

+0

不这么认为,因为你可以''推''克隆'成功,并拥有所有提交克隆回购。这是'git' repos和'gitlab'前端之间的同步问题。检查'sidekiq'是否显示任何错误。 – Litmus

+0

我检查了'sidekiq',它没有任何错误,但服务器已经重新启动,因为它没有显示任何处理过的东西。有我可以检查的日志吗? – josh