Hi All,
I am not able to replicate system user,always it's in the queue but never published.Also i tried by creating package with this system user and installed the same but installation is failing.
Seeing below error in /agents.author/publish.log
4.10.2016 17:02:55 - ERROR - publish : Replication (ACTIVATE) of /home/users/system/dTKSN5oOi4dl7ySbIGih not successful. Conversation follows
04.10.2016 17:02:55 - ERROR - publish : ------------------------------------------------
04.10.2016 17:02:55 - ERROR - publish : Sending message to localhost:4503
04.10.2016 17:02:55 - ERROR - publish : >> POST /bin/receive HTTP/1.0
04.10.2016 17:02:55 - ERROR - publish : >> Action: Activate
04.10.2016 17:02:55 - ERROR - publish : >> Path: /home/users/system/dTKSN5oOi4dl7ySbIGih
04.10.2016 17:02:55 - ERROR - publish : >> Handle: /home/users/system/dTKSN5oOi4dl7ySbIGih
04.10.2016 17:02:55 - ERROR - publish : >> Referer: about:blank
04.10.2016 17:02:55 - ERROR - publish : >> ...spooling 853 bytes...
04.10.2016 17:02:55 - ERROR - publish : --
04.10.2016 17:02:55 - ERROR - publish : << HTTP/1.1 400 Bad Request
04.10.2016 17:02:55 - ERROR - publish : << Date: Tue, 04 Oct 2016 11:32:55 GMT
04.10.2016 17:02:55 - ERROR - publish : << X-Content-Type-Options: nosniff
04.10.2016 17:02:55 - ERROR - publish : << Content-Type: text/plain;charset=UTF-8
04.10.2016 17:02:55 - ERROR - publish : << Content-Length: 103
04.10.2016 17:02:55 - ERROR - publish : << Server: Jetty(8.1.14.v20131031)
04.10.2016 17:02:55 - ERROR - publish : <<
04.10.2016 17:02:55 - ERROR - publish : << error: com.day.cq.replication.ReplicationException: Repository error during node import: rep:SystemUser
04.10.2016 17:02:55 - ERROR - publish : Message sent.
04.10.2016 17:02:55 - ERROR - publish : ------------------------------------------------
04.10.2016 17:02:55 - INFO - publish : Replication (ACTIVATE) of /home/users/system/dTKSN5oOi4dl7ySbIGih not successful.
I am seeing below error when installing package.
/home/users/system/dTKSN5oOi4dl7ySbIGih (org.xml.sax.SAXException: Node type rep:SystemUser does not exist org.xml.sax.SAXException: Node type rep:SystemUser does not exist javax.jcr.nodetype.NoSuchNodeTypeException: Node type rep:SystemUser does not exist)
Is anyone has any idea on how to fix this issue.
Thanks,
Kishore
Views
Replies
Total Likes
Why are you trying to replicate an system-user?
Views
Replies
Total Likes
i want this user to be avaialbe to work my services like schedulers.
And also i have observed the rep:SystemUser node type is not existed.I have created package with this type and installed it but still not seeing the nodetype.
Any thought on this?
Thanks,
Kishore
Views
Replies
Total Likes
If you need this use on prod to perform operations like:
Map<String, Object> param = new HashMap<String, Object>();
param.put(ResourceResolverFactory.SUBSERVICE, "datawrite");
ResourceResolver resolver = null;
try {
//Invoke the adaptTo method to create a Session used to create a QueryManager
resolver = resolverFactory.getServiceResourceResolver(param);
session = resolver.adaptTo(Session.class);
which is based on a system user - then manually create it on Publish instance.
I do not think you can replicate that or package it up. You need to create it as described here:
https://helpx.adobe.com/experience-manager/using/querying-experience-manager-sling.html
Hope this helps...
Views
Replies
Total Likes
i am aware of this code changes but i don't see option to create system user other than replicating from author.
Views
Replies
Total Likes
What is your AEM publish version? If there is no such node type, I think it's something wrong with publish or there is no such node type in that AEM version.
Views
Replies
Total Likes
Preferrable way to create a service user is via repo-init scripts https://sourcedcode.com/blog/aem/create-system-service-users-in-aem-6-5-with-code-configurations
These can be runmode specific as well. Thus, no manual intervention needed
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies