SEVERE: Unauthorized (401): Unauthorized access to workbench. Please check your credentials

Problem : While running initialize services in Endeca/Oracle commerce guided search (version 11.0), get following “unauthorized access to workbench” error :

[01.03.19 10:01:22] INFO: Setting definition for component ‘ConfigurationGeneratorForge’.
[01.03.19 10:01:23] INFO: Setting definition for component ‘Forge’.
[01.03.19 10:01:23] INFO: Setting definition for component ‘PartialForge’.
[01.03.19 10:01:23] INFO: Setting definition for component ‘Dgidx’.
[01.03.19 10:01:23] INFO: Definition updated.
[01.03.19 10:01:23] INFO: Provisioning site from prototype…
[01.03.19 10:01:24] SEVERE: Unauthorized (401): Unauthorized access to workbench. Please check your credentials.
Occurred while executing line 3 of valid BeanShell script:[[

1|
2|
3|    IFCR.provisionSite();
4|
5|
6|
]]

[01.03.19 10:01:24] SEVERE: Caught an exception while invoking method ‘run’ on object ‘InitialSetup’. Releasing locks.

Caused by java.lang.reflect.InvocationTargetException
sun.reflect.NativeMethodAccessorImpl invoke0 – null
Caused by com.endeca.soleng.eac.toolkit.exception.AppControlException

com.endeca.soleng.eac.toolkit.script.Script runBeanShellScript – Error executing valid BeanShell script.
Caused by com.endeca.soleng.eac.toolkit.utility.IFCRUtility$HttpStatusException
com.endeca.soleng.eac.toolkit.utility.IFCRUtility execute – Unauthorized (401): Unauthorized access to workbench. Please check your credentials.

Failed to setup EAC application.

 

Fix

Update the admin password in ECR user using following command

cd <ENDECA_CONF>/../<version>credential_store/bin/
 ./manage_credentials.sh add –user admin –key ifcr
WARNING: j2sdk/bin/java does not exist
WARNING: Using local setting for java
Enter password for user admin :

Re-enter password to confirm :

Credential of type [password] already exists for this key.

Do you want to replace it [yes/no] ?yes
INFO CSFHandler:146 – Credential successfully updated for map : endecaToolsAndFrameworks.

The password to be entered is admin (given thats the password you use for logging in as admin user in the Workbench). Ignore the warnings , you might not get those . Those are from my setup.

Thanks,
Mayank Batra

Leave a Reply