Hello,
I have configured source-control with a bitbucket repository.
I have protected all resources used by the mobile application (Rest API and graphql). I haven't protected each query (in query library used in the app).
When i would like to protect a mobile app, i create a branch and i commit this branch in the main branch.
In the source control dashboard, i have an error on the last deployment (after protected the mobile app)
i have this error on tjhe logs file :
[2025-09-16T19:16:03.852Z] Unknown runSync failure (Bitbucket): root node not found
Error: root node not found
at QueryLibraryDeserializer.deserialize (/retool/backend/backend-oci.runfiles/_main/packages/common/toolscriptEngine/queryLibrary/deserializer.js:46:19)
at assembleQueryData (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/queries/assembleQueryData.js:43:73)
at async getQueryFileContents (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/queries/getQueryFileContents.js:45:28)
at async retrieveContents (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/retrieveContents.js:273:38)
at async retrieveAllContents (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/retrieveContents.js:306:27)
at async runPartialSync (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/index.js:274:149)
at async runSync (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/index.js:587:14)
at async pollSCMProviderAndSyncPages (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/syncWithGit/index.js:807:9)
at async attemptNextDeployHelper (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/jobsRunner/jobsRunnerUtils.js:95:25)
at async attemptNextDeploy (/retool/backend/backend-oci.runfiles/_main/backend/src/server/modules/jobsRunner/jobsRunnerUtils.js:226:30)
Can you help us on this error ?
Hi @marcchevalaz, you mentioned you haven't protected all of your queries in the query library. Now that your app is protected, it's great that you protected all resources used by the mobile app, but you should also protect all queries used in the app, as well as any queries accessing protected resources (even if they aren't being called in the app).
The error would suggest this as well since it seems to be having an issue finding something inside the Query Library.