Migration Error during GitLab Update via Docker: Check Constraint Violation on "oauth_access_tokens"

Hello GitLab community,

I’ve encountered an issue while trying to update GitLab through Docker. During the migration process, I received a PG::CheckViolation error related to a constraint on the “oauth_access_tokens” table. Here are the specifics:

ERROR:  check constraint "check_70f294ef54" of relation "oauth_access_tokens" is violated by some row

This occurred while executing the following migration:

20230223014251_validate_not_null_constraint_on_oauth_access_tokens_expires_in.rb

The full traceback suggests the issue originates from constraints_helpers.rb, specifically in the validate_check_constraint method.

As for troubleshooting, I’ve tried reverting back to the previous version (15.4.6-ce.0) and then updating again to 15.11.13-ce.0, but the error persists. I’d appreciate any insights or solutions to this problem.

Thank you in advance for your assistance!

Hi. Solution is to go back to 15.2.2