Skip to content

GitLab Pages Daemon Does Not Start

Summary

I was quite excited that GitLab Pages was coming to CE so as soon as it was published, I upgraded my GitLab instance. My GitLab instance is hosted on an Azure VM so I did some research and figured out how to give the VM multiple IPs so I could get Pages to work. Finally, I got GL Pages setup. The problem is that whenever I ran a build, the pages:deploy step would always fail. And of course, I couldn't figure out why. After much digging around, I found that the gitlab-pages service was not started. So I started it. But it failed to start. I am unable to get it to start. Is this a configuration issue?

I ran sudo gitlab-ctl tail gitlab-pages and put the output in the "Relevant logs and/or screenshots" section. What stood out most to me was this error: failed to listen on FD 5: file file+net [socket]: getsockopt: socket operation on non-socket. I have no idea what it means. Any help would be apretiated!

Steps to reproduce

  1. Setup GitLab Pages with the following config.
####################
# GitLab Pages
####################
pages_external_url "http://filiosoft.net"
pages_nginx["listen_addresses"] = ["192.168.1.6"]

What is the current bug behavior?

The gitlab-pages service does not start.

What is the expected correct behavior?

The gitlab-pages service should properly start.

Relevant logs and/or screenshots

sudo gitlab-ctl tail gitlab-pages shows this output.

GitLab Pages Daemon 0.3.1 (c13e845)
URL: https://gitlab.com/gitlab-org/gitlab-pages
Running the daemon as unprivileged user (uid:998, gid: 998)...
Starting the daemon as unprivileged user (uid: 998, gid: 998)...
Updated 0 domains in 52.7µs Hash: []
failed to listen on FD 5: file file+net [socket]: getsockopt: socket operation on non-socket
exit status 1

Output of checks

Results of GitLab environment info

System information
System:         Ubuntu 14.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.filiosoft.com
HTTP Clone URL: https://gitlab.filiosoft.com/some-group/some-project.git
SSH Clone URL:  git@gitlab.filiosoft.com:some-group/some-project.git
Using LDAP:     no
Using Omniauth: yes
Omniauth Providers: azure_oauth2

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

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: ...
6/4 ... ok
6/5 ... ok
6/8 ... ok
6/9 ... ok
6/10 ... ok
6/11 ... ok
6/26 ... ok
6/27 ... ok
13/29 ... ok
6/32 ... ok
6/34 ... ok
2/36 ... ok
6/37 ... ok
6/38 ... ok
6/39 ... ok
6/41 ... ok
13/49 ... ok
13/50 ... ok
6/51 ... ok
14/52 ... ok
14/53 ... ok
6/54 ... ok
14/62 ... ok
6/63 ... ok
6/64 ... ok
2/65 ... ok
14/66 ... ok
2/69 ... ok
17/71 ... ok
17/72 ... 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: ...
6/4 ... yes
6/5 ... yes
6/8 ... yes
6/9 ... yes
6/10 ... yes
6/11 ... yes
6/26 ... yes
6/27 ... yes
13/29 ... yes
6/32 ... yes
6/34 ... yes
2/36 ... yes
6/37 ... yes
6/38 ... yes
6/39 ... yes
6/41 ... yes
13/49 ... yes
13/50 ... yes
6/51 ... yes
14/52 ... yes
14/53 ... yes
6/54 ... yes
14/62 ... yes
6/63 ... yes
6/64 ... yes
2/65 ... yes
14/66 ... yes
2/69 ... yes
17/71 ... yes
17/72 ... 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: 3

Checking GitLab ... Finished