Created on 08-03-2023 02:55 PM - edited 08-03-2023 03:03 PM
Hello Everyone
Good Day! When I change the old password of "<property name="Manager Password">NewPassword</property>" in authorizer.xml to new password for our maintenance.
I stop nifi services and I change password in authorizers.xml and login-identity-providers.xml after I change I start the nifi services but I encountered the error below.
ERROR [NiFi logging handler] org.apache.nifi.StdErr Failed to start web server: Error creating bean with name 'niFiWebApiConfiguration': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metaDataSourceAdvisor': Cannot resolve reference to bean 'methodSecurityMetadataSource' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.security.config.annotation.method.configuration.GlobalMethodSecurityConfiguration': Unsatisfied dependency expressed through method 'setObjectPostProcessor' parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.nifi.web.security.configuration.AuthenticationSecurityConfiguration': Unsatisfied dependency expressed through constructor parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authorizer': FactoryBean threw exception on object creation; nested exception is java.lang.Exception: Unable to load the authorizer configuration file at: /aji/nifi/nifi-1.16.2/./conf/authorizers.xml
Anyone can help me to fix this.
Thanks,
AJ
Created on 08-04-2023 12:05 PM - edited 08-04-2023 12:06 PM
@ajignacio
NiFi is complaining that it can not load the authorizers.xml file.
Are you using any XML special characters in your new manager password?
If so, have you tried escaping them as follows:
XML Character: | Replace in XML with: |
Less than (<) | < |
Greater than (>) | > |
Double quote (") | " |
Apostrophe (ˋ) | ' |
Ampersand (&) | & |
Otherwise, it would be difficult for me to point out the issue with out the full stack trace output in the nifi-app.log and a copy of your authorizer.xml
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt
Created on 08-04-2023 12:05 PM - edited 08-04-2023 12:06 PM
@ajignacio
NiFi is complaining that it can not load the authorizers.xml file.
Are you using any XML special characters in your new manager password?
If so, have you tried escaping them as follows:
XML Character: | Replace in XML with: |
Less than (<) | < |
Greater than (>) | > |
Double quote (") | " |
Apostrophe (ˋ) | ' |
Ampersand (&) | & |
Otherwise, it would be difficult for me to point out the issue with out the full stack trace output in the nifi-app.log and a copy of your authorizer.xml
If you found that the provided solution(s) assisted you with your query, please take a moment to login and click Accept as Solution below each response that helped.
Thank you,
Matt
Created 08-07-2023 04:01 AM
Thanks MattWho,
Yeah We figure out that the causing of issue the special character.
Thank you Very Much