Thanks for sharing your logs too, it would look like the same thing is happening here, looking at the “thread name” column it starts off on the “MainThread” creating all the other interfacers which should each be on thier own thread.

It moves on to the “MQTT” thread and connects to the MQTT server etc. Moves on to the “emoncms” thread and reports some send errors.

When a packet arrives via a socket the “socketb” thread parses it ok and then tries to publish it, that is not right, it should be the MQTT thread that publishes it. It then apparently remains on that thread till the “MainThread” detects the “socketb” thread has disappeared.

Another odd observation is that nothing appears to be logged from the "emoncms" thread after it locks into the "socketb" thread and then once the "socketb" thread is dead the "emoncms" thread kicks in again and has a multi packet payload the first off which is 12 secs old and originates from when the "socketb" entries started. Just noticed there is also a 18sec gap immediately prior to the first "socketb" frame too. I think the only conclusion I can draw from this 1st brief look is that is is not likely to be the RFM2Pi interfacer since the socket interfacer does it to, at first glance It seems to be the MQTT interfacer at fault but I cannot rule out the emoncmshttp interfacer playing a part in it as I cannot tell if the pause of the "emoncms" thread is cause or effect of the odd MQTT interfacer behavior. Actually now I think about it the emoncmshttp interfacer only sends every 30secs so it may just be coincidence, In Dave's log it appears there is a log entry from the "emoncmsorg" thread in the middle of the run of "RFM2Pi" messages.

EDIT - Ignore all I said about the emoncms thread, it does actually make some sense there is an 18 sec gap after the http errors at startup before the first data frame lands at “socketb” the 12 secs later, coincidently after the “socketb” thread has died it sends the data to emoncms, 18sec gap + 12secs of data = 30sec intervals !! so that was a red herring.