0
回答
在Solaris 10环境下安装rabbitMq后无法新建用户
终于搞明白,存储TCO原来是这样算的>>>   

在Solaris 10系统上安装 rabbitMq 3.6.1,使用的是rabbitMq官网上推荐的rabbitmq-server-generic-unix-3.6.1版本。修改了shell版本以后第一次启动创建guest用户的时候报如下错误:

=INFO REPORT==== 10-Mar-2016::15:28:54 ===
Creating user 'guest'

=INFO REPORT==== 10-Mar-2016::15:28:55 ===
Error description:
   {could_not_start,rabbit,
       {notsup,
           [{crypto,sha256,1,[{file,"crypto.erl"},{line,857}]},
            {rabbit_password,hash,2,
                [{file,"src/rabbit_password.erl"},{line,34}]},
            {rabbit_auth_backend_internal,add_user,2,
                [{file,"src/rabbit_auth_backend_internal.erl"},{line,173}]},
            {rabbit,insert_default_data,0,
                [{file,"src/rabbit.erl"},{line,565}]},
            {rabbit_boot_steps,'-run_step/2-lc$^1/1-1-',1,
                [{file,"src/rabbit_boot_steps.erl"},{line,49}]},
            {rabbit_boot_steps,run_step,2,
                [{file,"src/rabbit_boot_steps.erl"},{line,49}]},
            {rabbit_boot_steps,'-run_boot_steps/1-lc$^0/1-0-',1,
                [{file,"src/rabbit_boot_steps.erl"},{line,26}]},
            {rabbit_boot_steps,run_boot_steps,1,
                [{file,"src/rabbit_boot_steps.erl"},{line,26}]}]}}

第二次启动能正常启动。不过在创建用户的时候依然报错,具体如下:

# ./rabbitmqctl add_user rabbit password
Creating user "rabbit" ...
Error: {notsup,
           [{crypto,sha256,1,[{file,"crypto.erl"},{line,857}]},
            {rabbit_password,hash,2,
                [{file,"src/rabbit_password.erl"},{line,34}]},
            {rabbit_auth_backend_internal,add_user,2,
                [{file,"src/rabbit_auth_backend_internal.erl"},{line,173}]},
            {rpc,'-handle_call_call/6-fun-0-',5,
                [{file,"rpc.erl"},{line,206}]}]}

初步判断是rabbitMq在创建用户,对密码进行取二进制的时候调用了erlang的crypto加密算法,在里面出错了,但具体为啥出错就不知道了,不知道有没有大神知道大概是什么情况的问题,或者有没有谁知道怎么解决这个问题的。

举报
wo思远ow
发帖于2年前 0回/246阅
顶部