Skip to content

tls error when retrieving build artifact

Overview

The error tls: oversized record received with length 20527 is received when attempting to retrieve an artifact

This error also happens when visiting a non-existant file

This happens when the user is not logged in

GitLab logs

==> /var/log/gitlab/gitlab-rails/production.log <==
Started GET "/project/builds/184/artifacts/file/app/build/outputs/apk/app-debug.apk" for 127.0.0.1 at 2016-06-24 10:42:07 -0400
Processing by Projects::ArtifactsController#file as HTML
  Parameters: {"namespace_id"=>"project", "project_id"=>"project", "build_id"=>"184", "path"=>"app/build/outputs/apk/app-debug.apk"}
Completed 401 Unauthorized in 42ms (ActiveRecord: 1.9ms)

==> /var/log/gitlab/gitlab-workhorse/current <==
2016-06-24_14:42:07.73742 2016/06/24 10:42:07 error: proxyRoundTripper: GET "" failed with: "tls: oversized record received with length 20527"
2016-06-24_14:42:07.73749 FILTERED.local @ - - [2016-06-24 10:42:07.665034427 -0400 EDT] "GET /project/builds/184/artifacts/file/app/build/outputs/apk/app-debug.apk HTTP/1.1" 502 48 "" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36" 0.072168