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.
StatementExample
Service usercreate service user my-service-user with path system/my-project
Pathcreate path (sling:Folder) /conf/my-project
ACLset 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

  1. Read the analyser error for the failing statement.
  2. Check the statement against the repoinit grammar (end after ACL blocks, valid paths).
  3. Start the local SDK and check the log for repoinit errors.
  4. 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

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.

Scan, Convert, Verify, Install

How Surge Migrate helps with a move to AEM as a Cloud Service

Surge Migrate moves a website from any CMS to any CMS, and AEM as a Cloud Service is one of the systems it writes. Pages are converted automatically, and you check the result before you install anything.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →

Content packages installed on a local AEM as a Cloud Service SDK. See the worked examples. For AEM 6.5 code, the free readiness scan reads a repository zip or a Best Practices Analyzer CSV in your browser and lists Cloud Service blockers with file, fix and effort. Nothing is uploaded.