Open
Description
When attempting to update the resource counts for the Root Domain in CloudStack 4.20.1, the operation fails with the error message:
Unable to find account null
The Update Resource Count API returns this Null error, and the following is recorded in the logs:
2025-06-27 13:53:24,390 DEBUG [c.c.u.AccountManagerImpl] (qtp1513608173-5587:[ctx-9ac86613, ctx-bf018e4c]) (logid:466bcf55) Access granted to Account [{"accountName":"stackbill","id":5,"uuid":"f01a7022-8fec-4763-bc81-48994e9ac7ad"}] to Domain {"id":1,"name":"ROOT","path":"\/","uuid":"0c3d9800-4918-11f0-aaae-bc2411264067"} by AffinityGroupAccessChecker
2025-06-27 13:53:24,390 INFO [c.c.a.ApiServer] (qtp1513608173-5587:[ctx-9ac86613, ctx-bf018e4c]) (logid:466bcf55) Unable to find account null
This issue did not occur in CloudStack 4.20 and appears to be a regression introduced in version 4.20.1.
versions
CloudStack 4.20.1.0
The steps to reproduce the bug
- Log in to the CloudStack UI as the Root Admin user.
- Navigate to Domains.
- Click on the Root Domain.
- Click Update Resource Count.