peewee.DataError: integer out of range

Solution Verified - Updated -

Issue

  • gcworker failed while garbage collecting images due to tag expiration value was too high
  • posgtresql could not handle an integer bigger than 2147483647 and hence gcworker failed
gcworker stdout | 2021-07-09 14:42:36,273 [81] [DEBUG] [peewee] ('SELECT "t1"."id", "t1"."name", "t1"."repository_id", "t1"."manifest_id", "t1"."lifetime_start_ms", "t1"."lifetime_end_ms", "t1"."hidden", "t1"."reversion", "t1"."tag_kind_id", "t1"."linked_tag_id" FROM "tag" AS "t1" INNER JOIN "repository" AS "t2" ON ("t1"."repository_id" = "t2"."id") INNER JOIN "user" AS "t3" ON ("t2"."namespace_user_id" = "t3"."id") WHERE ((("t1"."repository_id" = %s) AND NOT ("t1"."lifetime_end_ms" IS %s)) AND ("t1"."lifetime_end_ms" <= (%s - ("t3"."removed_tag_expiration_s" * %s)))) LIMIT %s', [1851, None, 1625841756272, 1000, 10])

gcworker stdout | peewee.DataError: integer out of range

Environment

  • Red Hat Quay 3.5.2
  • Red Hat OpenShift Container Platform 4.7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In