cf jobs command throws an error when executed in a certain space.
The output of
cf target -o system -s scheduler
cf logs scheduler-broker --recent
may show an error like this:
2025-02-26T20:54:07.78-0300 [APP/PROC/WEB/1] OUT {"level":"info","ts":1740614047.784752,"caller":"log/logger.go:25","msg":"gorp: multiple rows returned for: SELECT * FROM service_bindings WHERE app_guid=? - [########-####-####-####-############] service binding repo
Root cause is multiple entries in the service_bindings table. The scheduler app is designed to only support and allow one instance per space.
We do not understand why duplicate service bindings are created, so the best way forward is to gather the following artifacts:
This should provide R&D will enough data to start an investigation on the root cause.
While deleting all apps and re-pushing them has been shown to remove the duplicate service bindings, this brute-force approach is not suitable to every situation.