bmartin5692 / bumper

A standalone and self-hosted implementation of the central server used by Ecovacs vacuum robots.
GNU General Public License v3.0
273 stars 48 forks source link

Fresh Docker install, MQTT fails to bind to 8883 #107

Closed laramy2020 closed 3 years ago

laramy2020 commented 3 years ago

Describe the bug Fresh manjaro base install (using architect) only docker running, no other services MQTT fails to bind to port 8333

To Reproduce sign in to box install docker install docker image of bumper run listed command in help docs replacing x.x.x.x with the ip of the host docker is running on

sudo pacman -S docker
sudo systemctl enable docker
sudo systemctl start docker
sudo docker pull bmartin5692/bumper
sudo docker run -it -e "BUMPER_ANNOUNCE_IP=192.168.6.157" -p 443:443 -p 8007:8007 -p 8883:8883 -p 5223:5223 -v /var/bumper/data:/bumper/data --name bumper bmartin5692/bumper

Expected behavior Services startup and bind to ports

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information): N/A

Vacuum (please complete the following information):

Additional context

[2020-12-24 18:09:48,881] :: WARNING :: hbmqtt.client :: client :: _connect_coro :: 426 :: MQTT connection failed: ConnectionRefusedError(111, "Connect call failed ('172.17.0.2', 8883)")
[2020-12-24 18:09:48,881] :: WARNING :: hbmqtt.client :: client :: connect :: 145 :: Connection failed: ConnectException(ConnectionRefusedError(111, "Connect call failed ('172.17.0.2', 8883)"))
[2020-12-24 18:09:48,882] :: INFO :: hbmqtt.broker :: broker :: start :: 285 :: Listener 'tls1' bind to 172.17.0.2:8883 (max_connections=-1)
[2020-12-24 18:09:49,896] :: INFO :: hbmqtt.broker :: broker :: acquire_connection :: 90 :: Listener 'tls1': 1 connections acquired
[2020-12-24 18:09:49,896] :: INFO :: hbmqtt.broker :: broker :: client_connected :: 354 :: Connection from 172.17.0.2:55604 on listener 'tls1'
[2020-12-24 18:09:49,900] :: INFO :: mqttserver :: mqttserver :: authenticate :: 267 :: Bumper Authentication Success - Helperbot: helperbot@bumper/helperbot
Bustel commented 3 years ago

I get the same error for the latest Docker build. Is the image not up to date with the master branch?

edenhaus commented 3 years ago

I get the same error for the latest Docker build. Is the image not up to date with the master branch?

The fix exists only in my PR, which is not yet merged. In the meantime this error can be ignored. The helper bot tries to connect after the server is started