thingsboard / tbmq

Open-source, scalable, and fault-tolerant MQTT broker able to handle 4M+ concurrent client connections, supporting at least 3M messages per second throughput per single cluster node with low latency delivery. The cluster mode supports more than 100M concurrently connected clients.
https://thingsboard.io/products/mqtt-broker/
Apache License 2.0
572 stars 47 forks source link

[Bug] docker compose run -d (native file, copy and paste ) #47

Closed jot4p closed 1 year ago

jot4p commented 1 year ago

Hi, Can you help ?

image

image

image

image

image

Best Regards.

dmytro-landiak commented 1 year ago

hi @jot4p!

Based on the provided info I suppose you followed the next guide: https://thingsboard.io/docs/mqtt-broker/install/docker/ Please correct me if I am wrong.

Based on the following error: "Caused by: org.postgresql.util.PSQLException: ERROR: relation "admin_settings" does not exist" it seems the database was not successfully installed.

could you pls let me know if the next command: docker compose run --no-deps --rm -e INSTALL_TB=true tb-mqtt-broker was executed successfully.

You should have seen the following lines for successful installation:

YOUR_DATE_TIME [main] INFO o.t.m.b.i.ThingsboardMqttBrokerInstallService - Loading system data... YOUR_DATE_TIME [main] INFO o.t.m.b.i.ThingsboardMqttBrokerInstallService - Installation finished successfully!

Additionally, I could suggest logging in to the Postgres container, connecting to DB and check what tables are present there.

image

The above screenshot shows that there are no tables created thus the installation was not successful.

jot4p commented 1 year ago

Hi,

After remake the command: docker compose pull and docker compose up -d postgres ...

Everything work fine!!

Maybe I execute "sudo docker compose up -d postgres" before...