gpt4 book ai didi

ruby-on-rails - GitLab 7-0 稳定无法推送或克隆

转载 作者:太空宇宙 更新时间:2023-11-03 16:25:46 25 4
gpt4 key购买 nike

您好,我尝试了各种链接和配置设置来解决我的问题。但我做不到。如果您仍然觉得问题是复制的或没有用,我请求您取悦并发表评论,我将删除问题而不打扰任何人。

我在本地网络中的新 ubuntu 12.04 64 位机器上进行了 gitlab 7-0 stable 设置。我的服务器域名是 192.168.1.1(我局域网内的一些静态 IP)。

在此之后我可以同时登录管理员和用户。我可以创建项目,通过 Web UI 对所有基本工作进行分组。

但是我无法使用 ssh 从我局域网中的其他系统克隆代码或将代码推送到服务器。

sudo ./bin/check 的结果是

Check GitLab API access: OK
Check directories and files:
/home/git/repositories/: OK
/home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.2.12
Send ping to redis server: PONG

我所有的系统状态都是绿色的。

怀疑可能是gitlab.yml、nginx、unicorn配置的问题。

谁能帮帮我?

更新:我的config/gitlab.yml

  production: &base
## GitLab settings
gitlab:
## Web server settings (note: host is the FQDN, do not include http://)
host: 192.168.1.37
port: 80
https: false
email_from: example@example.com
default_projects_limit: 10
## Default project features settings
default_projects_features:
issues: true
merge_requests: true
wiki: true
snippets: false
visibility_level: "private" # can be "private" | "internal" | "public"
issues_tracker:
## Gravatar
gravatar:
enabled: true # Use user avatar image from Gravatar.com (default: true)
ldap:
enabled: false
host: '_your_ldap_server'
port: 636
uid: 'sAMAccountName'
method: 'ssl' # "tls" or "ssl" or "plain"
bind_dn: '_the_full_dn_of_the_user_you_will_bind_with'
password: '_the_password_of_the_bind_user'
allow_username_or_email_login: true
satellites:
# Relative paths are relative to Rails.root (default: tmp/repo_satellites/)
path: /home/git/gitlab-satellites/
## Backup settings
backup:
path: "tmp/backups" # Relative paths are relative to Rails.root (default: tmp/backups/)
# keep_time: 604800 # default: 0 (forever) (in seconds)
## GitLab Shell settings
gitlab_shell:
path: /home/git/gitlab-shell/
# REPOS_PATH MUST NOT BE A SYMLINK!!!
repos_path: /home/git/repositories/
hooks_path: /home/git/gitlab-shell/hooks/

# Git over HTTP
upload_pack: true
receive_pack: true
ssh_port: 22
git:
bin_path: /usr/local/bin/git
max_size: 5242880 # 5.megabytes
# Git timeout to read a commit, in seconds
timeout: 10
extra:
development:
<<: *base

test:
<<: *base
gravatar:
enabled: true
gitlab:
host: localhost

和/home/git/gitlab-shell/config.yml


user: git
gitlab_url: http://192.168.1.37
http_settings:
self_signed_cert: false
repos_path: /home/git/repositories/
auth_file: /home/git/.ssh/authorized_keys
redis:
bin: /usr/bin/redis-cli
host: localhost
port: 6379
namespace: resque:gitlab
log_level: INFO
audit_usernames: false
~

最佳答案

我遇到了类似的问题。

当按照安装说明进行操作时,可以使用 nologin 选项创建一个 git 用户。但是在我的 Linux 机器 (openSUSE) 上,这会阻止通过 SSH 进行 pull 和推送。

我编辑了文件 /etc/passwd 寻找以 git 开头的行,并将行尾替换为 /bin/bash(在 /bin/false 之前)。

不需要重新启动任何东西。您应该能够 pull 和推。

关于ruby-on-rails - GitLab 7-0 稳定无法推送或克隆,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24656063/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com