Hi there,
I’m trying to enable Gitlab Pages for my self-hosted Gitlab-CE instance. What I’ve done so far:
- Created an DNS wildcard record, pointed to the IP of the Gitlab instance.
- Created an wildcard SSL certificate and configured Gitlab to use it.
- Create simple pipeline to activate the pages.
Problem to solve
The problem is that, I get error 502 when I try to open that new page.
Here is what I see as an error:
Steps to reproduce
Here is the doc I followed: GitLab Pages administration | GitLab
Configuration
Here is the latest modifications I made to my gitlab.rb:
##! Define to enable GitLab Pages
pages_external_url "https://pages.gitlab.home.lan"
gitlab_pages['enable'] = true
# Custom SSL certs
gitlab_pages['ca'] = '/etc/gitlab/ssl/CA.pem'
gitlab_pages['cert'] = '/etc/gitlab/ssl/pages.gitlab.home.lan.crt'
gitlab_pages['cert_key'] = '/etc/gitlab/ssl/pages.gitlab.home.lan.key'
Versions
Please select whether options apply, and add the version information.
- Self-managed
- GitLab.com SaaS
- Self-hosted Runners
Versions
- GitLab (Web:
/help
or self-managed system information):
root@behemoth.home.lan:/etc/gitlab# gitlab-rake gitlab:env:info
System information
System: Ubuntu 22.04
Current User: git
Using RVM: no
Ruby Version: 3.1.5p253
Gem Version: 3.5.11
Bundler Version:2.5.11
Rake Version: 13.0.6
Redis Version: 7.0.15
Sidekiq Version:7.1.6
Go Version: unknown
GitLab information
Version: 17.3.1
Revision: 20a3292b4e6
Directory: /opt/gitlab/embedded/service/gitlab-rails
DB Adapter: PostgreSQL
DB Version: 14.11
URL: https://gitlab.home.lan
HTTP Clone URL: https://gitlab.home.lan/some-group/some-project.git
SSH Clone URL: git@gitlab.home.lan:some-group/some-project.git
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers:
GitLab Shell
Version: 14.38.0
Repository storages:
- default: unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell
Gitaly
- default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version: 17.3.1
- default Git Version: 2.45.2
root@behemoth.home.lan:/etc/gitlab#
- GitLab Runner, if self-hosted (Web
/admin/runners
or CLIgitlab-runner --version
):
root@behemoth.home.lan:/etc/gitlab# gitlab-runner --version
Version: 16.3.1
Git revision: d240d5bb
Git branch: 16-3-stable
GO version: go1.20.5
Built: 2023-09-14T23:38:16+0000
OS/Arch: linux/amd64
root@behemoth.home.lan:/etc/gitlab#
Infrastructure-as-Code
- Terraform/OpenTofu:
- Ansible:
Cloud-native
- Agent for Kubernetes (
Operate > Kubernetes clusters
): - Kubernetes (
kubectl version
):
In my opinion, these sections are not applicable.
Helpful resources
- Before opening a new topic, make sure to search for keywords in the forum search
- Check the GitLab Runner and GitLab projects for existing issues. If you encounter a bug, please create a bug report issue.
- Troubleshooting docs: GitLab Runner, self-managed GitLab instances, GitLab agent for Kubernetes, Infrastructure-as-Code.
Thanks for taking the time to be thorough in your request, it really helps!
Can you point me to any direction to solve that issue?
Thanks.