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]使用5.2.0开启acl功能 为什么rocketmq2这个accessKey删除后,执行命令就报错 #8120

Open
3 tasks done
1195952223 opened this issue May 12, 2024 · 0 comments

Comments

@1195952223
Copy link

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

Linux test-ProLiant-DL388-Gen10 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

RocketMQ version

5.2.0

JDK Version

1.8

Describe the Bug

使用5.2.0开启acl功能 为什么rocketmq2这个accessKey删除后,执行命令就报错

Steps to Reproduce

account's accessKey is:rocketmq2root@hp:/home/bk/rocketmq/rocketmq-all-5.2.0-bin-release# ./bin/mqadmin deleteAccessConfig -n xxxxxx -c DefaultCluster -a admfcvv
org.apache.rocketmq.tools.command.SubCommandException: DeleteAccessConfigSubCommand command failed
at org.apache.rocketmq.tools.command.acl.DeleteAccessConfigSubCommand.execute(DeleteAccessConfigSubCommand.java:107)
at org.apache.rocketmq.tools.command.MQAdminStartup.main0(MQAdminStartup.java:164)
at org.apache.rocketmq.tools.command.MQAdminStartup.main(MQAdminStartup.java:114)
Caused by: org.apache.rocketmq.client.exception.MQClientException: CODE: 1 DESC: org.apache.rocketmq.acl.common.AclException: No acl config for rocketmq2, org.apache.rocketmq.acl.plain.PlainPermissionManager.validate(PlainPermissionManager.java:613)
For more information, please visit the url, https://rocketmq.apache.org/docs/bestPractice/06FAQ
at org.apache.rocketmq.client.impl.MQClientAPIImpl.deleteAccessConfig(MQClientAPIImpl.java:467)
at org.apache.rocketmq.tools.admin.DefaultMQAdminExtImpl.deletePlainAccessConfig(DefaultMQAdminExtImpl.java:285)
at org.apache.rocketmq.tools.admin.DefaultMQAdminExt.deletePlainAccessConfig(DefaultMQAdminExt.java:211)
at org.apache.rocketmq.tools.command.acl.DeleteAccessConfigSubCommand.execute(DeleteAccessConfigSubCommand.java:97)
... 2 more

What Did You Expect to See?

能修改或删除

What Did You See Instead?

能修改或删除

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

No branches or pull requests

1 participant