# Problem starting my broker

**URL:** <https://community.hivemq.com/t/problem-starting-my-broker/3065>\
**Category:** HiveMQ Community Edition\
**Created:** [July 28, 2024, 4:22pm UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065 "2024-07-28T16:22:46Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 28, 2024, 4:22pm UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/1 "2024-07-28T16:22:46Z")

</div>

i have broker runing in amazon aws instance and I restart the instance after restart the broker refused to reconnect  
I run /etc/init.d/hivemq status  
and result is  
hivemq.service - HiveMQ Community Edition  
Loaded: loaded (/etc/systemd/system/hivemq.service; enabled; vendor preset: enabled)  
Active: active (running) since Sun 2024-07-28 15:43:48 UTC; 37min ago  
Main PID: 858 (java)  
Tasks: 35 (limit: 1134)  
CGroup: /system.slice/hivemq.service  
└─858 java -Dhivemq.home=/opt/hivemq -XX:HeapDumpPath=/opt/hivemq/heap-dump.hprof -XX:ErrorFile=/opt/hivemq/hs\_err\_pid%p.log -Djava.net.…ar

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 28, 2024, 4:29pm UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/2 "2024-07-28T16:29:12Z")

</div>

netstat -an | grep 1883  
return nothing !

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [July 29, 2024, 7:32am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/3 "2024-07-29T07:32:21Z")

</div>

Hi @gendiaaa

Hello and a warm welcome to the HiveMQ Community! We’re delighted that you’re interested in MQTT and the HiveMQ broker. Your presence brings us great joy.

I don’t see any error message in the information you’ve provided. What you’ve shared appears to be a status report for the HiveMQ service, and it indicates that the service is currently running. Here’s a breakdown of the key information:

1. The service is loaded and enabled.
2. It’s active and running since Sunday, July 28, 2024, at 15:43:48 UTC.
3. It has been running for 37 minutes at the time this status was checked.
4. The main process ID is 858.

This status suggests that the HiveMQ broker is actually running on your AWS instance. If you’re having issues connecting to it, check HiveMQ logs for more detailed information about security and port configuration errors. You want to check the “hivemq.log” file from the start moment until the line “Started HiveMQ in…”. Official documentation on logs: [Logging :: HiveMQ Documentation](https://docs.hivemq.com/hivemq/latest/user-guide/logging.html)

Best,  
Dasha from the HiveMQ Team

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 7:36am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/4 "2024-07-29T07:36:55Z")

</div>

this is when i try to run.sh  
2024-07-29 01:38:59,925 INFO - Starting HiveMQ Community Edition Server  
2024-07-29 01:38:59,930 INFO - HiveMQ version: 2022.2-SNAPSHOT  
2024-07-29 01:38:59,930 INFO - HiveMQ home directory: /opt/hivemq  
2024-07-29 01:38:59,931 INFO - Log Configuration was overridden by /opt/hivemq/conf/logback.xml  
2024-07-29 01:39:00,460 INFO - This HiveMQ ID is UnBhb  
2024-07-29 01:39:05,613 ERROR - Exception on Log recovery. Approved high address = -1145652621  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1704042, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)  
2024-07-29 01:39:07,405 ERROR - Exception on Log recovery. Approved high address = -947695375  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1687552, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 7:39am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/5 "2024-07-29T07:39:57Z")

</div>

2024-07-29 00:01:11,044 INFO - Starting HiveMQ Community Edition Server  
2024-07-29 00:01:11,048 INFO - HiveMQ version: 2022.2-SNAPSHOT  
2024-07-29 00:01:11,048 INFO - HiveMQ home directory: /opt/hivemq  
2024-07-29 00:01:11,049 INFO - Log Configuration was overridden by /opt/hivemq/conf/logback.xml  
2024-07-29 00:01:11,865 INFO - This HiveMQ ID is sM1Ny  
2024-07-29 00:01:17,453 ERROR - Exception on Log recovery. Approved high address = -1145652621  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1704042, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)  
2024-07-29 00:01:19,990 ERROR - Exception on Log recovery. Approved high address = -947695375  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1687552, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)  
2024-07-29 00:08:23,350 INFO - Starting HiveMQ Community Edition Server  
2024-07-29 00:08:23,358 INFO - HiveMQ version: 2022.2-SNAPSHOT  
2024-07-29 00:08:23,358 INFO - HiveMQ home directory: /opt/hivemq  
2024-07-29 00:08:23,363 INFO - Log Configuration was overridden by /opt/hivemq/conf/logback.xml  
2024-07-29 00:08:24,288 INFO - This HiveMQ ID is nhm8a  
2024-07-29 00:08:32,522 ERROR - Exception on Log recovery. Approved high address = -1145652621  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1704042, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)  
2024-07-29 00:08:36,677 ERROR - Exception on Log recovery. Approved high address = -947695375  
jetbrains.exodus.ExodusException: Can’t read loggable fully, address = 1687552, file = 00000000000.xd  
at jetbrains.exodus.log.Log.(Log.java:151)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:137)  
at jetbrains.exodus.env.Environments.newLogInstance(Environments.java:115)  
at jetbrains.exodus.env.Environments.newContextualInstance(Environments.java:99)  
at com.hivemq.persistence.local.xodus.XodusLocalPersistence.lambda$start$2(XodusLocalPersistence.java:164)  
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)  
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)  
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)  
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)  
at java.base/java.lang.Thread.run(Thread.java:829)  
2024-07-29 00:56:58,731 INFO - Starting HiveMQ Community Edition Server  
2024-07-29 00:56:58,736 INFO - HiveMQ version: 2022.2-SNAPSHOT  
2024-07-29 00:56:58,736 INFO - HiveMQ home directory: /opt/hivemq  
2024-07-29 00:56:58,738 INFO - Log Configuration was overridden by /opt/hivemq/conf/logback.xml  
2024-07-29 00:56:59,343 INFO - HiveMQ start was cancelled. An error occurred while opening the persistence. Is another HiveMQ instance running?  
2024-07-29 00:58:24,249 INFO - Starting HiveMQ Community Edition Server  
2024-07-29 00:58:24,252 INFO - HiveMQ version: 2022.2-SNAPSHOT  
2024-07-29 00:58:24,252 INFO - HiveMQ home directory: /opt/hivemq

