ighack opened a new issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115
1. Please describe the issue you observed:
- What did you do (The steps to reproduce)?
aclEnable=true
Server1: nohup bin/mqbroker -c conf/2m-2s-sync/broker-a.properties &
Server2: nohup bin/mqbroker -c conf/2m-2s-sync/broker-a-s.properties &
Server1: logs/rocketmqlogs/remoting.log
I get a error
```
ERROR AdminBrokerThread_12 - process request exception
org.apache.rocketmq.acl.common.AclException: No accessKey is configured
at
org.apache.rocketmq.acl.plain.PlainPermissionManager.validate(PlainPermissionManager.java:403)
~[rocketmq-acl-4.9.0.jar:4.9.0]
at
org.apache.rocketmq.acl.plain.PlainAccessValidator.validate(PlainAccessValidator.java:140)
~[rocketmq-acl-4.9.0.jar:4.9.0]
at
org.apache.rocketmq.broker.BrokerController$10.doBeforeRequest(BrokerController.java:524)
~[rocketmq-broker-4.9.0.jar:4.9.0]
at
org.apache.rocketmq.remoting.netty.NettyRemotingAbstract.doBeforeRpcHooks(NettyRemotingAbstract.java:172)
~[rocketmq-remoting-4.9.0.jar:4.9.0]
at
org.apache.rocketmq.remoting.netty.NettyRemotingAbstract$1.run(NettyRemotingAbstract.java:202)
~[rocketmq-remoting-4.9.0.jar:4.9.0]
at
org.apache.rocketmq.remoting.netty.RequestTask.run(RequestTask.java:80)
[rocketmq-remoting-4.9.0.jar:4.9.0]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_271]
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[na:1.8.0_271]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[na:1.8.0_271]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[na:1.8.0_271]
at java.lang.Thread.run(Thread.java:748) [na:1.8.0_271]
2021-07-01 10:21:31 ERROR AdminBrokerThread_12 - RemotingCommand [code=201,
language=JAVA, version=393, opaque=134, flag(B)=0, remark=null, extFields=null,
serializeTypeCurrentRPC=JSON]
```
2. Please tell us about your environment:
broker-a.properties
```
brokerClusterName=DefaultCluster
brokerName=broker-a
brokerId=0
deleteWhen=04
fileReservedTime=48
brokerRole=SYNC_MASTER
flushDiskType=ASYNC_FLUSH
namesrvAddr=10.3.87.24:9876;10.3.87.27:9876
storePathRootDir=/hadoop/rocketmq-all-4.9.0-bin-release/store
storePathCommitLog=/hadoop/rocketmq-all-4.9.0-bin-release/store/commitlog
enablePropertyFilter=true
autoCreateTopicEnable=false
aclEnable=true
```
broker-a-s.properties
```
brokerClusterName=DefaultCluster
brokerName=broker-a
brokerId=1
deleteWhen=04
fileReservedTime=48
brokerRole=SLAVE
flushDiskType=ASYNC_FLUSH
namesrvAddr=10.3.87.24:9876;10.3.87.27:9876
storePathRootDir=/hadoop/rocketmq-all-4.9.0-bin-release/store
storePathCommitLog=/hadoop/rocketmq-all-4.9.0-bin-release/store/commitlog
enablePropertyFilter=true
autoCreateTopicEnable=false
aclEnable=true
```
plain_acl.yml
```
globalWhiteRemoteAddresses:
accounts:
- accessKey: adminrocket
secretKey: '12345678'
whiteRemoteAddress: null
admin: true
- accessKey: testRocketMQ
secretKey: 12345678
whiteRemoteAddress: null
admin: false
topicPerms:
- test=PUB|SUB
- testOrder=SUB
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]