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]: WiFi permanently disconnects after some time when using MQTT, reboot required to fix #5559

Closed
chairmanfaust opened this issue Dec 13, 2024 · 11 comments · Fixed by #5592
Labels
bug Something isn't working

Comments

@chairmanfaust
Copy link

Category

WiFi

Hardware

Station G2

Firmware Version

2.5.14

Description

I have a station G2 acting as an MQTT gateway via wifi. After about a day or two i can no longer use the app to connect via wifi address. My router shows that the device is connected and still has an IP address but it no longer responds to ping. The behavior is identical to a closed bug found here: #4725

Relevant log output

No response

@chairmanfaust chairmanfaust added the bug Something isn't working label Dec 13, 2024
@chairmanfaust chairmanfaust changed the title [Bug]: WiFi disconnects after some time when using MQTT [Bug]: WiFi permanently disconnects after some time when using MQTT, reboot required to fix Dec 13, 2024
@Matzebhv
Copy link

Same problem here with 2 t-beam supreme. You can try to update to > .14 as it seems that this fixed the problem for some people. For me and others this does not work but is worth the try.
You can also look here -> #5549 and here -> #5458
For me it seems to be an ESP related problem.

@madeofstown
Copy link
Contributor

I thought that version 2.5.15 had fixed the problem but after about a week of stability the G2 disconnected from WiFi and required a restart.

@koliha
Copy link

koliha commented Dec 16, 2024

Spoke too soon in #5458 - I managed 10 days 17hrs of uptime before it exhausted all heap memory and stopped responding. Looks like a memory leak, probably as outlined in #5549

Ping was still semi-responsive. Hitting the http/json page was impossible. It also dropped off MQTT.

Screenshot 2024-12-16 at 11 01 01 AM
Screenshot 2024-12-16 at 11 01 13 AM
Screenshot 2024-12-16 at 10 55 34 AM

@esev
Copy link
Contributor

esev commented Dec 17, 2024

Can you confirm that you are not using JSON mode for MQTT and have downlink enabled? If that's correct, I suspect this due to the memory leaks from #5549. If that's not correct, then there is another issue to troubleshoot. (my mistake, see comment below).

@Matzebhv
Copy link

In my case i am not using JSON mode.

@chairmanfaust
Copy link
Author

I am using JSON on my mqtt server and have downlink enabled on my primary (longfast) channel as well as 2 other channels

Screenshot_20241217_135632_Meshtastic

Screenshot_20241217_142617_Meshtastic

@esev
Copy link
Contributor

esev commented Dec 17, 2024

My mistake. I hadn't realized that MQTT::sendSubscriptions() subscribes to both JSON and protobuf topics. It's probably the same memory leaks from the previously mentioned issue.

@garthvh
Copy link
Member

garthvh commented Dec 17, 2024

JSON functionality in the firmware is in the process of being retired #5507

@garthvh garthvh closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
@esev
Copy link
Contributor

esev commented Dec 17, 2024

@garthvh The memory leak is not in the JSON code-path. #5549 for details; essentially the same bug.

@garthvh
Copy link
Member

garthvh commented Dec 18, 2024

@garthvh The memory leak is not in the JSON code-path. #5549 for details; essentially the same bug.

Perfect, no need for a duplicate bug

@EnGamma
Copy link

EnGamma commented Dec 18, 2024

I'm seeing similar/same symptoms of losing phone-node wifi connection with TLORA_V2_1_1P6 device fw 2.5.11. I'm sometimes able to reboot the node from another using RF remote administration. I have 4 identical HW nodes all on fw 2.5.11, but it is affecting 2 nodes more than the others and one node especially.

These symptoms started after fw update from 2.3.10 to 2.5.11.

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

Successfully merging a pull request may close this issue.

7 participants