All of my feeds have become "inactive" and data is no longer logging

I have not looked at my emonpi in a while as I mainly use it to monitor A/C energy use in the summer. Today I logged in and data has not been logging since December. All of my feeds say “inactive” and there doesn’t seem to be any obvious way to turn them back on.

I have updated the software and restarted the device but it’s still not working. I don’t really know how to start debugging this.

Welcome, Stephen, to the forum.

There isn’t a way to “turn on” your feeds - they will update when data arrives in emonCMS from emonHub and is processed. So you need to start where the data comes in and follow it through.

Have you looked at emonHub? This is where the data from the analogue part (the energy monitor) first enters the Raspberry Pi. If you go to Setup → Emonhub (the loudhailer icon), it should open showing the emonHub log. Every 10 s, it should update with new values, something like

2024-05-01 16:48:09,745 DEBUG    EmonPi2    279529 NEW FRAME : OK 5 195 87 6 0 0 0 0 0 0 0 60 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 200 0 0 0 46 0 0 0 (-0)
2024-05-01 16:48:09,748 DEBUG    EmonPi2    279529 Timestamp : 1714578489.745139
2024-05-01 16:48:09,749 DEBUG    EmonPi2    279529 From Node : 5
2024-05-01 16:48:09,749 DEBUG    EmonPi2    279529    Values : [415683, 0, 0, 0, 0.6, 0, 0, 0, 0, 0, 0, 0, 0, 200, 46, 0, 0.0]
2024-05-01 16:48:09,750 DEBUG    EmonPi2    279529 Sent to channel(start)' : ToEmonCMS
2024-05-01 16:48:09,751 DEBUG    EmonPi2    279529 Sent to channel(end)' : ToEmonCMS
2024-05-01 16:48:09,872 DEBUG    MQTT       Publishing: emon/emonpiCM_5/Msg 415683
2024-05-01 16:48:09,874 DEBUG    MQTT       Publishing: emon/emonpiCM_5/power1 0
2024-05-01 16:48:09,875 DEBUG    MQTT       Publishing: emon/emonpiCM_5/power2 0
2024-05-01 16:48:09,877 DEBUG    MQTT       Publishing: emon/emonpiCM_5/power1pluspower2 0
2024-05-01 16:48:09,878 DEBUG    MQTT       Publishing: emon/emonpiCM_5/vrms 0.6
2024-05-01 16:48:09,880 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t1 0
2024-05-01 16:48:09,882 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t2 0
2024-05-01 16:48:09,883 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t3 0
2024-05-01 16:48:09,885 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t4 0
2024-05-01 16:48:09,887 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t5 0
2024-05-01 16:48:09,889 DEBUG    MQTT       Publishing: emon/emonpiCM_5/t6 0
2024-05-01 16:48:09,891 DEBUG    MQTT       Publishing: emon/emonpiCM_5/pulse1count 0
2024-05-01 16:48:09,892 DEBUG    MQTT       Publishing: emon/emonpiCM_5/pulse2count 0
2024-05-01 16:48:09,894 DEBUG    MQTT       Publishing: emon/emonpiCM_5/E1 200
2024-05-01 16:48:09,896 DEBUG    MQTT       Publishing: emon/emonpiCM_5/E2 46
2024-05-01 16:48:09,898 DEBUG    MQTT       Publishing: emon/emonpiCM_5/missed 0
2024-05-01 16:48:09,899 DEBUG    MQTT       Publishing: emon/emonpiCM_5/missedprc 0.0

If it is updating, look at the Inputs page and on the right there should be a column of times in green (up to 10 seconds since the data last came in) if that shows n/a in red, the data isn’t getting into emonCMS.

Still in Setup, go to Admin at the bottom of the menu, and look there: you should see a lot of Services listed, all should be Active and Running, except possibly for demandshaper: Not found or not installed

I’m not a RPi or emonCMS expert, so when you report back what you’ve found, I’ll need to hand over to somebody who knows more.

Thanks for your response. I have no clue how this thing works so it’s good to get some pointers!

