setting user permission to vhost which is default "/" with rabbitmqctl

1,399 views
Skip to first unread message

markable stunts

unread,
Jun 5, 2018, 5:42:42 AM6/5/18
to rabbitmq-users
`sudo rabbitmqctl set_permissions -p / username “.*” “.*” “.*”`
`sudo rabbitmqctl set_permissions -p / usernae “^vikram-.*” “.*” “.*”`

this is the error I am getting:-

Setting permissions for user "username" in vhost "/"
Error: badarg

before this commands, I did add_user and given tag administrator

how to solve that error. why that error is coming ? which that regular expression recommended in the documentation

Michael Klishin

unread,
Jun 5, 2018, 5:49:55 AM6/5/18
to rabbitm...@googlegroups.com
Please post RabbitMQ version details, the entire error and server logs.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
MK

Staff Software Engineer, Pivotal/RabbitMQ

markable stunts

unread,
Jun 5, 2018, 5:59:40 AM6/5/18
to rabbitmq-users
[{pid,1923},
 {running_applications,
     [{rabbit,"RabbitMQ","3.6.10"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
      {ssl,"Erlang/OTP SSL application","8.2.3"},
      {public_key,"Public key infrastructure","1.5.2"},
      {asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.6.10"},
      {xmerl,"XML parser","1.3.16"},
      {crypto,"CRYPTO","4.2"},
      {compiler,"ERTS  CXC 138 10","7.1.4"},
      {os_mon,"CPO  CXC 138 46","2.4.4"},
      {mnesia,"MNESIA  CXC 138 12","4.15.3"},
      {syntax_tools,"Syntax tools","2.1.4"},
      {sasl,"SASL  CXC 138 11","3.1.1"},
      {stdlib,"ERTS  CXC 138 10","3.4.3"},
      {kernel,"ERTS  CXC 138 10","5.4.1"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:128] [kernel-poll:true]\n"},
 {memory,
     [{total,54629680},
      {connection_readers,0},
      {connection_writers,0},
      {connection_channels,0},
      {connection_other,0},
      {queue_procs,124504},
      {queue_slave_procs,0},
      {plugins,0},
      {other_proc,19219304},
      {mnesia,75072},
      {metrics,185056},
      {mgmt_db,0},
      {msg_index,47328},
      {other_ets,1764584},
      {binary,115280},
      {code,21401226},
      {atom,900041},
      {other_system,10979533}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,6655346278},
 {disk_free_limit,50000000},
 {disk_free,625349955584},
 {file_descriptors,
     [{total_limit,65436},
      {total_used,2},
      {sockets_limit,58890},
      {sockets_used,0}]},
 {processes,[{limit,1048576},{used,175}]},
 {run_queue,0},
 {uptime,18907},
 {kernel,{net_ticktime,60}}]

I am trying through command line using `rabbitmqctl`.
the command which is used is ( sudo rabbitmqctl set_permissions -p / username "^username-.*" ".*" ".*" )

error:- 

Setting permissions for user "username" in vhost "/"
Error: badarg

Im create a new user and connecting to rabbitmq with new username and password in nodejs this is my goal

so when im setting vhost permissions to new user im getting (badarg) error


On Tuesday, 5 June 2018 15:19:55 UTC+5:30, Michael Klishin wrote:
Please post RabbitMQ version details, the entire error and server logs.
On Tue, Jun 5, 2018 at 12:42 PM, markable stunts <vikram.v...@gmail.com> wrote:
`sudo rabbitmqctl set_permissions -p / username “.*” “.*” “.*”`
`sudo rabbitmqctl set_permissions -p / usernae “^vikram-.*” “.*” “.*”`

this is the error I am getting:-

Setting permissions for user "username" in vhost "/"
Error: badarg

before this commands, I did add_user and given tag administrator

how to solve that error. why that error is coming ? which that regular expression recommended in the documentation

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To post to this group, send email to rabbitm...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Michael Klishin

unread,
Jun 5, 2018, 6:02:25 AM6/5/18
to rabbitm...@googlegroups.com
That's `rabbitmqctl status`, not server logs.

You are running RabbitMQ 3.6.10 on an Erlang version that's only supported as of 3.6.11 (20.x, seems to be 20.2) [1].
Please upgrade to 3.6.15 [2]. The command invocation seems correct.


To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+unsubscribe@googlegroups.com.
To post to this group, send email to rabbitmq-users@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages