Gitlab dependency proxy fails with 500s on v6 Errno::ENETUNREACH
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
I am trying a pull from dependency proxy container images, on an host with both ipv6 and ipv4 addresses. When the v6 routing happens to be broken then pulls fail with HTTP 500.
Steps to reproduce
Run dependency proxy on an host with both v6 and v4 addresses, and no default v6 route configured.
What is the current bug behavior?
dependency proxy 500s on container pulls
What is the expected correct behavior?
I was expecting v6 network errors to fallback on v4 and retried
Relevant logs and/or screenshots
from /var/log/gitlab/gitlab-rails/exceptions_json.log
{
"severity": "ERROR",
"time": "2024-01-20T14:52:24.052Z",
"correlation_id": "01HMKNQK2T9MDNC0A3S8E2P1Y2",
"meta.caller_id": "Groups::DependencyProxyForContainersController#manifest",
"meta.remote_ip": "REDACTED",
"meta.feature_category": "dependency_proxy",
"meta.user": "filippog",
"meta.user_id": 6,
"meta.root_namespace": "global",
"meta.client_id": "user/6",
"exception.class": "Errno::ENETUNREACH",
"exception.message": "Failed to open TCP connection to 2600:1f18:2148:bc00:41e1:f57f:e2e2:5e54:443 (Network is unreachable - connect(2) for \"2600:1f18:2148:bc00:41e1:f57f:e2e2:5e54\" port 443)",
"exception.backtrace": [
"lib/gitlab/http.rb:38:in `public_send'",
"lib/gitlab/http.rb:38:in `block (2 levels) in singleton class'",
"app/services/dependency_proxy/request_token_service.rb:10:in `execute'",
"app/controllers/groups/dependency_proxy_for_containers_controller.rb:161:in `ensure_token_granted!'",
"app/controllers/application_controller.rb:468:in `set_current_admin'",
"lib/gitlab/session.rb:11:in `with_session'",
"app/controllers/application_controller.rb:459:in `set_session_storage'",
"lib/gitlab/i18n.rb:114:in `with_locale'",
"lib/gitlab/i18n.rb:120:in `with_user_locale'",
"app/controllers/application_controller.rb:450:in `set_locale'",
"app/controllers/application_controller.rb:443:in `set_current_context'",
"lib/gitlab/metrics/elasticsearch_rack_middleware.rb:16:in `call'",
"lib/gitlab/middleware/memory_report.rb:13:in `call'",
"lib/gitlab/middleware/speedscope.rb:13:in `call'",
"lib/gitlab/database/load_balancing/rack_middleware.rb:23:in `call'",
"lib/gitlab/middleware/rails_queue_duration.rb:33:in `call'",
"lib/gitlab/etag_caching/middleware.rb:21:in `call'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `block in call'",
"lib/gitlab/metrics/web_transaction.rb:46:in `run'",
"lib/gitlab/metrics/rack_middleware.rb:16:in `call'",
"lib/gitlab/middleware/go.rb:20:in `call'",
"lib/gitlab/middleware/query_analyzer.rb:11:in `block in call'",
"lib/gitlab/database/query_analyzer.rb:37:in `within'",
"lib/gitlab/middleware/query_analyzer.rb:11:in `call'",
"lib/gitlab/middleware/multipart.rb:173:in `call'",
"lib/gitlab/middleware/read_only/controller.rb:50:in `call'",
"lib/gitlab/middleware/read_only.rb:18:in `call'",
"lib/gitlab/middleware/unauthenticated_session_expiry.rb:18:in `call'",
"lib/gitlab/middleware/same_site_cookies.rb:27:in `call'",
"lib/gitlab/middleware/path_traversal_check.rb:35:in `call'",
"lib/gitlab/middleware/handle_malformed_strings.rb:21:in `call'",
"lib/gitlab/middleware/basic_health_check.rb:25:in `call'",
"lib/gitlab/middleware/handle_ip_spoof_attack_error.rb:25:in `call'",
"lib/gitlab/middleware/request_context.rb:15:in `call'",
"lib/gitlab/middleware/webhook_recursion_detection.rb:15:in `call'",
"config/initializers/fix_local_cache_middleware.rb:11:in `call'",
"lib/gitlab/middleware/compressed_json.rb:44:in `call'",
"lib/gitlab/middleware/rack_multipart_tempfile_factory.rb:19:in `call'",
"lib/gitlab/middleware/sidekiq_web_static.rb:20:in `call'",
"lib/gitlab/metrics/requests_rack_middleware.rb:79:in `call'",
"lib/gitlab/middleware/release_env.rb:13:in `call'"
],
"exception.cause_class": "Errno::ENETUNREACH",
"user.username": "filippog",
"tags.program": "web",
"tags.locale": "en",
"tags.feature_category": "dependency_proxy",
"tags.correlation_id": "01HMKNQK2T9MDNC0A3S8E2P1Y2"
}
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Debian 12 Current User: git Using RVM: no Ruby Version: 3.1.4p223 Gem Version: 3.4.22 Bundler Version:2.5.4 Rake Version: 13.0.6 Redis Version: 7.0.14 Sidekiq Version:7.1.6 Go Version: unknown GitLab information Version: 16.8.0 Revision: 16896fceb7a Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 13.12 URL: https://XXX HTTP Clone URL: https://XXX/some-group/some-project.git SSH Clone URL: git@XXX:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: saml GitLab Shell Version: 14.32.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: 16.8.0 - default Git Version: 2.42.0
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.32.0 ? ... OK (14.32.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... Checking git@autistici.org yes Mailroom enabled? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 38/2 ... yes 24/3 ... yes 37/4 ... yes 24/5 ... yes 38/6 ... yes 37/7 ... yes 38/8 ... yes 37/10 ... yes 37/11 ... yes 37/12 ... yes 37/13 ... yes 37/14 ... yes 24/15 ... yes 38/16 ... yes 24/17 ... yes 37/18 ... yes 38/19 ... yes 37/21 ... yes 38/22 ... yes 37/23 ... yes 37/25 ... yes 37/26 ... yes 38/27 ... yes 38/28 ... yes 38/29 ... yes 24/30 ... yes 38/31 ... yes 37/32 ... yes 24/33 ... yes 37/34 ... yes 24/35 ... yes 38/37 ... yes 24/38 ... yes 38/39 ... yes 37/40 ... yes 38/41 ... yes 37/42 ... yes 37/43 ... yes 37/45 ... yes 24/46 ... yes 38/47 ... yes 37/48 ... yes 37/49 ... yes 37/50 ... yes 37/51 ... yes 37/52 ... yes 37/54 ... yes 38/55 ... yes 37/56 ... yes 24/57 ... yes 38/58 ... yes 24/60 ... yes 38/61 ... yes 37/62 ... yes 37/63 ... yes 24/64 ... yes 38/65 ... yes 37/66 ... yes 37/67 ... yes 38/68 ... yes 38/69 ... yes 38/70 ... yes 38/71 ... yes 24/72 ... yes 24/73 ... yes 38/74 ... yes 38/75 ... yes 24/76 ... yes 37/78 ... yes 38/79 ... yes 24/80 ... yes 38/81 ... yes 37/82 ... yes 37/83 ... yes 37/84 ... yes 37/85 ... yes 37/86 ... yes 38/87 ... yes 37/88 ... yes 37/90 ... yes 37/91 ... yes 24/92 ... yes 24/93 ... yes 37/94 ... yes 38/95 ... yes 38/96 ... yes 38/97 ... yes 38/98 ... yes 24/99 ... yes 24/100 ... yes 37/101 ... yes 38/102 ... yes 24/104 ... yes 37/105 ... yes 37/107 ... yes 24/108 ... yes 24/109 ... yes 24/110 ... yes 24/111 ... yes 24/112 ... yes 24/113 ... yes 25/114 ... yes 37/115 ... yes 24/116 ... yes 25/117 ... yes 24/118 ... yes 37/119 ... yes 37/120 ... yes 37/121 ... yes 24/122 ... yes 24/123 ... yes 24/125 ... yes 24/126 ... yes 37/128 ... yes 3/130 ... yes 37/131 ... yes 24/133 ... yes 38/134 ... yes 25/135 ... yes 39/136 ... yes 24/137 ... yes 24/138 ... yes 37/139 ... yes 90/140 ... yes 37/141 ... yes 37/142 ... yes 25/143 ... yes 39/144 ... yes 22/145 ... yes 86/146 ... yes 40/147 ... yes 24/148 ... yes 3/149 ... yes 24/151 ... yes 24/152 ... yes 24/153 ... yes 24/154 ... yes 37/155 ... yes 37/157 ... yes 22/158 ... yes 37/160 ... yes 24/161 ... yes 17/162 ... yes 39/163 ... yes 24/164 ... yes 37/165 ... yes 17/166 ... yes 37/167 ... yes 37/168 ... yes 24/169 ... yes 17/170 ... yes 37/171 ... yes 5/173 ... yes 24/174 ... yes 24/175 ... yes 24/176 ... yes 37/177 ... yes 37/178 ... yes 31/181 ... yes 25/182 ... yes 37/183 ... yes 24/184 ... yes 37/185 ... yes 31/186 ... yes 24/187 ... yes 705/188 ... yes 31/190 ... yes 86/191 ... yes 54/192 ... yes 24/193 ... yes 24/195 ... yes 31/196 ... yes 37/197 ... yes 24/199 ... yes 37/201 ... yes 24/202 ... yes 24/203 ... yes 37/204 ... yes 37/205 ... yes 24/206 ... yes 37/207 ... yes 30/208 ... yes 24/209 ... yes 22/210 ... yes 24/211 ... yes 24/212 ... yes 37/213 ... yes 24/214 ... yes 24/215 ... yes 24/216 ... yes 24/217 ... yes 37/218 ... yes 37/220 ... yes 90/221 ... yes 38/222 ... yes 37/223 ... yes 37/224 ... yes 40/225 ... yes 24/226 ... yes 82/228 ... yes 24/230 ... yes 37/231 ... yes 37/232 ... yes 37/233 ... yes 24/234 ... yes 24/235 ... yes 39/236 ... yes 24/237 ... yes 39/238 ... yes 24/239 ... yes 39/240 ... yes 58/241 ... yes 24/242 ... yes 5/243 ... yes 37/244 ... yes 24/245 ... yes 37/246 ... yes 24/247 ... yes 24/248 ... yes 24/249 ... yes 37/250 ... yes 24/251 ... yes 37/252 ... yes 37/254 ... yes 39/255 ... yes 37/256 ... yes 39/258 ... yes 24/259 ... yes 24/260 ... yes 37/261 ... yes 24/262 ... yes 24/263 ... yes 24/265 ... yes 24/266 ... yes 24/267 ... yes 24/269 ... yes 24/270 ... yes 24/271 ... yes 37/272 ... yes 86/273 ... yes 37/274 ... yes 37/275 ... yes 24/276 ... yes 37/278 ... yes 24/279 ... yes 24/280 ... yes 24/281 ... yes 24/282 ... yes 24/283 ... yes 83/284 ... yes 24/285 ... yes 37/286 ... yes 86/288 ... yes 37/289 ... yes 39/290 ... yes 24/291 ... yes 37/292 ... yes 63/293 ... yes 24/294 ... yes 37/295 ... yes 55/296 ... yes 37/297 ... yes 13/298 ... yes 24/299 ... yes 55/300 ... yes 3/303 ... yes 5/304 ... yes 74/305 ... yes 74/306 ... yes 74/307 ... yes 37/308 ... yes 38/310 ... yes 37/311 ... yes 24/312 ... yes 55/313 ... yes 74/314 ... yes 83/315 ... yes 55/316 ... yes 83/317 ... yes 13/319 ... yes 55/322 ... yes 55/323 ... yes 85/324 ... yes 74/325 ... yes 13/326 ... yes 84/327 ... yes 63/329 ... yes 55/330 ... yes 86/331 ... yes 86/332 ... yes 85/333 ... yes 24/334 ... yes 30/335 ... yes 30/336 ... yes 85/337 ... yes 30/338 ... yes 24/339 ... yes 85/340 ... yes 85/341 ... yes 55/342 ... yes 86/343 ... yes 5/344 ... yes 5/345 ... yes 5/346 ... yes 55/347 ... yes 86/348 ... yes 85/349 ... yes 5/350 ... yes 79/351 ... yes 2/352 ... yes 86/353 ... yes 705/354 ... yes 85/355 ... yes 37/356 ... yes 85/357 ... yes 86/359 ... yes 83/360 ... yes 86/361 ... yes 86/362 ... yes 86/363 ... yes 83/364 ... yes 85/365 ... yes 84/366 ... yes 55/368 ... yes 37/369 ... yes 85/370 ... yes 55/373 ... yes 82/374 ... yes 84/375 ... yes 55/376 ... yes 83/377 ... yes 39/378 ... yes 85/379 ... yes 39/380 ... yes 5/381 ... yes 85/382 ... yes 86/383 ... yes 85/384 ... yes 84/385 ... yes 85/386 ... yes 55/387 ... yes 24/388 ... yes 24/389 ... yes 55/390 ... yes 83/391 ... yes 24/392 ... yes 55/393 ... yes 85/394 ... yes 70/395 ... yes 83/396 ... yes 85/397 ... yes 88/398 ... yes 87/399 ... yes 74/400 ... yes 85/401 ... yes 85/403 ... yes 85/404 ... yes 85/405 ... yes 85/406 ... yes 83/407 ... yes 86/408 ... yes 83/409 ... yes 85/410 ... yes 85/411 ... yes 55/412 ... yes 85/413 ... yes 85/414 ... yes 74/415 ... yes 24/416 ... yes 85/417 ... yes 85/418 ... yes 86/419 ... yes 86/420 ... yes 85/421 ... yes 85/422 ... yes 85/423 ... yes 85/424 ... yes 86/425 ... yes 86/426 ... yes 86/427 ... yes 86/428 ... yes 85/429 ... yes 86/430 ... yes 24/431 ... yes 85/432 ... yes 86/433 ... yes 85/434 ... yes 86/435 ... yes 87/436 ... yes 86/437 ... yes 86/438 ... yes 24/439 ... yes 85/440 ... yes 85/441 ... yes 82/442 ... yes 24/443 ... yes 86/444 ... yes 86/445 ... yes 83/446 ... yes 86/447 ... yes 90/448 ... yes 90/449 ... yes 37/450 ... yes 88/451 ... yes 90/452 ... yes 86/453 ... yes 85/454 ... yes 85/455 ... yes 90/456 ... yes 83/457 ... yes 85/458 ... yes 86/459 ... yes 70/461 ... yes 90/462 ... yes 90/463 ... yes 90/464 ... yes 90/465 ... yes 90/466 ... yes 90/467 ... yes 86/468 ... yes 37/469 ... yes 37/470 ... yes 86/471 ... yes 86/472 ... yes 83/473 ... yes 115/474 ... yes 24/475 ... yes 85/476 ... yes 86/477 ... yes 699/478 ... yes 86/480 ... yes 85/481 ... yes 86/482 ... yes 86/483 ... yes 63/484 ... yes 90/485 ... yes 90/486 ... yes 90/487 ... yes 87/488 ... yes 90/489 ... yes 74/490 ... yes 85/491 ... yes 85/492 ... yes 705/493 ... yes 86/494 ... yes 24/495 ... yes 86/496 ... yes 87/497 ... yes 82/498 ... yes 108/500 ... yes 6/502 ... yes 110/504 ... yes 110/505 ... yes 110/506 ... yes 110/507 ... yes 110/508 ... yes 110/509 ... yes 110/510 ... yes 110/511 ... yes 110/512 ... yes 110/513 ... yes 110/514 ... yes 110/515 ... yes 110/516 ... yes 110/517 ... yes 110/518 ... yes 110/519 ... yes 110/520 ... yes 110/521 ... yes 110/522 ... yes 110/523 ... yes 110/524 ... yes 110/525 ... yes 110/526 ... yes 110/527 ... yes 110/528 ... yes 110/529 ... yes 110/530 ... yes 110/531 ... yes 110/532 ... yes 110/533 ... yes 110/534 ... yes 110/535 ... yes 83/536 ... yes 85/537 ... yes 24/538 ... yes 86/539 ... yes 108/540 ... yes 86/541 ... yes 108/542 ... yes 86/543 ... yes 83/544 ... yes 67/545 ... yes 85/546 ... yes 86/547 ... yes 86/548 ... yes 83/549 ... yes 83/550 ... yes 83/551 ... yes 70/552 ... yes 85/553 ... yes 85/554 ... yes 83/555 ... yes 85/556 ... yes 85/557 ... yes 90/558 ... yes 37/559 ... yes 108/560 ... yes 86/561 ... yes 74/562 ... yes 55/563 ... yes 86/564 ... yes 120/565 ... yes 120/566 ... yes 37/567 ... yes 126/568 ... yes 85/569 ... yes 87/570 ... yes 90/571 ... yes 85/572 ... yes 86/573 ... yes 85/574 ... yes 84/575 ... yes 86/576 ... yes 86/577 ... yes 90/578 ... yes 90/579 ... yes 83/580 ... yes 86/581 ... yes 86/582 ... yes 82/583 ... yes 87/584 ... yes 83/585 ... yes 671/587 ... yes 84/588 ... yes 84/589 ... yes 55/590 ... yes 86/591 ... yes 90/593 ... yes 85/594 ... yes 86/595 ... yes 86/596 ... yes 84/597 ... yes 86/598 ... yes 86/599 ... yes 685/600 ... yes 85/601 ... yes 85/602 ... yes 85/604 ... yes 90/605 ... yes 90/606 ... yes 84/607 ... yes 694/608 ... yes 86/609 ... yes 694/610 ... yes 699/611 ... yes 699/612 ... yes 699/613 ... yes 83/614 ... yes 83/615 ... yes 705/616 ... yes 685/617 ... yes 709/618 ... yes 709/619 ... yes 83/620 ... yes 108/621 ... yes 83/622 ... yes 715/623 ... yes 24/624 ... yes 86/625 ... yes 55/626 ... yes 85/627 ... yes 722/628 ... yes Redis version >= 6.0.0? ... yes Ruby version >= 3.0.6 ? ... yes (3.1.4) Git user has default SSH configuration? ... yes Active users: ... 48 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Possible fixes
The following issues seem somewhat related: #344788 (closed) #335217 (closed)