Running Pages on same server with Apache
Summary
Per the Pages Admin page I've trying to run Pages on the same server as described in Option 3 "Run the pages daemon in the same server as GitLab, listening on the same IP but on different ports" using Apache to serve as the proxy/loadbalancer. However, if I understand the gitlab.rb
file, gitlab_pages['listen_proxy'] = "localhost:8090"
should run the Pages server on port 8090, yet I don't see it running.
Steps to reproduce
Make gitlab.rb
settings below (showing uncommented lines):
pages_external_url 'http://pages.myserver.org/'
gitlab_pages['enable'] = true
gitlab_pages['listen_proxy'] = "127.0.0.1:8090"
gitlab_pages['redirect_http'] = false
pages_nginx['enable'] = false
What is the current bug behavior?
netstat -an | grep 8090
shows no server running.
Logs from /var/log/gitlab/gitlab-pages/current
:
2017-02-22_20:44:34.63248 2017/02/22 15:44:34 GitLab Pages Daemon 0.3.1 (c13e845)
2017-02-22_20:44:34.63251 2017/02/22 15:44:34 URL: https://gitlab.com/gitlab-org/gitlab-pages
2017-02-22_20:44:34.63310 2017/02/22 15:44:34 Running the daemon as unprivileged user (uid:1001, gid: 1001)...
2017-02-22_20:44:34.64493 2017/02/22 20:44:34 Starting the daemon as unprivileged user (uid: 1001, gid: 1001)...
2017-02-22_20:44:34.64521 2017/02/22 20:44:34 Updated 1 domains in 117.404µs Hash: [51 54 99 48 48 48 54 54 102 97 54 98 98 102 49 57 98 102 54 97 100 49 55 48 51 53 50 100 101 51 54 51 56 100 100 57 101 56 55 97 53 57 55 100 53 98 99 98 48 53 56 52 98 99 102 53 52 55 97 100 100 100 52 99 98 99 55 99 54 52 54 97 98 48 51 98 52 53 52 98 54 100 100 52 52 97 57 50 50 55 100 55 50 49 100 100 53 51 57 57 52 102 57 101 53 55 56 102 54 98 101 52 99 52 48 99 102 98 99 102 57 48 57 100 49 100 100 49]
2017-02-22_20:44:34.64534 2017/02/22 20:44:34 failed to listen on FD 5: file file+net [socket]: getsockopt: socket operation on non-socket
2017-02-22_20:44:34.64759 2017/02/22 15:44:34 exit status 1
2017-02-22_20:44:35.65556 2017/02/22 15:44:35 GitLab Pages Daemon 0.3.1 (c13e845)
2017-02-22_20:44:35.65559 2017/02/22 15:44:35 URL: https://gitlab.com/gitlab-org/gitlab-pages
2017-02-22_20:44:35.65613 2017/02/22 15:44:35 Running the daemon as unprivileged user (uid:1001, gid: 1001)...
2017-02-22_20:44:35.66796 2017/02/22 20:44:35 Starting the daemon as unprivileged user (uid: 1001, gid: 1001)...
2017-02-22_20:44:35.66823 2017/02/22 20:44:35 failed to listen on FD 5: file file+net [socket]: getsockopt: socket operation on non-socket
2017-02-22_20:44:35.67191 2017/02/22 15:44:35 exit status 1
I expect to see a server running on port 8090
Relevant logs and/or screenshots
above
Output of checks
gitlab-ctl reconfigure
lists no errors, other than pages, gitlab is up.
Results of GitLab environment info
gitlab-rake gitlab:env:info
System information
System: Ubuntu 16.04
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.6.6
Bundler Version:1.13.7
Rake Version: 10.5.0
Redis Version: 3.2.5
Sidekiq Version:4.2.7
GitLab information
Version: 8.17.0
Revision: 77254ab
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: postgresql
URL: https://gitlab.myserver.org
HTTP Clone URL: https://gitlab.myserver.org/some-group/some-project.git
SSH Clone URL: git@gitlab.myserver.org:some-group/some-project.git
Using LDAP: no
Using Omniauth: no
GitLab Shell
Version: 4.1.1
Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories
Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks/
Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
sudo gitlab-rake gitlab:check SANITIZE=true
Checking GitLab Shell ...
GitLab Shell version >= 4.1.1 ? ... OK (4.1.1)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
2/1 ... ok
... for space, all results are 'ok'
3/168 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK
Send ping to redis server: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes
Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
Reply by email is disabled in config/gitlab.yml
Checking Reply by email ... Finished
Checking LDAP ...
LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... yes
Init script exists? ... skipped (omnibus-gitlab has no init script)
Init script up-to-date? ... skipped (omnibus-gitlab has no init script)
projects have namespace: ...
2/1 ... yes
... for space, all results are 'ok'
3/168 ... yes
Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.3.3)
Your git bin path is "/opt/gitlab/embedded/bin/git"
Git version >= 2.7.3 ? ... yes (2.10.2)
Active users: 5
Checking GitLab ... Finished
Possible fixes
? possible a stanza is missing from gitlab.rb ??