Skip to content

"WARNING: Active Record does not support composite primary key" when running script for "Registry Disk Space Usage by Project"

We run a script based on Registry Disk Space Usage by Project. This has been running successfully for some time with no issues.

When running /usr/bin/gitlab-rails runner SCRIPT, including your original script, we get the following on stderr:

WARNING: Active Record does not support composite primary key.

security_findings has composite primary key. Composite primary key is ignored.

This is on a test server that was recently upgraded from gitlab 17.0.5 to 17.2.2. It did not have issue issue under 17.0.5.

This seems like a regression of #292909 (closed).