【问题标题】:GitlabHQ - W denied for railsGitlabHQ - W 因导轨而被拒绝
【发布时间】:2012-03-05 19:52:24
【问题描述】:

在工作中,我的任务是设置带有前端的 GIT 服务器,我发现 GitlabHQ 看起来很棒。

我已经半成功地安装了它,但我根本无法推送我的存储库,因为它说我需要推送它们。

由于我之前从未使用过 GitLabHQ,所以首先是:

You should push repository to proceed.
After push you will be able to browse code, commits etc.

添加项目时正常吗?

每次我跑步时

git push -u origin master

我明白了,

W access for focus DENIED to rails
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly

由于我不能指望团队继续使用 SSH,任何人都可以提供帮助吗?

谢谢。

编辑:

Server = Ubuntu Server 11.10 完全更新,我按照以下说明操作:https://github.com/gitlabhq/gitlabhq/wiki/V2.0-easy-setup-for-ubuntu

【问题讨论】:

  • 听起来您可能正在尝试推送到不存在的存储库。您是否创建了要推送到的存储库?也有可能您没有将存储库作为远程添加到您的项目中?您还必须使用git remote add origin git://repo_location.git 将其作为远程添加到您的项目中。 Read this for more info on how to use the git remote command.
  • 它一直告诉我远程源已经存在?
  • 执行git remote show origin时会发生什么?
  • 它只是给了我原来的错误“R access for focus DENIED to rails”
  • 对不起,伙计,我从来没有使用过那个系统。我和你一样迷茫。也许您需要更改正在运行服务器的用户的访问权限或其他东西,以便它实际上可以读取/写入存储库所在的目录?你可能想看看github。它既漂亮又简单,使用起来真的很愉快。

标签: ruby-on-rails git version-control gitlab


【解决方案1】:

通过重新运行安装(第一次肯定是静默失败)并在进程启动后终止该进程来解决此问题

lsof -p :3000
kill 9 {Whatever the PID was returned from above}

然后重新运行捆绑包(生产与否不同)我使用这个

bundle exec rails s -e production -d

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-08-09
    • 2020-12-12
    • 2022-01-01
    • 2017-02-04
    • 1970-01-01
    • 1970-01-01
    • 2013-04-05
    • 2021-04-23
    相关资源
    最近更新 更多