Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
303aba32
Verified
Commit
303aba32
authored
7 months ago
by
Jérôme Charaoui
Browse files
Options
Downloads
Patches
Plain Diff
howto/gitlab: document some registry issues (
team#41696
)
parent
993be128
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#192645
passed with warnings
7 months ago
Stage: build
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/gitlab.md
+25
-0
25 additions, 0 deletions
howto/gitlab.md
with
25 additions
and
0 deletions
howto/gitlab.md
+
25
−
0
View file @
303aba32
...
...
@@ -960,6 +960,31 @@ storage:
Another option that was explored while setting up the registry is
enabling the [debug server](https://docs.gitlab.com/ee/administration/packages/container_registry.html#enable-the-registry-debug-server).
#### HTTP 500 Internal Server Error
If pushing an image to the registry fails with a HTTP 500 error, it's possible
one of the image's layers is too large and exceeding the Nginx buffer. This can
be confirmed by looking in `/var/log/gitlab/nginx/gitlab_registry_error.log`:
```
2024/08/07 14:10:58 [crit] 1014#1014: *47617170 pwritev() "/run/nginx/client_body_temp/0000090449" has written only 110540 of 131040, client: [REDACTED], server: containers.torproject.org, request: "PATCH /v2/lavamind/ci-test/torbrowser/blobs/uploads/df0ee99b-34cb-4cb7-81d7-232640881f8f?_state=HMvhiHqiYoFBC6mZ_cc9AnjSKkQKvAx6sZtKCPSGVZ97Ik5hbWUiOiJsYXZhbWluZC9jaS10ZXN0L3RvcmJyb3dzZXIiLCJVVUlEIjoiZGYwZWU5OWItMzRjYi00Y2I3LTgxZDctMjMyNjQwODgxZjhmIiwiT2Zmc2V0IjowLCJTdGFydGVkQXQiOiIyMDI0LTA4LTA3VDEzOjU5OjQ0Ljk2MTYzNjg5NVoifQ%3D%3D HTTP/1.1", host: "containers.torproject.org"
```
This happens because Nginx buffers such uploads under `/run`, which is a tmpfs
with a default size of 10% of server's total memory. Possible solutions include
increasing the size of the tmpfs, or disabling buffering (but this is untested
and might not work).
#### HTTP 502 Bad Gateway
If such an error occurs when pushing an image that takes a long time (eg.
because of a slow uplink) it's possible the authorization token lifetime limit
is being exceeded.
By default the token lifetime is 5 minutes. This setting can be changed via the
GitLab admin web interface, in the Container registry configuration section.
## Disaster recovery
In case the entire GitLab machine is destroyed, a new server should be
...
...
This diff is collapsed.
Click to expand it.
Jérôme Charaoui
@lavamind
mentioned in issue
team#41696 (closed)
·
7 months ago
mentioned in issue
team#41696 (closed)
mentioned in issue team#41696
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment