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

Login error when running pre-upgrade tasks

Avatar

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
jakej40603950
Level 3

25-09-2019

Hello,

I'm trying to run the 'detectUsageOfUnavailableAPI' operation of PreUpgradeTasks Mbean on AEM 6.3 but get the following error when doing so:

com.adobe.aem.upgrade.prechecks.mbean.impl.PreUpgradeTasksMBeanImpl Cannot login into repository:

org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.day.cq.pre-upgrade-tasks [146] and sub service null

Does anyone know why this is so? Any user that needs to be configured before running these tasks?

Thanks.

Replies

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

25-09-2019

Usually, this error is observed when the service user mapping is missing to the pre-upgrade bundle. Can you add the mapping as per below and check if you still get the same issue?

Screen Shot 2019-09-25 at 7.35.32 AM.png

Avatar

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Validate 25
Level 3
jakej40603950
Level 3

Likes

9 likes

Total Posts

120 posts

Correct Reply

8 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
jakej40603950
Level 3

26-09-2019

Thanks for the reply. But I'm still getting the same error even after this change.

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

26-09-2019

Can you go to <host>:<port>/useradmin and check if "preupgrade-service" is an actual service user in AEM?