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

Ensure Service user issue aem 6.5

Avatar

Avatar
Validate 1
Level 1
sathyaprakasha2
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
sathyaprakasha2
Level 1

Like

1 like

Total Posts

12 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
sathyaprakasha2
Level 1

01-07-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

159 likes

Total Posts

370 posts

Correct Reply

58 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

01-07-2020

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.

Answers (4)

Answers (4)

Avatar

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

106 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile

Avatar
Give Back 5
Employee
sunjot16
Employee

Likes

106 likes

Total Posts

164 posts

Correct Reply

50 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 25
Give Back 10
Give Back
View profile
sunjot16
Employee

03-07-2020

* 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 !!

Avatar

Avatar
Boost 1
Level 1
PeterPuzanovs
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
PeterPuzanovs
Level 1

Like

1 like

Total Posts

1 post

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
PeterPuzanovs
Level 1

01-07-2020

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

Avatar

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct Reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
vanegi
Employee

Likes

392 likes

Total Posts

378 posts

Correct Reply

148 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
vanegi
Employee

01-07-2020

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

Avatar

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 1
MVP
Albin_Issac
MVP

Likes

106 likes

Total Posts

119 posts

Correct Reply

33 solutions
Top badges earned
Validate 1
Ignite 1
Give Back 5
Give Back 3
Give Back 10
View profile
Albin_Issac
MVP

01-07-2020

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