I have created one service users in service-users.yaml file and pushed the changes to the test environment.
But after deploying that into test environment got the below error. Can anyone help here as i am very new to this service user creation.
*ERROR* [OsgiInstallerImpl] biz.netcentric.cq.tools.actool.installhook.AcToolInstallHook Exception during execution of install hook: java.lang.IllegalArgumentException: Invalid yaml source file /jcr_root/apps/infra-core/acl-config/retail/config.ret/service-users.yaml: while parsing a block mapping\n in 'string', line 20, column 7:\n - articles-service-user:\n
Solved! Go to Solution.
Views
Replies
Total Likes
After copying the yaml file in https://codebeautify.org/yaml-validator found 2 issues at line no 11(add space) and 32 (remove space) after correcting that the yaml file is validated properly.
Hi,
See if there is any syntax errors in the file. yaml file will throw error if there are extra spaces or tabs space instead of normal space.
If you can share full file then it will be easy to find the error which is throwing the above exception.
# Service users for Retail - user_config: - articles-service-user: - name: Service User, Articles path: /content/dam isSystemUser: true - retailpublic-service-user: - name: Service User, Retail-Public path: /content/dam isSystemUser: true - ace_config: - articles-service-user: - path: /content permission: allow privileges: jcr:read - path: /var/retail permission: allow privileges: jcr:read,rep:write,jcr:versionManagement,jcr:lockManagement - retail-public-service-user: - path: /var/retail permission: allow privileges: jcr:read,jcr:write,crx:replicate
After copying the yaml file in https://codebeautify.org/yaml-validator found 2 issues at line no 11(add space) and 32 (remove space) after correcting that the yaml file is validated properly.
It worked out!!!!! Thank you!!
was it good on your local?
as @Ravi_Pampana asked, please attach your yaml to find any errors.
Also, please make sure you specify your ACl as a list.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies