You are not logged in.
Dear all,
I'm trying to install on my laptop RabbitMQ to do some test with it.
I've installed RabbitMQ with:
$ sudo pacman -Sy rabbitmq rabbitmqadmin
[...]
$ sudo systemctl enable rabbitmq.service
[...]
$ sudo systemctl start rabbitmq.service
[...]
The file
/etc/rabbitmq/rabbitmq-env.conf
has the default configuration:
NODENAME=rabbit@localhost
NODE_IP_ADDRESS=0.0.0.0
NODE_PORT=5672
If I try to enable the mqtt and the http admin plugins:
$ sudo rabbitmq-plugins enable rabbitmq_mqtt
Enabling plugins on node rabbit@localhost:
rabbitmq_mqtt
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_mqtt
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@localhost...
Plugin configuration unchanged.
chown: invalid user: ‘@RABBITMQ_USER@:@RABBITMQ_GROUP@’
$ sudo rabbitmq-plugins enable rabbitmq_management
Enabling plugins on node rabbit@localhost:
rabbitmq_management
The following plugins have been configured:
rabbitmq_management
rabbitmq_management_agent
rabbitmq_mqtt
rabbitmq_web_dispatch
Applying plugin configuration to rabbit@localhost...
Plugin configuration unchanged.
chown: invalid user: ‘@RABBITMQ_USER@:@RABBITMQ_GROUP@’
I tried to understand where I should set the
RABBITMQ_USER
and
RABBITMQ_GROUP
variables, but so far I was not able to find a solution.
Do you know what it is missing and what I'm doing wrong?
I tried to connect to: http://localhost:15672 and it seems to work, should I just ignore the chown message?
Offline
sudo pacman -Sy ...
You should also set your hostname (and update your rabbitmq config), leaving it as localhost will cause problems if you're using a network manager that changes it (i.e. NetworkManager).
The error you are getting seems to stem from /usr/lib/rabbitmq/bin/rabbitmq-script-wrapper (which is the actual script called by all the /usr/bin/rabbitm* links). I don't think this is a misconfiguration problem on your end, but rather an upstream bug -- these variables are placeholders, they should be replaced by a configure/Make process, or else downstream should be told to replace them during packaging. At least, this is what I thought, but upstream doesn't have this script in git: https://github.com/rabbitmq/rabbitmq-se … 10/scripts but it is present in the 3.7.10 tarball:
$ bsdtar tf rabbitmq-server-3.7.10.tar.xz | grep rabbitmq-script-wrapper
rabbitmq-server-3.7.10/scripts/rabbitmq-script-wrapper
So I'm not sure what is going on. I'd open a bug against the package on the Arch bug tracker, maybe the maintainer can shed some light on what's going on here.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
It comes from https://github.com/rabbitmq/rabbitmq-se … pt-wrapper and the glorious genius upstream developers decided to make this script something that requires in-place sed before using it: https://github.com/rabbitmq/rabbitmq-se … 0926f7b5cb
And their method of doing so was to make this script something that the rpm and debian packaging hardcode.
*claps slowly*
...
In short, yes, please open an Arch bugreport.
Last edited by eschwartz (2019-01-31 03:02:05)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
I am running into this issue also trying to set up an environment to learn a Udacity course. Where you able to resolve it?
Offline
Who knows -- they never replied, they never submitted a bug report as I asked for.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Im going to try setting a docker container to get around the problem
Offline
Okay, that's piqued my interest. What do you think the problem is, and what do you think using docker would accomplish?
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
I am not sure, I am a newbie to Arch, I heard docker has prebuilt containers that contain various services, I see one with a rabbitmq container, I thought it would be worth a shot.
Last edited by mt253 (2019-02-10 18:33:35)
Offline
Okay, well the "problem" is that the wrapper script uses these placeholders instead of the actual user and group.
The simple fix (which would take five seconds to implement) would be to replace the placeholders with the correct user and group. The script already references the correct user elsewhere, and the group is probably easy enough to determine. Using docker to avoid having to do that seems incredibly counter-productive. Especially since the error is being triggered by a non-essential chown call that likely doesn't even need to be run, and doesn't cause any service failure by not being performed.
Reporting it to the maintainer of the package by way of a bug report would make sure the fix gets added to the package.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
So I'm not sure what is going on. I'd open a bug against the package on the Arch bug tracker, maybe the maintainer can shed some light on what's going on here.
In short, yes, please open an Arch bugreport.
Who knows -- they never replied, they never submitted a bug report as I asked for.
Reporting it to the maintainer of the package by way of a bug report would make sure the fix gets added to the package.
I'm not understanding why one would opt for a docker container instead!
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Thanks for the help, let me try swapping out the placeholder with my username and group. Please forgive this newbie
Last edited by mt253 (2019-02-11 01:37:48)
Offline
Not your username and group, the rabbitmq username and group. Setting it to your username will cause more problems.
Are you sure that Arch is the right distribution for you? Newbie or not, a basic ability to read, process and apply community-provided information is expected of you. If you're going to skim read and jump to conclusions then you'll not have a good and productive Arch Linux experience.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline