Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] can't start broker when enable acl2.0 #8108

Closed
3 tasks done
zhiliatom opened this issue May 7, 2024 · 0 comments · Fixed by #8109
Closed
3 tasks done

[Bug] can't start broker when enable acl2.0 #8108

zhiliatom opened this issue May 7, 2024 · 0 comments · Fixed by #8109

Comments

@zhiliatom
Copy link
Contributor

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

mac m1

RocketMQ version

develop

JDK Version

1.8

Describe the Bug

broekr.conf

brokerClusterName = DefaultCluster
namesrvAddr = 127.0.0.1:9876
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
storePathRootDir = /Users/zzl/01opensource/data
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
aclEnable = true
authenticationEnabled = true
authenticationProvider = org.apache.rocketmq.auth.authentication.provider.DefaultAuthenticationProvider
initAuthenticationUser = {"username":"rocketmq","password":"12345678"}
innerClientAuthenticationCredentials = {"accessKey":"rocketmq","secretKey":"12345678"}
authenticationMetadataProvider = org.apache.rocketmq.auth.authentication.provider.LocalAuthenticationMetadataProvider
image

Steps to Reproduce

like before

What Did You Expect to See?

start success

What Did You See Instead?

org.apache.rocketmq.auth.authentication.exception.AuthenticationException: Init authentication user error.
at org.apache.rocketmq.auth.authentication.manager.AuthenticationMetadataManagerImpl.initUser(AuthenticationMetadataManagerImpl.java:73)
at org.apache.rocketmq.auth.authentication.manager.AuthenticationMetadataManagerImpl.(AuthenticationMetadataManagerImpl.java:44)
at org.apache.rocketmq.auth.authentication.factory.AuthenticationFactory.getMetadataManager(AuthenticationFactory.java:70)
at org.apache.rocketmq.broker.BrokerController.(BrokerController.java:348)
at org.apache.rocketmq.broker.BrokerStartup.buildBrokerController(BrokerStartup.java:215)
at org.apache.rocketmq.broker.BrokerStartup.createBrokerController(BrokerStartup.java:247)
at org.apache.rocketmq.broker.BrokerStartup.main(BrokerStartup.java:52)
Caused by: java.util.concurrent.CompletionException: java.lang.IllegalStateException: The authenticationMetadataProvider is not configured
at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:989)
at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2137)
at org.apache.rocketmq.auth.authentication.manager.AuthenticationMetadataManagerImpl.initUser(AuthenticationMetadataManagerImpl.java:66)
... 6 more
Caused by: java.lang.IllegalStateException: The authenticationMetadataProvider is not configured
at org.apache.rocketmq.auth.authentication.manager.AuthenticationMetadataManagerImpl.getAuthenticationMetadataProvider(AuthenticationMetadataManagerImpl.java:211)
at org.apache.rocketmq.auth.authentication.manager.AuthenticationMetadataManagerImpl.getUser(AuthenticationMetadataManagerImpl.java:164)
... 7 more

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant