首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >推送后Gitlab文件丢失

推送后Gitlab文件丢失
EN

Stack Overflow用户
提问于 2013-09-27 04:31:39
回答 1查看 2.6K关注 0票数 2

我最近向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,以下是输出

代码语言:javascript
复制
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

这一端看起来一切正常。

EN

回答 1

Stack Overflow用户

发布于 2013-09-30 11:56:55

很可能是gitlab-satellites文件夹已损坏。删除该文件夹并重新创建它。此文件夹被gitlab用作便签簿-用于合并等。删除此文件夹应该是无害的。为了安全起见,您可以在运行以下命令之前将其重命名为其他名称(而不是删除)。

代码语言:javascript
复制
bundle exec rake gitlab:satellites:create RAILS_ENV=production

然后重新启动gitlab

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19038136

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档