Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Ensure Service user issue aem 6.5

sathyaprakasha2
Level 2
Level 2

Hi Team,

 

Ensure service user is working fine on our local instance but when we deployed the same config in AMS. Its throwing a error.. any input on this?

 

Caused by: org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.adobe.acs.acs-aem-commons-bundle [613] and sub service ensure-service-user

1 Accepted Solution
Ankur_Khare
Correct answer by
Community Advisor
Community Advisor

Make sure the system user is present on AMS, which you have created on your local and also make sure relevant permission are added to that system user on AMS.

View solution in original post

6 Replies
Ankur_Khare
Correct answer by
Community Advisor
Community Advisor

Make sure the system user is present on AMS, which you have created on your local and also make sure relevant permission are added to that system user on AMS.

View solution in original post

Albin_Issac
Community Advisor
Community Advisor

This error is thrown sometime when you only configure the bundleid and username(bundleid:username) in "Apache Sling Service User Mapper Service Amendment"

Configure the service mapping as following - bundleid:subServiceName=userName e.g. com.adobe.cq.sample.we.retail.core:testservice=testuser

Ensure the proper bundle is is configured

aem-service-user.png

 

aem-service-user-mapping.png

 

Regards

Albin I

www.albinsblog.com

 

sathyaprakasha2
Level 2
Level 2
bundleid:subServiceName=userName - Mine also same like this ...but its not working..
vanegi
Employee
Employee

Can you perform a quick restart of the server? I would recommend using Ensure Service User from ACS Commons [0], it takes care of service user deployment with code package.

 

[0]: https://adobe-consulting-services.github.io/acs-aem-commons/features/ensure-service-users/index.html

PeterPuzanovs
Level 1
Level 1

Hey Sathya,

 

By the looks of it the instance is missing commons bundle.

 

Make sure you include acs-aem-commons package in your dependencies for your package.


Regards,

Peter

sunjot16
Employee
Employee

* Check for the existence of ensure-service-user on your AMS environment.

* Go to /system/console/configMgr, search for the service mapping for this bundle and ensure that the service user is included within [], and then save it.

Ex: I don't have acs bundle, but I have the following mapping configured for a service user.

com.adobe.cq.cq-experience-fragments:target=[targetservice]

 

Hope it helps !!