Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails archlinux上的Gitlab不工作->;无法访问API_Ruby On Rails_Nginx_Gitlab_Archlinux - Fatal编程技术网

Ruby on rails archlinux上的Gitlab不工作->;无法访问API

Ruby on rails archlinux上的Gitlab不工作->;无法访问API,ruby-on-rails,nginx,gitlab,archlinux,Ruby On Rails,Nginx,Gitlab,Archlinux,我尝试在archlinux上安装gitlab 由于8080是一个良好的当前端口,我已切换到8033 当我尝试连接到该网站时,它会打印我的错误。 如果我查看nginx/gitlab_errors.log,我有: 2015/03/23 21:16:00 [error] 29748#0: *1081 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.59.153, server:

我尝试在archlinux上安装gitlab 由于8080是一个良好的当前端口,我已切换到8033

当我尝试连接到该网站时,它会打印我的错误。 如果我查看nginx/gitlab_errors.log,我有:

2015/03/23 21:16:00 [error] 29748#0: *1081 connect() failed (111: Connection refused) while connecting to upstream, client: 5.51.59.153, server: gitlab.floth.fr, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:8033/", host: "gitlab.floth.fr"
如果我打开
/var/lib/gitlab/gitlab shell.log
我会

# Logfile created on 2015-03-23 21:09:06 +0100 by logger.rb/47272
W, [2015-03-23T21:09:06.321779 #30833]  WARN -- : Failed to connect to internal API <GET http://localhost:8033/api/v3/internal/check>: #<Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8033>
W, [2015-03-23T21:17:48.059769 #31230]  WARN -- : Failed to connect to internal API <GET http://localhost:8033//api/v3/internal/check>: #<Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8033>
W, [2015-03-23T21:22:01.846281 #31548]  WARN -- : Failed to connect to internal API <GET http://localhost:8033//api/v3/internal/check>: #<Errno::ECONNREFUSED: Connection refused - connect(2) for "localhost" port 8033>
如果我使用netstat-a | grep8033,就不会在该端口上侦听任何内容

有人知道去哪里找吗?哪些服务未启动或失败而未运行? 谢谢你的帮助


编辑 gitlab shell/config.yml的内容

user: gitlab
gitlab_url: "http://localhost:8033/"

repos_path: "/srv/git/gitlab"

auth_file: "/var/lib/gitlab/.ssh/authorized_keys"

redis:
  bin: /usr/bin/redis-cli
  host: 127.0.0.1
  port: 6379
  database: 0
  namespace: resque:gitlab

log_file: "/var/log/gitlab/gitlab-shell.log"
log_level: INFO
audit_usernames: false
git_annex_enabled: false
塔达! 我发现我的配置不好。 所有这些都是因为我选择了8080以外的其他端口。 在这种情况下,不仅要修改gitlab shell配置(即仅客户端),而且还要修改服务器部分
gitlab/config/unicorn.rb

# Listen on both a Unix domain socket and a TCP port.
# If you are load-balancing multiple Unicorn masters, lower the backlog
# setting to e.g. 64 for faster failover.
listen "/run/gitlab/gitlab.socket", :backlog => 1024
listen "127.0.0.1:8033", :tcp_nopush => true

看来gitlab shell正在失败。能否粘贴gitlab shell的
config.yml
的内容?该文件是您选择git回购路径的位置;ssl设置、gitlab的API url、redis的主机名等。您可以参考一个例子Hi jeanMarcAssin,很抱歉我花了这么长时间才回答。添加到我的第一条消息中。
# Listen on both a Unix domain socket and a TCP port.
# If you are load-balancing multiple Unicorn masters, lower the backlog
# setting to e.g. 64 for faster failover.
listen "/run/gitlab/gitlab.socket", :backlog => 1024
listen "127.0.0.1:8033", :tcp_nopush => true