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
58d17712
Commit
58d17712
authored
Apr 29, 2021
by
Jaime Martinez
Committed by
Achilleas Pipinellis
Apr 29, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add intermittent error troubleshooting section to Pages
parent
72309019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
doc/administration/pages/index.md
doc/administration/pages/index.md
+29
-0
No files found.
doc/administration/pages/index.md
View file @
58d17712
...
...
@@ -1122,6 +1122,35 @@ to define the explicit address that the GitLab Pages daemon should listen on:
gitlab_pages
[
'listen_proxy'
]
=
'127.0.0.1:8090'
```
### Intermittent 502 errors or after a few days
If you run Pages on a system that uses
`systemd`
and
[
`tmpfiles.d`
](
https://www.freedesktop.org/software/systemd/man/tmpfiles.d.html
)
,
you may encounter intermittent 502 errors trying to serve Pages with an error similar to:
```
plaintext
dial tcp: lookup gitlab.example.com on [::1]:53: dial udp [::1]:53: connect: no route to host"
```
GitLab Pages creates a
[
bind mount
](
https://man7.org/linux/man-pages/man8/mount.8.html
)
inside
`/tmp/gitlab-pages-*`
that includes files like
`/etc/hosts`
.
However,
`systemd`
may clean the
`/tmp/`
directory on a regular basis so the DNS
configuration may be lost.
To stop
`systemd`
from cleaning the Pages related content:
1.
Tell
`tmpfiles.d`
to not remove the Pages
`/tmp`
directory:
```
shell
echo
'x /tmp/gitlab-pages-*'
>>
/etc/tmpfiles.d/gitlab-pages-jail.conf
```
1.
Restart GitLab Pages:
```
shell
sudo
gitlab-ctl restart gitlab-pages
```
### 404 error after transferring the project to a different group or user, or changing project path
If you encounter a
`404 Not Found`
error a Pages site after transferring a project to
...
...
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