---

<div class="post-metadata">

**Author:** ![Daria\_H](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@Daria\_H](https://community.hivemq.com/u/Daria_H)\
**Post date:** [July 29, 2024, 7:54am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/6 "2024-07-29T07:54:39Z")

</div>

Hi @gendiaaa

Thanks for sharing the log. Can you confirm the issue is observed not only with version 2022.2 but also with the latest version [2024.6](https://github.com/hivemq/hivemq-community-edition/releases/tag/2024.6)?

Best,  
Dasha from the HiveMQ Team

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 7:56am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/7 "2024-07-29T07:56:12Z")

</div>

i did not setup version 2024.6  
i have the old version

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 7:56am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/8 "2024-07-29T07:56:47Z")

</div>

i think i need help to update to the new version right ?

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 8:22am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/9 "2024-07-29T08:22:17Z")

</div>

please lemme know what is the problem so I can try to solve or help me to solve it please its urgent case

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [July 29, 2024, 10:01am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/10 "2024-07-29T10:01:36Z")

</div>

I see two potential issues:

1. You already have a running HiveMQ process therefore the second process can’t start up. So make sure you don’t already have a running HiveMQ instance (maybe started via service?)
2. The data folder got corrupted because due to instance restart or something else. If that is the case you would need to delete the content of the HiveMQ data folder, **which means you loose all client data** , then start with a clean slate. Best way to test this is to copy whole HiveMQ folder and delete the data folder in the copied folder and then try to start instance via the copied folder.

Greetings,  
Michael

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 10:15am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/11 "2024-07-29T10:15:45Z")

</div>

thank you and yes its happened after restart and I do not know why this happens after restart  
sp you mean if I delete my data files I will be able to run again ?

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 10:17am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/12 "2024-07-29T10:17:58Z")

</div>

can you tell me how exactly i can do this to delete which files ?  
:/opt/hivemq/data$ ls  
data.lock meta.id metadata persistence

I am here in data folder which file should I delete and how?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [July 29, 2024, 10:35am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/13 "2024-07-29T10:35:36Z")

</div>

Basically everything in `/opt/hivemq/data`:  
Linux: `rm -fr /opt/hivemq/data/*`  
But as I said test this with a copied hivemq folder first to see if this would solve your issue.

I also would recommend to test the first issue I mentioned aka make sure you do not have already a HiveMQ process running that you are not aware of

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 10:46am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/14 "2024-07-29T10:46:32Z")

</div>

okay the test is run successfully i copied the hivemq folder inside opt to new hivemq2 folder  
then I delete data  
I run.sh  
working great  
now I have to stop this running process and delete hivemq2 folder then go to hivemq original folder and delete data then restart the server it should work again ?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [July 29, 2024, 11:03am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/15 "2024-07-29T11:03:22Z")

</div>

Yes correctly. But stop any HiveMQ process/service you can find before you delete the data folder of `/opt/hivemq/data`. After you deleted the data folder you can start the HiveMQ process or service.

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 11:40am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/16 "2024-07-29T11:40:01Z")

</div>

i do not know how to thank you you saved my day and life … thank you so much

---

<div class="post-metadata">

**Author:** ![gendiaaa](https://avatars.discourse-cdn.com/v4/letter/g/a8b319/32.png) [@gendiaaa](https://community.hivemq.com/u/gendiaaa)\
**Post date:** [July 29, 2024, 9:25pm UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/17 "2024-07-29T21:25:50Z")

</div>

may i ask you a small question? at what point in the error logs did you figure out the problem in the data folder which point shows that? and as I understand now this data folder is created on the running time to store the data like retained messages and those data is that right ?

---

<div class="post-metadata">

**Author:** ![michael\_w](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.hivemq.com/michael_w/32/200_2.png) [@michael\_w](https://community.hivemq.com/u/michael_w)\
**Post date:** [July 30, 2024, 8:44am UTC](https://community.hivemq.com/t/problem-starting-my-broker/3065/18 "2024-07-30T08:44:15Z")

</div>

As you can see in the logs

```auto
2024-07-29 00:56:59,343 INFO - HiveMQ start was cancelled. An error occurred while opening the persistence. Is another HiveMQ instance running?

```

and in combination with the ERROR logs i.e. `com.hivemq.persistence.local.xodus.XodusLocalPersistence`

Persistence == data folder
