Can't add dynamic shovel bettwen two vhost #9789
-
Describe the bugI can't set up a connection between two vhosts. If I execute the command I get the following error. Reproduction stepsrabbitmqctl set_parameter shovel my-shovel Expected behavior2023-10-26 12:16:05.950651+02:00 [error] <0.3650.0> Shovel 'my-shovel' failed to connect (URI: amqp:///test): access to target virtual host was refused If I do it via the manager, before adding, I receive the following message: MessageValidation failed user "admin" may not connect to vhost "test" I don't know how to configure it correctly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@jonkiszp consider using Discussions for questions, they are no longer a hot new GitHub feature.
is pretty specific: the user used by Shovel (if the URI really is See Managing Users and Permissions. You need to grant the user you intend to use sufficient (or full) permissions to the target virtual host. If the URI is |
Beta Was this translation helpful? Give feedback.
-
I used the advice and I still have the problem rabbitmqctl set_parameter shovel my-shovel error: 2023-10-26 12:56:15.004921+02:00 [error] <0.9982.0> Shovel 'my-shovel' failed to connect (URI: amqp://localhost:5672/test): ACCESS_REFUSED - Login was refused using authentication mechanism PLAIN. For details see the broker logfile. |
Beta Was this translation helpful? Give feedback.
@jonkiszp consider using Discussions for questions, they are no longer a hot new GitHub feature.
is pretty specific: the user used by Shovel (if the URI really is
amqp:///test
, the user isguest
— we highly recommend against such shortcuts) does not have access to the virtual host.See Managing Users and Permissions. You need to grant the user you intend to use sufficient (or full) permissions to the target virtual host.
If the URI is
amqp://
, I suspect that the virtual host could be parsed to an empty string. Consider using full URIs.