RuntimeError: The data types numeric and int are incompatible in the '&' operator.

Kellen Fields
Kellen Fields
  • Updated

Author: Kellen Fields

Date: April 3, 2025

Audience: Self-hosted Administrators 

Environmental details: Replicated - KOTS, Self-Hosted, MSSQL

Summary

When deploying a new version of KOTS, upon navigating to the hosted URL, you receive an error message: 'Tenant does not exist'


image (2).pngAnd logging in the contour.log (core pod) states:

RuntimeError: An error occurred while upgrading tenant jama_prod: java.sql.SQLException: The data types numeric and int are incompatible in the '&' operator.

Solution

Run the following query to ensure the column is set to BIGINT. Run the following commands on the Database:

ALTER TABLE aclpermissionentry 
ALTER COLUMN mask BIGINT

 

Then run the following command on the application server to delete the core statefulset:
 
 kubectl delete sts core
 
After that, redeploy from the KOTS Admin Console as usual.

Cause

This is caused by a Column mask in the database that is of type 'numeric' when it is supposed to be of type 'BigInt'.

References

Please feel free to leave feedback in the comments below.

 

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.