- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
太令人沮丧了:我正在寻找一个基于 gitolite 的可管理的基于 Web 的解决方案。由于缺少或过时的 ruby 包,Redmine 一直失败。至少我尝试过使用 gitLab。我使用的最后一个指南是常规指南:
我一步一步地复制了每个点,但是没有办法执行无错误的设置:
这应该是最后的步骤之一:
sudo -u gitlab -H bundle exec rake gitlab:check RAILS_ENV=production
但是输出告诉我用户“gitolite”(=git)不在 gitolite 组中以及如何解决这个问题:
Checking Environment ...
gitlab user is in gitolite group? ... no
Try fixing it: sudo usermod -a -G gitolite gitlabFor more information see: doc/install/installation.md in section "System Users"
Please fix the error above and rerun the checks. Has no "-e" in ~gitolite/.profile ... rake aborted!
No such file or directory - /var/lib/gitolite/.profile
/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:320:in `read'
/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:320:in
check_issue_1056_shell_profile_error'
block (3 levels) in '
/home/gitlab/gitlab/lib/tasks/gitlab/check.rake:257:inTasks: TOP => gitlab:check => gitlab:env:check
(See full trace by running task with --trace
但是没有机会处理这个。输出保持不变。即使创建了管理员帐户,也无法启动 Web 服务器来管理该帐户。
一直都是“坏网关”
你知道怎么解决吗?或者您知道另一种基于 gitolite 的合适解决方案吗?
再次感谢!
最佳答案
这似乎是用户或权限问题。
您的/etc/passwd 文件和/etc/group 文件是否显示用户“git”?
> grep git /etc/passwd
git:x:....
> grep git /etc/group
git:x:....
如果在那里找不到用户或组,则它不存在。
在这种情况下,您必须确认您遵循了上述教程中提到的命令。
> sudo adduser \
--system \
--shell /bin/sh \
--gecos 'Git Version Control' \
--group \
--disabled-password \
--home /home/git \
git
您还必须具有创建此类用户的权限。
否则,在阅读文档后,您似乎正在设置 $PATH 以完成某些任务并为用户创建一个 .profile
文件。
确认行...
> sudo -u git -H sh -c 'printf "%b\n%b\n" "PATH=\$PATH:/home/git/bin" "export PATH" >> /home/git/.profile'
通过运行
创建正确的文件.profile
> sudo su git
> ls -lah /home/git/ | grep .profile
如果 grep 没有显示 .profile
文件,您可能需要确认您的用户是否具有创建该文件的正确权限。
关于基于gitolite的gitlab安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14141696/
关闭。这个问题是off-topic .它目前不接受答案。 想改善这个问题吗? Update the question所以它是 on-topic对于堆栈溢出。 8年前关闭。 Improve this q
我已成功创建gitolite-admin.git服务器上的存储库(例如)10.107.105.13 。我可以在本地计算机上克隆此存储库(例如)10.14.42.7通过发布 git clone gito
我想使用本地帐户在我的 gitolite 服务器上创建一个新存储库,而不通过 SSH 访问。这可能吗?它们是我可以使用的一些 gitolite 脚本吗? 如果我尝试通过系统上的 git 用户通过查看
我正在尝试使用 Gitolite 在 Gitlab 中创建一个新分支。我完成安装步骤。当我遇到“设置 gitolite”部分时,我遇到了麻烦。我关注了这个link . 当我运行
我正在尝试在我的 ubuntu 服务器机器上安装 gitolite。 尽管如此,还有很多事情我还不知道,但我按照它的指示非常缓慢地前进(http://sitaramc.github.com/gitol
我在 Ubuntu 12.04 上安装了 Gitolite 3.5.3。我创建了测试存储库,我只能通过 gitolite 用户而不是其他用户通过 ssh 访问它。 我需要允许通过 ssh 访问其他系统
这可能吗?我的 authorized_keys 文件被删除,更新 gitolite 管理规则仅附加到文件。是否可以根据 gitolite 配置重新生成整个文件? 编辑:找到了! gitolite 触发
快速说明:在有人指出之前,我最初是在 Server Fault 上发布这个的,但在发布之后我意识到这个站点可能更合适。抱歉“双重发帖”。 大约 6 个月前我安装了 gitolite,突然间我开始收到这
我正在尝试在 redhat 虚拟机上安装 gitolite。现在,机器未连接到互联网。因此,我无法运行标准安装的“克隆”步骤。我的机器上确实有源代码,当我运行“install -ln”步骤时 - 它会
完整的错误信息是: could not symlink /var/lib/gitolite/.gitolite/hooks/common/gitolite-hooked to subdir/myrep
我正处于让 Git 和 Gitolite 工作的最后阶段。这是目前的情况: 最佳答案 Gitolite 管理下的存储库没有工作副本。所以你要做的是创建另一个带有工作副本的存储库,提交数据并将它们推送到
我有一个奇怪的问题。我使用 TortoiseGIT (Win7) 并且我的存储库放置在虚拟服务器 (Debian) 上,我使用 gitolite 和 SSH key 。 我可以 clone存储库到我的
我是第一次设置 gitolite。我正在关注 this instructions . 当我 ssh 时,它看起来很好: $ ssh -p 2222 gitolite@debian PTY alloca
我已经配置了一个存储库和一组用户。 我已将该存储库的读取权限授予该组。 但是当我以不在组中的用户身份登录时,我能够读取存储库。 它在 gitweb 中列出了该存储库。为什么会这样? @all =
每当我尝试在我的笔记本电脑上克隆任何存储库时,我都会收到此消息: Unable to open connection: Host does not existfatal: Could not read
我已经在 ubuntu 服务器上设置了一个 gitolite 存储库,目的是让开发人员克隆/推送我们将要处理的项目。我在 repo 中的接收后 Hook 有问题。我在一个特定的 repo 中有一个接收
我尝试在 this manual 之后安装 git + gitolite - 使用来自服务器的根安装。我只是不明白新的 gitolite 用户是否必须拥有他们的用户帐户?。当我将 tester.pub
我对 gitolite 有点困惑权限。 仅允许 1 个分支并拒绝特定用户或组的所有其他分支的最佳方法是什么? 最佳答案 参见“partial-copy: selective read control
如何配置 git 和 gitolite 以允许特定用户仅更改特定目录内的文件? 例如原始主分支中的文件: /dir1/ /dir2/file1 /dir2/file2 /dir3/file1 用户 k
我正在尝试在我的服务器(Macos 服务器)上设置 gitolite。 我按照此处找到的安装文档中的说明进行操作: http://sitaramc.github.com/gitolite/doc/1-
我是一名优秀的程序员,十分优秀!