# RabbitMQ "exec format error"

**URL:** <https://forums.balena.io/t/rabbitmq-exec-format-error/3572>\
**Category:** Product support\
**Tags:** support\
**Created:** [July 23, 2018, 4:05pm UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572 "2018-07-23T16:05:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krismix1](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@Krismix1](https://forums.balena.io/u/Krismix1)\
**Post date:** [July 23, 2018, 4:05pm UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/1 "2018-07-23T16:05:44Z")

</div>

Hello  
We try to use RabbitMQ for transmitting data between 2 parts of our application, both of which run on the device. When building and running the docker-compose file through local mode, everything goes fine. All 3 containers start properly and communicate with no issues.  
Recently, we tried to build the application using the build servers. The build went fine, but the RabbitMQ container can’t start. It gives the following error: `standard_init_linux.go:187: exec user process caused "exec format error"`.  
Locally the application was uploaded with: `DOCKER_API_VERSION=1.22 DOCKER_HOST=tcp://uid.local:2375 docker-compose up --build -d` . It was deployed to raspberrypi 3 and on intel-nuc device type. Through the build servers, it was deployed to raspberrypi 3.  
This is the content of docker-compose:

```auto
version: '2'

services:

  rabbitmq:
    image: "rabbitmq:management"
    restart: always
    environment:
      RABBITMQ_DEFAULT_USER: "rabbitmq"
      RABBITMQ_DEFAULT_PASS: "rabbitmq"
    ports:
      - "15672:15672"
      - "5672:5672"
    volumes:
      - 'rabbitmq_data:/var/lib/rabbitmq'

```

We also tried to pull the “rabbitmq” image, without the web interface. No changes.

Can you give me an insight on the error?

---

<div class="post-metadata">

**Author:** ![shaunmulligan](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/shaunmulligan/32/34_2.png) [@shaunmulligan](https://forums.balena.io/u/shaunmulligan)\
**Post date:** [July 23, 2018, 4:18pm UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/4 "2018-07-23T16:18:47Z")

</div>

Hi @Krismix1, so that error means that you are running a container that is not of the correct architecture of the CPU. the default rabbitmq container is x86 and the raspberry pi3 only runs armv7 binaries.

To fix this you should change to useing [arm32v7/rabbitmq:3.6-management](https://store.docker.com/community/images/arm32v7/rabbitmq/tags) or which ever tag is more appropriate version wise.

---

<div class="post-metadata">

**Author:** ![Krismix1](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@Krismix1](https://forums.balena.io/u/Krismix1)\
**Post date:** [July 23, 2018, 4:24pm UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/5 "2018-07-23T16:24:35Z")

</div>

Thank you @shaunmulligan , I will have a look at that.

---

<div class="post-metadata">

**Author:** ![ask4ralph](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ask4ralph/32/1441_2.png) [@ask4ralph](https://forums.balena.io/u/ask4ralph)\
**Post date:** [December 31, 2018, 2:57am UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/7 "2018-12-31T02:57:25Z")

</div>

Hello there,  
I am using a raspberrypi3.  
I have the same issue. However, i noticed that with the arm32v7 architecture, the service just restarts continuously with no relevant message - this time without the “exec format error”.

Any ideas?

Thanks

---

<div class="post-metadata">

**Author:** ![ask4ralph](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ask4ralph/32/1441_2.png) [@ask4ralph](https://forums.balena.io/u/ask4ralph)\
**Post date:** [December 31, 2018, 3:09am UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/10 "2018-12-31T03:09:18Z")

</div>

[This](https://github.com/balena-io/balena-supervisor/issues/824) was the issue!

---

<div class="post-metadata">

**Author:** ![thgreasi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thgreasi/32/454_2.png) [@thgreasi](https://forums.balena.io/u/thgreasi)\
**Post date:** [December 31, 2018, 11:48am UTC](https://forums.balena.io/t/rabbitmq-exec-format-error/3572/11 "2018-12-31T11:48:36Z")

</div>

@ask4ralph we are sorry for the inconvenience.  
Thanks for posting back what was causing the issue for you.
