Cloud Manager build and deployment errors · updated
repoinit errors in AEM as a Cloud Service builds: what the analyser checks
The repoinit analyser checks the syntax of every repoinit section in your project, locally and in Cloud Manager, so a typo in a create service user, create path or set ACL statement fails the build. Fix the statement the error points to and test repoinit on the local SDK, where it runs at startup.
Why repoinit matters on Cloud Service
Service users, their ACLs, folder structures and node types are mutable content. Adobe's deployment page lists repoinit as one of two ways Cloud Manager deploys mutable content, and the analyser suggests converting Sling bundle resources into repoinit statements.
Common syntax mistakes
- Missing 'end' after an ACL block.
- Paths with unescaped special characters or missing node types in create path.
- Principal names that don't match the created service user.
- Statements split across lines incorrectly in the OSGi configuration's scripts array.
| Statement | Example |
|---|---|
| Service user | create service user my-service-user with path system/my-project |
| Path | create path (sling:Folder) /conf/my-project |
| ACL | set ACL for my-service-user / allow jcr:read on /content/my-project / end |
Repoinit in an OSGi config (org.apache.sling.jcr.repoinit.RepositoryInitializer~my-project.cfg.json)
{
"scripts": [
"create service user my-service-user with path system/my-project",
"set ACL for my-service-user\n allow jcr:read on /content/my-project\nend"
]
}How to fix it
- Read the analyser error for the failing statement.
- Check the statement against the repoinit grammar (end after ACL blocks, valid paths).
- Start the local SDK and check the log for repoinit errors.
- Rebuild and re-run the pipeline.
Related pages on this site
Questions
Does Cloud Manager check repoinit before deploying?
Yes. Adobe lists the repoinit analyser as running in the local SDK build and in Cloud Manager.
Should service users be created with a content package?
On Cloud Service, repoinit is the usual way to create service users and their ACLs.
Where do I put repoinit scripts?
In an OSGi configuration for the RepositoryInitializer factory in your ui.config module.
Sources
- Adobe: AEM as a Cloud Service SDK Build Analyzer Maven Plugin (checked 10 Nov 2026)
- Adobe: Deploying to AEM as a Cloud Service (checked 10 Nov 2026)
Facts about Adobe's platform are from the linked Adobe pages, checked 10 Nov 2026. Explanations and examples are ours unless marked as Adobe's.