500 error when publishing Content Fragments in AEMaaCS
In Adobe Experience Manager as a Cloud Service, publishing Content Fragments through the New Editor returns a 500 error when the publishing workflow fails to create a workflow package. To fix this issue, grant the required permissions on /etc/workflow/packages to the affected authoring group.
Description description
Environment
- Adobe Experience Manager as a Cloud Service (AEMaaCS), all versions
Issue/Symptoms
- Publishing Content Fragments using the New Editor in AEM Cloud Sites returns a 500 error.
- Manage/Quick Publish options from the classic screens continue to work as expected.
- The network call for publishing returns HTTP 500 with a message about failure to create a workflow package.
- Error logs include messages such as
Unable to create the workflow packageand repeated attempts to create the workflow package.
Resolution resolution
Follow the steps below to resolve the issue.
-
Review the permissions for the affected authoring group and confirm that it has both
jcr:readandrep:writepermissions on/etc/workflow/packages. -
Choose one of the following approaches to grant the required permissions:
- Preferred: Add the authoring group to the built-in
workflow-usersgroup, which already has the necessary access. - Alternative: Grant
jcr:readandrep:writepermissions directly on/etc/workflow/packagesto the affected group.
- Preferred: Add the authoring group to the built-in
-
Apply the permission changes using repoinit (config-as-code). Manual changes in the UI or directly on the environment will not persist across deployments.
Example repoinit script to grant permissions directly:
set ACL on /etc/workflow/packagesallow jcr:read,rep:write to group "<your-authoring-group>"end -
Replace
<your-authoring-group>with the actual group name. -
Deploy the repoinit configuration.
-
After deployment, have an affected author log out and log back in, then retry publishing a Content Fragment via the New Editor to confirm the issue is resolved.