The data is not appearing in emonhub. This is the log since it restarted about 11 hours ago:

2024-05-01 11:02:49,479 INFO     MainThread EmonHub v2.6.6
2024-05-01 11:02:49,480 INFO     MainThread Opening hub...
2024-05-01 11:02:49,481 INFO     MainThread Running as user: pi
2024-05-01 11:02:49,481 INFO     MainThread Logging level set to DEBUG
2024-05-01 11:02:49,482 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2024-05-01 11:02:49,484 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2024-05-01 11:02:51,486 WARNING  MainThread Device communication error - check settings
2024-05-01 11:02:51,487 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2024-05-01 11:02:52,489 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2024-05-01 11:02:53,491 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2024-05-01 11:02:54,493 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2024-05-01 11:02:55,495 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2024-05-01 11:02:56,497 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2024-05-01 11:02:56,497 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2024-05-01 11:02:56,499 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2024-05-01 11:02:56,501 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2024-05-01 11:02:56,502 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2024-05-01 11:02:56,502 INFO     MainThread Setting MQTT node_format_enable: 1
2024-05-01 11:02:56,502 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2024-05-01 11:02:56,503 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2024-05-01 11:02:56,503 INFO     MainThread Setting MQTT node_JSON_enable: 0
2024-05-01 11:02:56,504 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2024-05-01 11:02:56,506 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2024-05-01 11:02:56,507 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2024-05-01 11:02:56,507 WARNING  MainThread Setting emoncmsorg apikey: obscured
2024-05-01 11:02:56,508 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2024-05-01 11:02:56,508 INFO     MainThread Setting emoncmsorg senddata: 1
2024-05-01 11:02:56,508 INFO     MainThread Setting emoncmsorg sendstatus: 1
2024-05-01 11:02:56,509 INFO     MainThread Setting emoncmsorg sendnames: 0
2024-05-01 11:02:56,509 INFO     MainThread Setting emoncmsorg compress: 0
2024-05-01 11:02:56,510 DEBUG    MainThread Automatic configuration of nodes disabled

I looked at the services and they all appear to be on.

emonpi_services

2024-05-01 11:02:49,484 DEBUG MainThread Opening serial port: /dev/ttyAMA0 @ 38400 bits/s
2024-05-01 11:02:51,486 WARNING MainThread Device communication error - check settings.

This is telling me it can’t communicate with the “emon” board that does the energy monitoring. It looks as if the baud rate is wrong - 38400 is an old setting, we now use 115200 baud.

On the emonhub page, click on “Edit config” and very near the top, you’ll see this:

[interfacers]
    ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
    [[EmonPi2]]
        Type = EmonHubOEMInterfacer
        [[[init_settings]]]
            com_port = /dev/ttyAMA0
            com_baud = 115200
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
            subchannels = ToRFM12,

I don’t know the age of your emonPi - in the [interfacers] section, try changing the baud rate to 115200, save the file and watch for that error as emonHub restarts. If it reappears, both 9600 and 57600 have been used in the past, so try those in turn.

My Interfacers section looked like this:

