["list index out of range. [404]"] error when trying to clone or sync to master

When I try to COPY/SYNC TO MASTER a cloned/staging site that already have it fails and I get the error message: [“list index out of range. [404]”]

If I try to clone the master to a new staging site it also fails and I get: [“list index out of range. [168][404]”]

I tried t create a new child domain, but that also failed with this message: [“Failed to create child-domain for staging environment. [404]”]

I’ve run the CyberPanel upgrade command, but it didn’t make a difference.

How can I fix these issues?

Thanks