我使用香蕉Pi 1与Ubuntu14.04.5可靠的Tahr (32位架构)。我喜欢使用香蕉派作为我的私人GitLab服务器。我成功地安装了gitlab-omnibus 7.9。见以下系统信息:
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.5p273
Gem Version: 2.2.1
Bundler Version:1.5.3
Rake Version: 10.4.2
Sidekiq Version:3.3.0
GitLab information
Version: 7.9.0
Revision: 16d6f0e
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: http://192.168.0.115
HTTP Clone URL: http://192.168.0.115/some-project.git
SSH Clone URL: git@192.168.0.115:some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 2.6.0
Repositories: /media/Seagate Expansion Dr/Projekte/GitLab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git背诵和推送工作在ssh上很好,但是目前git数据被存储在香蕉Pi的SD卡上(在那里也安装了ubuntu )。我连接了一个外部硬盘驱动器,当我通过ssh登录时,我也可以访问这个驱动器。现在,我希望gitlab将git数据存储在这个外部硬盘驱动器上(名称:)。我跟随了gitlab README.md的向导。以下情况也是如此:
/var/opt/gitlab/git-data/中香蕉圆周率上的存储库同步到新位置/media/Seagate\ Expansion\ Dr/Projekte/GitLab/git-data (更详细的描述见gitlab README.md)。但是现在,当我试图将一些东西从我的Windows上的存储库推到Banana Pi上时,我可以通过:
git push -u origin master我得到以下错误:
fatal: protocol error: bad line length character: No s我做了一些研究,认为这个错误与权限有关,所以我给了所有者、组和其他人写、读和执行测试的权限,但是错误仍然存在。
如果有人能帮我,我会很高兴的。如果需要进一步的信息,请马上问我。
最诚挚的问候,Bredjo :)
发布于 2017-07-30 12:59:24
最后,它的作用是:) :)
No such project (源:Git推送导致致命:协议错误:坏行长字符:)。所以GitLab不知道也不找到这个项目。/var/log/gitlab/gitlab-shell/gitlab-shell.log中的错误说明如下:
W,2017-07-30T19:20:41.433749 #21264警告-:gitlab-shell: git命令由用户拒绝访问,密钥为-6.在我的研究中,我发现了这个论坛条目,它描述了同样的问题:https://github.com/gitlabhq/gitlabhq/issues/4730。我很早就找到了这个链接,但在那个时候,我还在努力解决其他问题。
为了解决这个问题,我不得不编辑gitlab配置文件:/var/opt/gitlab/gitlab-shell/config.yml。我把香蕉PI IP地址和端口填到了以下几行:gitlab_url: "192.168.0.115:80"和host: 192.168.0.115.之后我执行了:
sudo gitlab-ctl reconfigure和
sudo gitlab-ctl restart它的作用是:)。为了进行测试,我删除了默认gitlab目录中的前一个repos,它仍然有效。现在,我的git数据存储在外部HDD :)上。
https://stackoverflow.com/questions/45265225
复制相似问题