[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
        calibration = 230V                      # (UK/EU: 230V, US: 110V)
        quiet = true                            # Disable quite mode (default enabled) to enable RF packet debugging, show packets which fail crc
        # interval =  300                         # Interval to transmit time to emonGLCD (seconds)

The only baud rate setting is for EmonHubJeeInterfacer so I tried changing that but none of the values worked:

2024-05-01 22:58:57,961 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 9600 bits/s
2024-05-01 22:58:59,964 WARNING  MainThread Device communication error - check settings
2024-05-01 22:59:37,931 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 115200 bits/s
2024-05-01 22:59:39,934 WARNING  MainThread Device communication error - check settings
2024-05-01 23:00:17,909 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 57600 bits/s
2024-05-01 23:00:19,911 WARNING  MainThread Device communication error - check settings

I bought and installed my emonpi around July 2022 if that helps? At least that is when the data started logging.

@TrystanLea @borpin Can either of you help here?

Hello @xylonsteve

Couple of things to try:

  1. Full power cycle, turn off the power for at ~10s.
    [Edit]
    DON’T just pull the plug, Do a controlled shutdown of the RPi via the Shutdown button on the Admin page or the pushbutton and menu on the emonPi.
    [ /Edit – RW]

  2. You could try updating the emonPi firmware via the local emoncms admin > update page. E.g:

Do you have any radio nodes, e.g emonTx3/4 or emonTh2?

I did a hard restart. There are some other errors in my log:

2024-05-02 16:09:05,068 DEBUG    MainThread Opening serial port: /dev/ttyAMA0 @ 57600 bits/s
2024-05-02 16:09:07,071 WARNING  MainThread Device communication error - check settings
2024-05-02 16:09:07,072 INFO     MainThread Setting RFM2Pi baseid: 5 (5i)
2024-05-02 16:09:08,074 INFO     MainThread Setting RFM2Pi frequency: 433 (4b)
2024-05-02 16:09:09,075 INFO     MainThread Setting RFM2Pi group: 210 (210g)
2024-05-02 16:09:10,077 INFO     MainThread Setting RFM2Pi quiet: 1 (1q)
2024-05-02 16:09:11,079 INFO     MainThread Setting RFM2Pi calibration: 230V (1p)
2024-05-02 16:09:12,081 DEBUG    MainThread Setting RFM2Pi pubchannels: ['ToEmonCMS']
2024-05-02 16:09:12,082 DEBUG    MainThread Setting RFM2Pi subchannels: ['ToRFM12']
2024-05-02 16:09:12,083 INFO     MainThread Creating EmonHubMqttInterfacer 'MQTT'
2024-05-02 16:09:12,086 DEBUG    MainThread Setting MQTT pubchannels: ['ToRFM12']
2024-05-02 16:09:12,087 DEBUG    MainThread Setting MQTT subchannels: ['ToEmonCMS']
2024-05-02 16:09:12,087 INFO     MainThread Setting MQTT node_format_enable: 1
2024-05-02 16:09:12,087 INFO     MainThread Setting MQTT nodevar_format_enable: 1
2024-05-02 16:09:12,088 INFO     MainThread Setting MQTT nodevar_format_basetopic: emon/
2024-05-02 16:09:12,088 INFO     MainThread Setting MQTT node_JSON_enable: 0
2024-05-02 16:09:12,089 INFO     MainThread Creating EmonHubEmoncmsHTTPInterfacer 'emoncmsorg'
2024-05-02 16:09:12,091 DEBUG    MainThread Setting emoncmsorg pubchannels: ['ToRFM12']
2024-05-02 16:09:12,092 DEBUG    MainThread Setting emoncmsorg subchannels: ['ToEmonCMS']
2024-05-02 16:09:12,092 WARNING  MainThread Setting emoncmsorg apikey: obscured
2024-05-02 16:09:12,093 INFO     MainThread Setting emoncmsorg url: https://emoncms.org
2024-05-02 16:09:12,093 INFO     MainThread Setting emoncmsorg senddata: 1
2024-05-02 16:09:12,093 INFO     MainThread Setting emoncmsorg sendstatus: 1
2024-05-02 16:09:12,094 INFO     MainThread Setting emoncmsorg sendnames: 0
2024-05-02 16:09:12,094 INFO     MainThread Setting emoncmsorg compress: 0
2024-05-02 16:09:12,095 DEBUG    MainThread Automatic configuration of nodes disabled
2024-05-03 10:13:44,965 INFO     MainThread Deleting interfacer 'RFM2Pi'
2024-05-03 10:13:44,966 INFO     MainThread Creating EmonHubJeeInterfacer 'RFM2Pi'
2024-05-03 10:13:44,966 ERROR    MainThread Unable to create 'RFM2Pi' interfacer: __init__() got an unexpected keyword argument 'orig: com_baud'
2024-05-03 10:13:44,967 INFO     MainThread Setting emoncmsorg senddata: 1
2024-05-03 10:13:44,968 INFO     MainThread Setting emoncmsorg sendstatus: 1

I have no radios etc.