Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bd937b23
Commit
bd937b23
authored
Jun 19, 2020
by
Julian Paul Dasmarinas
Committed by
Suzanne Selhorn
Jun 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: Added troubleshooting for DNS and certificate error in pages
parent
5575b24e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
doc/administration/pages/index.md
doc/administration/pages/index.md
+27
-0
No files found.
doc/administration/pages/index.md
View file @
bd937b23
...
@@ -655,3 +655,30 @@ The fix is to correct the source file permissions and restart Pages:
...
@@ -655,3 +655,30 @@ The fix is to correct the source file permissions and restart Pages:
sudo chmod
644 /opt/gitlab/embedded/ssl/certs/cacert.pem
sudo chmod
644 /opt/gitlab/embedded/ssl/certs/cacert.pem
sudo
gitlab-ctl restart gitlab-pages
sudo
gitlab-ctl restart gitlab-pages
```
```
### `dial tcp: lookup gitlab.example.com` and `x509: certificate signed by unknown authority`
When setting both
`inplace_chroot`
and
`access_control`
to
`true`
, you might encounter errors like:
```
plaintext
dial tcp: lookup gitlab.example.com on [::1]:53: dial udp [::1]:53: connect: cannot assign requested address
```
Or:
```
plaintext
open /opt/gitlab/embedded/ssl/certs/cacert.pem: no such file or directory
x509: certificate signed by unknown authority
```
The reason for those errors is that the files
`resolv.conf`
and
`ca-bundle.pem`
are missing inside the chroot.
The fix is to copy the host's
`/etc/resolv.conf`
and GitLab's certificate bundle inside the chroot:
```
shell
sudo mkdir
-p
/var/opt/gitlab/gitlab-rails/shared/pages/etc/ssl
sudo mkdir
-p
/var/opt/gitlab/gitlab-rails/shared/pages/opt/gitlab/embedded/ssl/certs/
sudo cp
/etc/resolv.conf /var/opt/gitlab/gitlab-rails/shared/pages/etc
sudo cp
/opt/gitlab/embedded/ssl/certs/cacert.pem /var/opt/gitlab/gitlab-rails/shared/pages/opt/gitlab/embedded/ssl/certs/
sudo cp
/opt/gitlab/embedded/ssl/certs/cacert.pem /var/opt/gitlab/gitlab-rails/shared/pages/etc/ssl/ca-bundle.pem
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment