Environment
Symptoms
When running /usr/share/cb/cbcheck sensor-builds --update, an error similar to below is seen
sqlalchemy.exc.IntegrityError: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constra_sensorbuild_version_and_architecture"
DETAIL: Key (version_string, architecture)=(007.000.001.16744, 32) already exists.
Cause
The utility is trying to insert a second sensor package that already exists.
Resolution