BasicErrorCallBack 401: "You are not authorized for this functionality"
Problem
The diagnoseRepositoryScenario or newRevisionScenario fail with
BasicErrorCallBack 401: "You are not authorized for this functionality."
Explanation
This means that the user credentials configured in Manta CLI for connection to Manta Server are not valid and the user cannot log in. This is an error you will encounter after attempting to run Manta Flow lineage analysis. You will encounter this
error after inspecting your latest mantaflow/cli/log/diagnoseRepositoryScenario.log entry. There are a few steps that you should take to remedy this situation.
Solution
- First, ensure that your roles are properly set. Check your
mantaflow/server/webapps/manta-dataflow-server/WEB-INF/classes/userRoles.propertiesto ensure that the roles you are using have the correct privileges assigned to them. The values should be pre-configured out of the box and through the Manta installation process. - Next, through the manta-configuration web app, check your Common
Connections tab (under Common/Common-Connections) on the left side of your GUI. Under the Base Value table try resetting your repository username and password to one of the other values in your
userRoles.propertiesfile. Try both system and user roles. - Restart the Manta Server services.
- Re-run the Manta Flow lineage scan.
- It should work now without the 401 error.