zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

MQTT error: connect ECONNREFUSED

Open jaydhary14 opened this issue 1 year ago • 5 comments

What happened?

Consistently getting the "MQTT error: connect ECONNREFUSED" error message on my vm running on ProxMox. This has has started recently and have never seen this error before.

I have mqtt running on vm as well in a proxmomx

I am using latest version of homeassistant running on proxmox

What did you expect to happen?

Not sure why I am getting this message, I would expect this message to go away

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.32.1

Adapter firmware version

20210708

Adapter

zStack3x0

Debug log

No response

jaydhary14 avatar Oct 28 '23 13:10 jaydhary14

did you try using programs like mqttx to check whether you can access your mqtt server?

redpixy avatar Oct 29 '23 13:10 redpixy

Disabled IPV6 on zigbee and mqtt , restarded the server , however still getting the error

@.***

From: redpixy @.> Date: Sunday, October 29, 2023 at 8:54 AM To: Koenkk/zigbee2mqtt @.> Cc: jaydhary14 @.>, Author @.> Subject: Re: [Koenkk/zigbee2mqtt] MQTT error: connect ECONNREFUSED (Issue #19457)

disabled ipv6 on your server if your network doesn't support it.

— Reply to this email directly, view it on GitHubhttps://github.com/Koenkk/zigbee2mqtt/issues/19457#issuecomment-1784120459, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI7XW7KNQ3RS6PAERR4HTB3YBZNZ3AVCNFSM6AAAAAA6UDFUDKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBUGEZDANBVHE. You are receiving this because you authored the thread.Message ID: @.***>

jaydhary14 avatar Oct 29 '23 14:10 jaydhary14

  1. is your network_mode: host ?
  2. have you tried programs like mqttx to test the connection to your mqtt server?
  3. is your mqtt using anonymous connection?

redpixy avatar Oct 30 '23 01:10 redpixy

I had to set the IP to 127.0.0.1 instead of localhost. The containers do not have the proper hosts files set.

Buttars avatar Oct 31 '23 07:10 Buttars

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Apr 29 '24 00:04 github-actions[bot]