peewee.DataError: integer out of range

Solution Verified - Updated -

Issue

  • Intermittent errors when pushing images to Quay. Error messages seen on podman push are:

    "received unexpected HTTP status: 502 Bad Gateway" response.
    
  • 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.x
  • Red Hat OpenShift Container Platform
    • 4.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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content