I am trying to automatically create a copy of an existing App in a CICD pipeline.
Following the instructions as described here: https://www.mongodb.com/docs/atlas/app-services/apps/copy/,
I get this error when trying to push the updated/copied configuration to the new app:
push failed: failed to deploy app: error initializing stores: failed to initialize stores: (AtlasError) cannot create a new collection -- already using 500 collections of 500
Which seems to be incorrect because I only have 13 collections in my database / cluster (it is a shared cluster; but I assume the 500 limit is meant per user, right?).
Furthermore, if, in addition to the root_config.json as mentioned in the article, I also remove the sync directory from the app I want to copy before I copy its contents, the push does succeed. And afterwards I can enable sync without problems from the UI, which results in the exact same configuration that I am trying to push in the first placeā¦ but doing this through the UI does not meet my CI/CD needs.
Does anyone has any idea what could be going wrong here / suggestions how to fix this issue?
Note: Pushing a copy of the app as described in the article, including its sync directory, did succeed the first few times. It was only after a while that I started to get this error.
Any suggestions much appreciated!