emonPi Crashing

Hi I seem to be having issues with my emonPi crashing after approx 4 days, Ive attached a copy of the emonhub.log and it is filling up with the same lines.

Oddly enough the only thing that is still working on the input page is the data that being passed from Node Red via EmonCMS output module, this would indicate that the MQTT is crashing thou in Node Red it indicated that it is still connected to the MQTT service???

The emonPi is running (Release Candidate #2 ): emonSD-29Mar16 - emonPi / emonBase (Raspberry Pi + RFM69Pi) Emoncms v9 pre-built SD card image with only basic mods to the emonCMS web files.

Can anybody give me any pointers on tracking down why this is happning?

 

Emonhub.log
2016-04-24 13:43:08,628 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:08,865 WARNING MainThread RFM2Pi thread is dead 2016-04-24 13:43:08,866 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:09,125 WARNING MainThread RFM2Pi thread is dead 2016-04-24 13:43:09,126 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:09,419 WARNING MainThread RFM2Pi thread is dead 2016-04-24 13:43:09,420 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:09,645 WARNING MainThread RFM2Pi thread is dead 2016-04-24 13:43:09,646 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:09,872 WARNING MainThread RFM2Pi thread is dead 2016-04-24 13:43:09,873 WARNING MainThread MQTT thread is dead 2016-04-24 13:43:10,099 WARNING MainThread RFM2Pi thread is dead
 

Regards

Dave

M0n0wall's picture

Re: emonPi Crashing

I've tracked the problem down to the emonhub service and a command to restart resolved the problem. As the problem was due to emonhub it may be advantages to post my emonhub config file. ####################################################################### #######################      emonhub.conf     ######################### ####################################################################### ### emonHub configuration file, for info see documentation: ### http://github.com/openenergymonitor/emonhub/blob/master/configuration.md ####################################################################### #######################    emonHub  settings    ####################### ####################################################################### [hub] ### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL loglevel = DEBUG ####################################################################### #######################       Interfacers       ####################### ####################################################################### [interfacers] ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module [[RFM2Pi]]     Type = EmonHubJeeInterfacer     [[[init_settings]]]         com_port = /dev/ttyAMA0         com_baud = 38400                        # 9600 for old RFM12Pi     [[[runtimesettings]]]         pubchannels = ToEmonCMS,         subchannels = ToRFM12,         group = 210         frequency = 433         baseid = 5                              # emonPi / emonBase nodeID         quiet = false                           # Report incomplete RF packets (no implemented on emonPi)         calibration = 230V                      # (UK/EU: 230V, US: 110V)         # interval =  0                         # Interval to transmit time to emonGLCD (seconds) [[MQTT]]     Type = EmonHubMqttInterfacer     [[[init_settings]]]         mqtt_host = 127.0.0.1         mqtt_port = 1883         mqtt_user = emonpi         mqtt_passwd = emonpimqtt2016     [[[runtimesettings]]]         pubchannels = ToRFM12,         subchannels = ToEmonCMS,         # emonhub/rx/10/values format         # Use with emoncms Nodes module         node_format_enable = 1         node_format_basetopic = emonhub/         # emon/emontx/power1 format - use with Emoncms MQTT input         # http://github.com/emoncms/emoncms/blob/master/docs/RaspberryPi/MQTT.md         nodevar_format_enable = 1         nodevar_format_basetopic = emon/ [[emoncmsorg]]     Type = EmonHubEmoncmsHTTPInterfacer     [[[init_settings]]]     [[[runtimesettings]]]         pubchannels = ToRFM12,         subchannels = ToEmonCMS,         url = http://emoncms.org         apikey = a72a7187237dea1ffeb2f47777b2070c         senddata = 1         sendstatus = 1 ####################################################################### #######################          Nodes          ####################### ####################################################################### [nodes] ## See config user guide: http://github.com/openenergymonitor/emonhub/blob/master/configuration.md [[5]]     nodename = emonpi     [[[rx]]]         names = RearPV,FrontPV,TotalGeneration,vrms,t1,t2,t3,t4,t5,t6,pulsecount,Irms1,Irms2,Irms1_plus_2,powerFactor1,powerFactor2         datacodes = h, h, h, h, h, h, h, h, h, h, L, h, h, h, h, h         scales = 1,1,1,0.01,0.1,0.1,0.1,0.1,0.1,0.1,1,0.1,0.1,0.1,0.01,0.01         units = W,W,W,V,C,C,C,C,C,C,p,A,A,A,C,C [[6]]     nodename = emontxshield     [[[rx]]]        names = power1, power2, power3, power4, vrms        datacode = h        scales = 1,1,1,1,0.01        units =W,W,W,W,V [[7]]    nodename = emonTx_Node7     [[[rx]]]        names = Commando_Skt, Air_Con, Outside_Sockets, Outside_Lights, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse, Irms1, Irms2, Irms3, Irms4, powerFactor1, powerFactor2, powerFactor3, powerFactor4        datacodes = h,h,h,h,h,h,h,h,h,h,h,L,h,h,h,h,h,h,h,h        scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1,0.1,0.1,0.1,0.1,0.01,0.01,0.01,0.01        units =W,W,W,W,V,C,C,C,C,C,C,p,A,A,A,A,C,C,C,C [[8]]     nodename = emonTx_Node8     [[[rx]]]        names = Upstairs_Sockets, Shed_Submain, Loft_Sockets, Upstairs_Lights, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse, Irms1, Irms2, Irms3, Irms4, powerFactor1, powerFactor2, powerFactor3, powerFactor4        datacodes = h,h,h,h,h,h,h,h,h,h,h,L,h,h,h,h,h,h,h,h        scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1,0.1,0.1,0.1,0.1,0.01,0.01,0.01,0.01        units =W,W,W,W,V,C,C,C,C,C,C,p,A,A,A,A,C,C,C,C [[9]]    nodename = emonTx_Node9     [[[rx]]]        names = Supply, Kitchen_Sockets, Downstairs_Sockets, Downstairs_Lights, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse, Irms1, Irms2, Irms3, Irms4, powerFactor1, powerFactor2, powerFactor3, powerFactor4        datacodes = h,h,h,h,h,h,h,h,h,h,h,L,h,h,h,h,h,h,h,h        scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1,0.1,0.1,0.1,0.1,0.01,0.01,0.01,0.01        units =W,W,W,W,V,C,C,C,C,C,C,p,A,A,A,A,C,C,C,C [[10]]     nodename = emonTx_Diverter     [[[rx]]]         names = Grid_Watts, Diverted_Watts, Cooker, Shower, Diverted_Energy_WattHours, vrms, temp         datacodes = h, h, h, h, h, h, h         scales = 1,1,1,1,1,0.01,0.1         units = W,W,W,W,W,V,C [[11]]    nodename = emonTx_Node11    [[[rx]]]       names = power1, power2, power3, power4, vrms, temp1, temp2, temp3, temp4, temp5, temp6, pulse       datacodes = h,h,h,h,h,h,h,h,h,h,h,L       scales = 1,1,1,1,0.01,0.1,0.1, 0.1,0.1,0.1,0.1,1       units =W,W,W,W,V,C,C,C,C,C,C,p [[19]]    nodename = emonth1    [[[rx]]]       names = temperature, external temperature, humidity, battery       datacode = h       scales = 0.1,0.1,0.1,0.1       units = C,C,%,V [[20]]    nodename = emonth2    [[[rx]]]       names = temperature, external temperature, humidity, battery       datacode = h       scales = 0.1,0.1,0.1,0.1       units = C,C,%,V [[21]]    nodename = emonth3    [[[rx]]]       names = temperature, external temperature, humidity, battery       datacode = h       scales = 0.1,0.1,0.1,0.1       units = C,C,%,V [[22]]    nodename = emonth4    [[[rx]]]       names = temperature, external temperature, humidity, battery       datacode = h       scales = 0.1,0.1,0.1,0.1       units = C,C,%,V [[23]]     nodename = emonth5     [[[rx]]]        names = temperature, external temperature, humidity, battery, pulsecount        datacodes = h,h,h,h,L        scales = 0.1,0.1,0.1,0.1,1        units = C,C,%,V,p [[24]]     nodename = emonth6     [[[rx]]]        names = temperature, external temperature, humidity, battery, pulsecount        datacodes = h,h,h,h,L        scales = 0.1,0.1,0.1,0.1,1        units = C,C,%,V,p [[25]]     nodename = emonth7     [[[rx]]]        names = temperature, external temperature, humidity, battery, pulsecount        datacodes = h,h,h,h,L        scales = 0.1,0.1,0.1,0.1,1        units = C,C,%,V,p [[26]]     nodename = emonth8     [[[rx]]]        names = temperature, external temperature, humidity, battery, pulsecount        datacodes = h,h,h,h,L        scales = 0.1,0.1,0.1,0.1,1        units = C,C,%,V,p

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.