Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] crashes when the network drops #461

Open
magiva opened this issue Oct 20, 2023 · 2 comments
Open

[BUG] crashes when the network drops #461

magiva opened this issue Oct 20, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@magiva
Copy link

magiva commented Oct 20, 2023

Describe the bug

all zigbee devices show offline - this may be due to the zha integration (issue logged there also) but i see log errors here so im logging here

To Reproduce

see logs

Expected behavior

Steps I took to try resolve the problem

Screenshots

Installation

  • Version of Zigbee2Mqtt:
  • Version of Zigbee2MqttAssistant:
  • Installation type (HASS.IO, Docker...):
  • Docker version + CPU type (amd64, arm arm64...):

Pertinent logs

Starting Zigbee2MqttAssistant v0.3.157+Branch.master.Sha.ea388c3bbc2d43c4c9c62f27bb6764911ba4acc9...
Hosting environment: Production
Content root path: /app
Now listening on: http://[::]:80
Application started. Press Ctrl+C to shut down.
warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
Disconnected from MQTT server 192.168.86.34.
MQTTnet.Exceptions.MqttCommunicationTimedOutException: Exception of type 'MQTTnet.Exceptions.MqttCommunicationTimedOutException' was thrown.
at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout) at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken) warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0] Unable to connect to MQTT server 192.168.86.34. System.Threading.Tasks.TaskCanceledException: A task was canceled. at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout)
at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken)
at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken)
warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
Disconnected from MQTT server 192.168.86.34.
MQTTnet.Exceptions.MqttCommunicationTimedOutException: Exception of type 'MQTTnet.Exceptions.MqttCommunicationTimedOutException' was thrown.
at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout) at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken) warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0] Disconnected from MQTT server 192.168.86.34. MQTTnet.Exceptions.MqttCommunicationTimedOutException: Exception of type 'MQTTnet.Exceptions.MqttCommunicationTimedOutException' was thrown. at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout)
at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken)
at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken)
warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0]
Disconnected from MQTT server 192.168.86.34.
MQTTnet.Exceptions.MqttCommunicationTimedOutException: Exception of type 'MQTTnet.Exceptions.MqttCommunicationTimedOutException' was thrown.
at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout) at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken) at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken) warn: Zigbee2MqttAssistant.Services.MqttConnectionService[0] Disconnected from MQTT server 192.168.86.34. MQTTnet.Exceptions.MqttCommunicationTimedOutException: Exception of type 'MQTTnet.Exceptions.MqttCommunicationTimedOutException' was thrown. at MQTTnet.PacketDispatcher.MqttPacketAwaiter1.WaitOneAsync(TimeSpan timeout)
at MQTTnet.Client.MqttClient.SendAndReceiveAsync[TResponsePacket](MqttBasePacket requestPacket, CancellationToken cancellationToken)
at MQTTnet.Client.MqttClient.TrySendKeepAliveMessagesAsync(CancellationToken cancellationToken)

Additional context

@magiva magiva added the bug Something isn't working label Oct 20, 2023
@magiva
Copy link
Author

magiva commented Oct 24, 2023

this happens when network connectivity drops, my asus mesh node loses connection to the base router for a moment, all other devices recover but zha and zig2mqtt does not

@magiva
Copy link
Author

magiva commented Oct 24, 2023

the zha bug ticket is here if you want that for reference, like i say, the only thing not to recover is zigbee intergration with zha and this zg2mqtt addon
home-assistant/core#102373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant