# Hivemq with docker compose fail to start

**URL:** <https://community.hivemq.com/t/hivemq-with-docker-compose-fail-to-start/613>\
**Category:** HiveMQ Community Edition\
**Created:** [June 29, 2021, 5:41pm UTC](https://community.hivemq.com/t/hivemq-with-docker-compose-fail-to-start/613 "2021-06-29T17:41:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abarbe](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@abarbe](https://community.hivemq.com/u/abarbe)\
**Post date:** [June 29, 2021, 5:41pm UTC](https://community.hivemq.com/t/hivemq-with-docker-compose-fail-to-start/613/1 "2021-06-29T17:41:10Z")

</div>

Hi everyone  
I try to start hivmq ce with docker compose with this yaml

```auto
version: '3.5'
services:
    hivemq:
        container_name: hivemq
        image: hivemq/hivemq-ce:2021.1
        restart: always
        networks:
            - network_name
        ports:
            - "8000:8000"
            - "1883:1883"
        volumes:
            - hivemq-data-volume:/opt/hivemq/data
            - hivemq-log-volume:/opt/hivemq/log
            - hivemq-conf-volume:/opt/hivemq/conf

volumes:
    hivemq-data-volume:
    hivemq-log-volume:
    hivemq-conf-volume:

networks:
    network_name:

```

but when I start this with

```auto
docker-compose -f hivemq.yml up -d

```

I always obtain this result in stdout

```auto
2021-06-29 15:19:33,661 DEBUG - Setting payload format validation to false
2021-06-29 15:19:33,661 DEBUG - Setting allow-problem-information to true
2021-06-29 15:19:33,661 DEBUG - Setting anonymous usage statistics enabled to false
2021-06-29 15:19:33,662 INFO - This HiveMQ ID is XsX0G
2021-06-29 15:19:33,691 ERROR - Uncaught Error:
java.nio.BufferUnderflowException: null
        at java.base/java.nio.HeapByteBuffer.get(Unknown Source)
        at com.hivemq.migration.meta.MetaInformationSerializer.getStringFromBuffer(MetaInformationSerializer.java:134)
        at com.hivemq.migration.meta.MetaInformationSerializer.deserialize(MetaInformationSerializer.java:92)
        at com.hivemq.migration.meta.MetaFileService.readMetaFile(MetaFileService.java:66)
        at com.hivemq.migration.Migrations.checkForTypeMigration(Migrations.java:57)
        at com.hivemq.HiveMQServer.main(HiveMQServer.java:134)

```

Any idea ?

---

<div class="post-metadata">

**Author:** ![bmach](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/bmach/32/204_2.png) [@bmach](https://community.hivemq.com/u/bmach)\
**Post date:** [October 6, 2021, 6:58am UTC](https://community.hivemq.com/t/hivemq-with-docker-compose-fail-to-start/613/2 "2021-10-06T06:58:19Z")

</div>

I had the same issue.  
This was because I previously run the HiveMQ4 (enterprise edition).  
I just had to delete volumes and it runs like a charm.
