Replies: 7 comments 8 replies
-
@Zitt, nice integration with Promox! Issue you describe, sure sounds like it could be a bug in the Fanpico firmware. Alternatively, if you have syslog server available, you could enable logging over network using In the meanwhile, I'll check the source if I can find some obvious bug... Btw, do you have MQTT server configured using IP or DNS name? |
Beta Was this translation helpful? Give feedback.
-
yeah; let me see what I can do. |
Beta Was this translation helpful? Give feedback.
-
@tjko - I'm getting ready to try and reproduce but have another data point. |
Beta Was this translation helpful? Give feedback.
-
I may have reproduced the issue, it seems that after about 170 connection attempts LwIP starts returning error when trying to open TCP connection...
Now need to try to figure out what is causing this, and is the problem in Fanpico or in LwIP library... Btw, do you have TLS enabled with MQTT? |
Beta Was this translation helpful? Give feedback.
-
@tjko Good news is that #105 seemed to fix the connection problem I was having (but unreported). I can log into the system with telnet after the main system was powered off for several hours to half a day. I'm still not seeing MQTT recover tho. I turned off the system at about 11:30pm last night and left it off until about 6pm today. I don't remember if I set the logs to INFO or not last night. That said at about 11:30pm; I saw a bunch of syslog messages saying Warning: MQTT disconnected from 192.168.1.135 which is my MQTT broker. It repeated irregularly; probably printing 1000 times until 13:11:50 where it just stopped reporting those messages. |
Beta Was this translation helpful? Give feedback.
-
Was not able to replicate with latest firmware based upon our changes.
but when I fired up the VM again; it auto recovered:
I'll see if I can make another attempt tonight. |
Beta Was this translation helpful? Give feedback.
-
I was able to recreate a MQTT hang. Log said:
I think the Wifi down/up message was because I happen to have my router set to reboot every Sunday morning. |
Beta Was this translation helpful? Give feedback.
-
@tjko ... twice now I've noticed that picofan does not appear to be resilient w/ regards to MQTT communication.
I'm seeing a situation where picofan launches pretty fast as compared to my Proxmox server which then launches a container with runs the EMWX broker.
I'm thinking that picofan tries to subscribe / post to the MQTT broker and makes some unintentional decision because the IP address is not "up yet".
Then it refuses to send another packet to the broker until the picofan is power cycled or reset.
I can "fix" this by manually connecting the picofan serial port and typing *RST ... then the firmware sees the broker and will send data.
Is there a "timeout" which would allow picofan to retry the MQTT process?
Beta Was this translation helpful? Give feedback.
All reactions