簡體   English   中英

推送后Gitlab中的文件丟失

[英]Files missing in Gitlab after push

我最近將4次提交推送到了Gitlab,但是現在我的一些文件丟失了。 每當我嘗試查看文件時,都會出現如下錯誤:

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

這適用於任何提交和master分支。 我試圖重新啟動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

一切似乎都還可以。

gitlab-satellites文件夾很可能已損壞。 刪除該文件夾並重新創建。 gitlab將該文件夾用作暫存器-進行合並等。刪除該文件夾應該基本無害。 為了安全起見,可以在運行以下命令之前將其重命名為其他名稱(而不是刪除)。

bundle exec rake gitlab:satellites:create RAILS_ENV=production

然后重新啟動gitlab

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM