Hi,
I have download and deployed HiveMQ binary package to Heroku by creating a docker image. When I view the logs the broker process seems to be working and starting without any issue’s
2021-04-09T09:36:52.477904+00:00 app[web.1]: 2021-04-09 09:36:52,301 INFO - Starting HiveMQ Community Edition Server
2021-04-09T09:36:52.480391+00:00 app[web.1]: 2021-04-09 09:36:52,308 INFO - HiveMQ version: 2021.1
2021-04-09T09:36:52.480563+00:00 app[web.1]: 2021-04-09 09:36:52,308 INFO - HiveMQ home directory: /
2021-04-09T09:36:52.480932+00:00 app[web.1]: 2021-04-09 09:36:52,375 INFO - Log Configuration was overridden by /conf/logback.xml
2021-04-09T09:36:53.129526+00:00 app[web.1]: 2021-04-09 09:36:53,128 INFO - This HiveMQ ID is cKQMX
2021-04-09T09:36:57.697598+00:00 app[web.1]: 2021-04-09 09:36:57,697 INFO - Starting with Diagnostic mode
2021-04-09T09:36:59.343132+00:00 app[web.1]: 2021-04-09 09:36:59,342 INFO - Creating ‘diagnostics’ folder in HiveMQ home folder: /
2021-04-09T09:36:59.343545+00:00 app[web.1]: 2021-04-09 09:36:59,343 INFO - Creating Diagnostics file: /diagnostics/diagnostics.txt
2021-04-09T09:36:59.390244+00:00 app[web.1]: 2021-04-09 09:36:59,389 INFO - Creating trace log /diagnostics/tracelog.log
2021-04-09T09:36:59.550359+00:00 app[web.1]: 2021-04-09 09:36:59,550 INFO - Starting HiveMQ extension system.
2021-04-09T09:36:59.646228+00:00 app[web.1]: 2021-04-09 09:36:59,632 WARN -
2021-04-09T09:36:59.646238+00:00 app[web.1]: ################################################################################################################
2021-04-09T09:36:59.646238+00:00 app[web.1]: # This HiveMQ deployment is not secure! You are lacking Authentication and Authorization. #
2021-04-09T09:36:59.646239+00:00 app[web.1]: # Right now any MQTT client can connect to the broker with a full set of permissions. #
2021-04-09T09:36:59.646239+00:00 app[web.1]: # For production usage, add an appropriate security extension and remove the hivemq-allow-all extension. #
2021-04-09T09:36:59.646240+00:00 app[web.1]: # You can download security extensions from the HiveMQ Marketplace (HiveMQ Extensions Marketplace: Integrate HiveMQ into your business). #
2021-04-09T09:36:59.646240+00:00 app[web.1]: ################################################################################################################
2021-04-09T09:36:59.650023+00:00 app[web.1]: 2021-04-09 09:36:59,649 INFO - Extension “Allow All Extension” version 1.0.0 started successfully.
2021-04-09T09:36:59.731733+00:00 app[web.1]: 2021-04-09 09:36:59,731 INFO - Starting TCP listener on address 0.0.0.0 and port 21077
2021-04-09T09:36:59.851579+00:00 app[web.1]: 2021-04-09 09:36:59,851 INFO - Started TCP Listener on address 0.0.0.0 and on port 21077
2021-04-09T09:36:59.851973+00:00 app[web.1]: 2021-04-09 09:36:59,851 INFO - Started HiveMQ in 7564ms
2021-04-09T09:37:00.249681+00:00 heroku[web.1]: State changed from starting to up
But if I use mqtt client cli to connect to the host with the following syntax it doe not working.
con -h w-mqtt-broker.herokuapp.com -p 21077 -i testClient1
My docker file is constructed like this
FROM openjdk:11-jre-slim
WORKDIR ./
COPY . ./
ExPOSE 1883
CMD ["./bin/run.sh"]
I simply extracted the zip file to my local system and created the Dockerfile inside the folder hivemq-ce-2021.1
If I run the docker image locally everything seems to be working fine. But it is not working if I deploy the image to Heroku.
Please help.
Thanks
Regards,
Harsha