You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ActiveMQ Artemis 2.28.0升级后Web管理控制台登录失败问题

ActiveMQ Artemis 2.28.0升级后Web管理控制台登录异常问题

将ActiveMQ Artemis从2.19.1版本升级至2.28.0版本后,客户端应用可正常连接代理,但无法登录Web管理控制台,具体表现如下:

  • 输入错误用户名时,日志输出:

    2023-04-11 09:54:21,360 WARN  [io.hawt.system.Authenticator] Login failed due to: User does not exist: admin1
    
  • 输入错误密码时,日志输出:

    2023-04-11 09:54:32,148 WARN  [io.hawt.system.Authenticator] Login failed due to: Password does not match for user: admin
    
  • 输入正确凭据时无日志输出,但Artemis控制台提示“Invalid login credentials”错误。

相关配置文件内容

login.config 配置

activemq {
    org.apache.activemq.artemis.spi.core.security.jaas.PropertiesLoginModule required
      debug=true
      reload=true
      org.apache.activemq.jaas.properties.user="artemis-users.properties"
      org.apache.activemq.jaas.properties.role="artemis-roles.properties";
};

artemis.profile 配置

ARTEMIS_HOME='/opt/app/artemis'
ARTEMIS_INSTANCE='/opt/app/artemis/artemis_broker'

ARTEMIS_INSTANCE_URI='file:/opt/app/artemis/artemis_broker/'
ARTEMIS_INSTANCE_ETC_URI='file:/opt/app/artemis/artemis_broker/etc'

JAVA_ARGS=" -XX:+PrintClassHistogram -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -Xms12G -Xmx12G -XX:+UseG1GC -Dhawtio.realm=activemq -Dhawtio.role=amq -Dhawtio.rolePrincipalClasses=org.apache.activemq.artemis.spi.core.security.jaas.RolePrincipal"

调试后续更新

开启Artemis调试模式后,登录时捕获到以下错误日志:

11:54:30,010 DEBUG [io.hawt.system.Authenticator] role amq doesn't match NO_HAWTIO_ROLE, continuing
11:54:30,010 DEBUG [io.hawt.system.Authenticator] User admin does not have the required role NO_HAWTIO_ROLE

尝试将NO_HAWTIO_ROLE添加至现有amq角色中后,登录成功,但控制台显示空白页面。

内容的提问来源于stack exchange,提问作者GND

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.25 04:52:19