Dear Friends,
I can’t figure out how to activate gitlab pages on my Gitlab Docker CE 11.0.2 instance. I was going for the most basic configuration as described in Gitlab Docs. I have therefore commented out a single line in the gitlab.rb
file and filled in the proper domain (obfuscated):
################################################################################ ## GitLab Pages ##! Docs: https://docs.gitlab.com/ce/pages/administration.html ################################################################################ ##! Define to enable GitLab Pages pages_external_url "http://xxx.xxxx.xx/" #gitlab_pages['enable'] = true ##! Configure to expose GitLab Pages on external IP address, serving the HTTP # gitlab_pages['external_http'] = [] ##! Configure to expose GitLab Pages on external IP address, serving the HTTPS # gitlab_pages['external_https'] = [] # gitlab_pages['listen_proxy'] = "localhost:8090" # gitlab_pages['redirect_http'] = true # gitlab_pages['use_http2'] = true # gitlab_pages['dir'] = "/var/opt/gitlab/gitlab-pages" # gitlab_pages['log_directory'] = "/var/log/gitlab/gitlab-pages" ##! Prometheus metrics for Pages docs: https://gitlab.com/gitlab-org/gitlab-pages/#enable-prometheus-metrics # gitlab_pages['metrics_address'] = ":9235"
After gitlab-ctl reconfigure
, the gitlab-pages service keeps restarting. According to the log:
2018-07-01_22:25:16.82701 time="2018-07-01T22:25:16Z" level=info msg="GitLab Pages Daemon" revision=69b7e19 version=dev 2018-07-01_22:25:16.82709 time="2018-07-01T22:25:16Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages" 2018-07-01_22:25:16.82793 time="2018-07-01T22:25:16Z" level=info msg="running the daemon as unprivileged user" gid=998 in-place=false uid=998 2018-07-01_22:25:16.85125 time="2018-07-01T22:25:16Z" level=info msg="chroot failed" error="Failed to bind mount /var/opt/gitlab/gitlab-rails/shared/pages on /tmp/gitlab-pages-1530483916827985446/pages. operation not permitted"
I have also attempted to also un-comment the “enable” line just below, and reconfigure. (Had a similar issue with Mattermost some time ago). I have tried to delete and rebuild the container. I have tried to modify the file access rights in the /var/opt/gitlab/gitlab-rails/shared/pages
path. No joy, actually no difference at all.
Any idea what am I doing wrong (this time?).