Login error when running pre-upgrade tasks | Community
Skip to main content
Level 5
Sep 25, 2019 11:11 AM UTC

Login error when running pre-upgrade tasks

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Employee
Sep 25, 2019 11:38 AM UTC

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?

Translate
Level 5
Sep 26, 2019 12:59 PM UTC

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

Translate
Employee
Sep 26, 2019 1:29 PM UTC

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

Translate