You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/07/01 02:30:19 UTC
[GitHub] [rocketmq] ighack opened a new issue #3115: No accessKey is configured
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-875240420
RocketMQ开启ACL之后,客户端通过accessKey和secretKey进行认证,但是集群的节点之间是不能配置accessKey和secretKey,只能通过配置全局ip白名单的方式来访问,也就是配置plain_acl.yml中的globalWhiteRemoteAddresses,可以这篇文章:https://blog.csdn.net/sinat_14840559/article/details/116302400
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua edited a comment on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua edited a comment on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-873761105
In the plain_acl.yml. You need to config the globalWhiteRemoteAddresses. which contains all node's ip address. Your application and console didn't throw exception because of using the way of accessKey to access the RMQ server.
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] githublaohu commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
githublaohu commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-875234449
我直接说中文吧。 日志信息太少看。目前猜测是broker-a-s 不在broker-a的授权里面,同时没有看到broker-a-s 配置的ak与sk。
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] ighack commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
ighack commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-877308997
@zhurunhua
说中文吧。大家看的都轻松
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-873761105
you need to config the globalWhiteRemoteAddresses. your application and console has used the accessKey to access rmq server.
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua edited a comment on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua edited a comment on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-875240420
RocketMQ开启ACL之后,客户端通过accessKey和secretKey进行认证,但是集群的节点之间是不能配置accessKey和secretKey,只能通过配置全局ip白名单的方式来访问,也就是配置plain_acl.yml中的globalWhiteRemoteAddresses,可以看看这篇文章:https://blog.csdn.net/sinat_14840559/article/details/116302400
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua edited a comment on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua edited a comment on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-873761105
in plain_acl.yml. You need to config the globalWhiteRemoteAddresses. which contains all node's ip address. your application and console didn't throw exception because of using the way of accessKey to access the RMQ server.
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] francisoliverlee commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-872669390
@ighack
too risk to export the public IP ADDRESS, and it seems plain_acl.yml not right
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] githublaohu commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
githublaohu commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-880554967
解决了吗?
clietn请求broker, 可以debug,看下acl的RPCHook实现。
如果是console请求broker或者broker请求主broker,请把console,主从的ip地址设为全局免校验:globalWhiteRemoteAddresses
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] ighack commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
ighack commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-883793881
这些时重点还没在这上面。我有时间看一下
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] duhenglucky closed issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] zhurunhua commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
zhurunhua commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-873761566
And I really want to speak Chinese
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] ighack commented on issue #3115: No accessKey is configured
Posted by GitBox <gi...@apache.org>.
ighack commented on issue #3115:
URL: https://github.com/apache/rocketmq/issues/3115#issuecomment-872675459
@francisoliverlee
but my application is OK
rocketmq-console-ng is OK
--
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: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org