2013-09-26 120 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