Problem Running RabbitMQ Server in Docker Environment

501 views
Skip to first unread message

İlayda Dastan

unread,
Feb 19, 2024, 4:27:06 AM2/19/24
to rabbitmq-users

Hi,

I'm Ilayda Dastan, a RabbitMQ user who is eager to contribute to the RabbitMQ community. I've recently joined the community and am excited about the opportunity to make a contribution. I'd also love to join your Slack group.

I noticed a bug in the interface and I want to contribute by making an improvement but I've encountered an issue while trying to run rabbitmq-server in a Docker environment. I would greatly appreciate your assistance in resolving this. I will try to explain as much as possible, you can contact me if you have any questions about my issue. Thank you very much in advance!

----

I've been attempting to run RabbitMQ server locally, but I wanted to do it within a Docker environment using a Dockerfile to create an image and a container. I took the DockerFile I use from here (github) and edited it a little, the DockerFile I use is attached. I used the following commands:

docker buildx build -f Dockerfile --platform linux/amd64 -t rabbitmq-server-contribute .

docker run -it -d --name rabbit-contribution -v /Users/ilaydadastan/Documents/developments/rabbitmq-contribution/rabbitmq-docker:/home/contributor -p 3000:3000 -p 15672:15672 rabbitmq-server-contribute

I cloned the RabbitMQ server repository to my local machine and opened a terminal within a Docker container selected from IntelliJ's services. I run the application in the docker container I created. Then, I run the bazel-sync command in the project main directory in the docker container, it works.

Then when I run this command below I get the error;

bazel run broker RABBITMQ_ENABLED_PLUGINS=rabbitmq_management

I encountered a build failure with the following error:

/bin/bash: line 16: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
** (ArgumentError) could not call Module.put_attribute/3 because the module Hex.MixProject is already compiled
(elixir 1.15.7) lib/module.ex:2310: Module.assert_not_readonly!/2
(elixir 1.15.7) lib/module.ex:2007: Module.__put_attribute__/5
mix.exs:172: (module)
(stdlib 5.2) lists.erl:1599: :lists.foldl_1/3
Target //:broker failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 83.166s, Critical Path: 15.71s
INFO: 5 processes: 5 internal.
FAILED: Build did NOT complete successfully
ERROR: Build failed. Not running target

I'm using Mac with an Apple M2 chip. When I try it on an Ubuntu computer, I can run it without any problems, but it does not run on a Mac either. I suspect there may be a problem related to Elixir or possibly due to the Mac processor but I haven't been able to resolve it for run the rabbitmq-server.

Any assistance you could provide would be greatly appreciated. Thanks in advance.

Best Regards,
Ilayda

Dockerfile

Luke Bakken

unread,
Feb 19, 2024, 10:31:00 AM2/19/24
to rabbitmq-users
Hello,

Please re-run using the --verbose_failures flag, save the output to a file, and attach the output to your response.

A colleague says this:

I suspect their user has elevated permissions inside the docker container, and there is a conflict with the install of hex that happens here


...and here...

İlayda Dastan

unread,
Feb 19, 2024, 12:32:59 PM2/19/24
to rabbitmq-users
Hi,

Thanks for your response. I'm attaching the output file.

Best,
Ilayda

19 Şubat 2024 Pazartesi tarihinde saat 17:31:00 UTC+2 itibarıyla Luke Bakken şunları yazdı:
output.txt

İlayda Dastan

unread,
Feb 26, 2024, 8:35:25 AM2/26/24
to rabbitm...@googlegroups.com
Hi,

Is there any update regarding this?

Thanks.
Regards,
Ilayda

İlayda Dastan <ilayd...@gmail.com>, 19 Şub 2024 Pzt, 19:33 tarihinde şunu yazdı:
--
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 view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/6589fcf0-0a70-42cf-8643-f17b5365892cn%40googlegroups.com.

Luke Bakken

unread,
Feb 26, 2024, 10:06:19 AM2/26/24
to rabbitmq-users
Hello,

Please do not bump a discussion. The people who maintain RabbitMQ (myself included) prioritize support for paying customers.

Luke Bakken

unread,
Feb 26, 2024, 10:17:29 AM2/26/24
to rabbitmq-users
One thing you can do is provide provide the exact sequence of commands you are running. I can't tell from your first post in the discussion.

The members of the RabbitMQ team who use Macs (I don't) do not use docker to develop RabbitMQ. I suggest trying to build and run RabbitMQ on your Mac, not in docker.

Or, just use an environment that works. Personally, I use Ubuntu 22 on WSL/Windows 11 or Arch Linux, using neovim and erlang-ls as the language server.

Thanks,
Luke
Reply all
Reply to author
Forward
0 new messages