register.json returns 404 after push
When I push to GitLab, CI does not trigger as register.json appears to return 404. Also, as a strange quirk, when I push a branch from RepoA (not master), an event for an unconnected RepoB is also triggered. It should also be noted that the build itself never gets triggered.
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2015-10-23 23:50:06 -0400
==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==
I, [2015-10-23T23:50:06.933129 #1844] INFO -- : gitlab-shell: executing git command <git-receive-pack /var/opt/gitlab/git-data/repositories/Namespace/RepoA.git> for user with key key-3.
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2015-10-23 23:50:07 -0400
Started GET "/api/v3/internal/broadcast_message" for 127.0.0.1 at 2015-10-23 23:50:07 -0400
Started POST "/api/v3/internal/allowed" for 127.0.0.1 at 2015-10-23 23:50:08 -0400
==> /var/log/gitlab/gitlab-shell/gitlab-shell.log <==
I, [2015-10-23T23:50:08.329740 #2040] INFO -- : gitlab-shell: executing git command <git-upload-pack /var/opt/gitlab/git-data/repositories/Namespace/RepoB.git> for user with key key-3.
==> /var/log/gitlab/gitlab-rails/production.log <==
Started POST "/ci/api/v1/builds/register.json" for ***.***.***.*** at 2015-10-23 23:50:09 -0400
==> /var/log/gitlab/nginx/gitlab_access.log <==
127.0.0.1 - - [23/Oct/2015:23:50:09 -0400] "POST /ci/api/v1/builds/register.json HTTP/1.0" 404 47 "-" "Go 1.1 package http"
The included nginx in the omnibus install is running on port 2245 and is being proxied through another nginx server that has the following configuration:
upstream gitlab {
server 127.0.0.1:2245;
}
server {
server_name git.example.com;
listen 80;
server_tokens off;
root /dev/null;
client_max_body_size 250m;
access_log /var/log/nginx/gitlab_access.log;
error_log /var/log/nginx/gitlab_error.log;
location / {
gzip off;
proxy_read_timeout 300;
proxy_connect_timeout 300;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://gitlab;
}
}
That nginx server returns the following error in the error log:
2015/10/22 13:17:20 [error] 854#0: *170 connect() failed (111: Connection refused) while connecting to upstream, client: ***.***.***.***, server: git.example.com, request: "POST /ci/api/v1/builds/register.json HTTP/1.1", upstream: "http://127.0.0.1:2245/ci/api/v1/builds/register.json", host: "git.example.com"