[DRE-maint] Bug#968626: gitlab: Error 500 during CI artifacts upload from gitlab-runner

devel at sumpfralle.de devel at sumpfralle.de
Mon Dec 14 02:09:20 GMT 2020


Hello,


On Tue, 18 Aug 2020 20:37:09 +0200 Maximilian Stein <m at steiny.biz> wrote:
> Since the upgrade to above mentioned version, artifact uploads from
> gitlab runners fail with an error 500.

the same error (with the same stacktrace) also occurs on my gitlab instance
after the upgrade of the Debian package (from 11.8 to 13.4).

With increased log_level (see /etc/gitlab/environments/production.rb) I saw the
following (slightly more verbose) log output in /var/log/gitlab/production.log:


Started POST "/api/v4/jobs/6118/artifacts?artifact_format=zip&artifact_type=archive&expire_in=2d" for x.x.x.x at 2020-12-14 02:35:51 +0100
  Ci::Build Load (1.5ms)  SELECT "ci_builds".* FROM "ci_builds" WHERE "ci_builds"."type" = $1 AND "ci_builds"."id" = $2 LIMIT $3  [["type", "Ci::Build"], ["id", 6118], ["LIMIT", 1]]
  Project Load (1.2ms)  SELECT "projects".* FROM "projects" WHERE "projects"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
  Ci::Runner Load (0.9ms)  SELECT "ci_runners".* FROM "ci_runners" WHERE "ci_runners"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
  Namespace Load (1.1ms)  SELECT "namespaces".* FROM "namespaces" WHERE "namespaces"."id" = $1 LIMIT $2  [["id", 4], ["LIMIT", 1]]
  Plan Load (1.1ms)  SELECT "plans".* FROM "plans" WHERE "plans"."name" = $1 LIMIT $2  [["name", "default"], ["LIMIT", 1]]
  PlanLimits Load (1.4ms)  SELECT "plan_limits".* FROM "plan_limits" WHERE "plan_limits"."plan_id" = $1 LIMIT $2  [["plan_id", 1], ["LIMIT", 1]]
  Group Load (3.1ms)  SELECT "namespaces".* FROM "namespaces" WHERE "namespaces"."type" = $1 AND "namespaces"."id" = $2  [["type", "Group"], ["id", 4]]
  Ci::JobArtifact Load (1.1ms)  SELECT "ci_job_artifacts".* FROM "ci_job_artifacts" WHERE "ci_job_artifacts"."job_id" = $1 AND "ci_job_artifacts"."file_type" = $2 LIMIT $3  [["job_id", 6118], ["file_type", 1], ["LIMIT", 1]]
  User Load (1.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
  Route Load (1.0ms)  SELECT "routes".* FROM "routes" WHERE "routes"."source_id" = $1 AND "routes"."source_type" = $2 LIMIT $3  [["source_id", 4], ["source_type", "Project"], ["LIMIT", 1]]
undefined method `empty?' for 201:Integer excluded from capture: DSN not set
  
NoMethodError (undefined method `empty?' for 201:Integer):
  
lib/gitlab/middleware/read_only/controller.rb:51:in `call'
lib/gitlab/middleware/read_only.rb:18:in `call'
lib/gitlab/middleware/same_site_cookies.rb:27: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:23:in `call'
config/initializers/fix_local_cache_middleware.rb:9:in `call'
lib/gitlab/metrics/requests_rack_middleware.rb:60:in `call'
lib/gitlab/middleware/release_env.rb:12:in `call'



For now I sadly could not find a way to work around this issue or gather more
debugging information.

I would appreciate any hints!

Cheers,
Lars



More information about the Pkg-ruby-extras-maintainers mailing list