# New clean build in a 2016 Pi 3B unit - Services won't start (10Nov22 image)

**URL:** <https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855>\
**Category:** Installation\
**Created:** [6 July 2023 13:13 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855 "2023-07-06T13:13:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [6 July 2023 13:13 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/1 "2023-07-06T13:13:52Z")

</div>

Hi, I have 2 units that both had the problem “Raspberry Pi Booting…” pls see the screen shots to explain all of the services that are not started. Could someone point me to a post that will help me get started. Note I decided not to rescue old install and I downloaded the 2022 image and trying to start from scratch.

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/d/9/d9a8369bbf83d2319768dc7b6ce999ad928e4a44.png)  
 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/8/0/80a002b453c46c3803fbaa4b4c63dbfa3a988dcd.jpeg)  
Thanks John

---

<div class="post-metadata">

**Author:** ![Vster](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vster](https://community.openenergymonitor.org/u/Vster)\
**Post date:** [6 July 2023 21:37 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/2 "2023-07-06T21:37:03Z")

</div>

I assume these Pi’s have been up and running fine for a while?  
And now when you reboot/restart them you are getting those errors during the boot process?

If so, it’s probably a worn out SD card. I suggest you buy a new, decent quality SD card, image it with a fresh copy of EmonSD, then (hopefully) import the data from the old card (using a SD card to USB adapter). It works like a charm, all old settings and data are pulled into the new install.

The other possibility is a poor/failing power supply, replace them with a decent quality item, the official Pi PSU’s are best and pretty cheap.

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [6 July 2023 22:42 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/3 "2023-07-06T22:42:55Z")

</div>

Hi Lee  
The history here is that both units were working until last year when I noticed that they were showing “Raspberry Pi Booting” on their screens and I was unable to login. I tried a few things to fix with no luck.  
So I decided to buy 2 new SD cards, download the latest image and reprogram the units from scratch with all the latest features.  
I have just tried another power supply on each unit - no change. FYI I have tested power supply with a scope and they are good.  
I am not trying to import any old settings. It appears to me that there is something stopping the first 4 services from starting. It seems unlikely that both hardware units have the same fault. Is it possible that my hardware is not compatible with the latest image ?? FYI with an SSH login I am able to get to the prompt and login in but the screen on the unit still says “Raspberry Pi Booting…”  
Regards John

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [6 July 2023 22:52 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/4 "2023-07-06T22:52:03Z")

</div>

This information may also help

```auto
Emonhub config
#######################################################################
####################### emonhub.conf #########################
#######################################################################
### emonHub configuration file, for info see documentation:
### https://github.com/openenergymonitor/emonhub/blob/emon-pi/configuration.md
#######################################################################
####################### emonHub settings #######################
#######################################################################

[hub]
    ### loglevel must be one of DEBUG, INFO, WARNING, ERROR, and CRITICAL
    loglevel = DEBUG
    autoconf = 1
### Uncomment this to also send to syslog
# use_syslog = yes
#######################################################################
####################### Interfacers #######################
#######################################################################

[interfacers]
    ### This interfacer manages the RFM12Pi/RFM69Pi/emonPi module
    [[EmonPi2]]
        Type = EmonHubOEMInterfacer
        [[[init_settings]]]
            com_port = /dev/ttyAMA0
            com_baud = 38400
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
            subchannels = ToRFM12,
    
    [[USB0]]
        Type = EmonHubOEMInterfacer
        [[[init_settings]]]
            com_port = /dev/ttyUSB0
            com_baud = 115200
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
            subchannels = ToRFM12,
            nodename = emonTx4
    
    [[SPI]]
        Type = EmonHubRFM69LPLInterfacer
        [[[init_settings]]]
            nodeid = 5
            networkID = 210
        [[[runtimesettings]]]
            pubchannels = ToEmonCMS,
    
    
    [[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 = 0
            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/
            
            # Single JSON payload published - use with Emoncms MQTT
            node_JSON_enable = 0
            node_JSON_basetopic = emon/
    
    [[emoncmsorg]]
        Type = EmonHubEmoncmsHTTPInterfacer
        [[[init_settings]]]
        [[[runtimesettings]]]
            pubchannels = ToRFM12,
            subchannels = ToEmonCMS,
            url = https://emoncms.org
            apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
            senddata = 1 # Enable sending data to Emoncms.org
            sendnames = 1 # Send full input names (compression will be automatically enabled)
            interval = 30 # Bulk send interval to Emoncms.org in seconds

#######################################################################
####################### Nodes #######################
#######################################################################

## See config user guide: https://github.com/openenergymonitor/emonhub
## If autoconf is enabled above, node configuration will automatically
## populate based on templates listed in available.conf

[nodes]

```

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/7/d/7dbe5b73f0953fbaaea46cb1f5154c49f768f7b7.png)

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/b/2/b2c1ff2fe49ea9c0ae07991a8cbefaacbb29a5c3.png)

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/b/e/be5d7b4a7df09acc7702d488c99e9634f86cd593.png)

![image](https://community.openenergymonitor.org/uploads/default/original/3X/e/a/eaa9357943a2d3a6d851b635342803a92cb1dd93.png)

Regards John

_[Edited for presentation - Moderator (RW)]_

---

<div class="post-metadata">

**Author:** ![Vster](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vster](https://community.openenergymonitor.org/u/Vster)\
**Post date:** [7 July 2023 13:35 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/5 "2023-07-07T13:35:29Z")

</div>

Hi John,

Have you tried the advice in the box -  
 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/c/4/c4cc8a9ea288df6238b9668d22367d02b17839bf.png)

I ask as there’s a sporting chance that it may fail if the SD card has gone into failed/self-defense/read-only mode.

Looking at the slightly fuzzy boot screen, it looks like most of the errors are the PiLCD service erroring, do you have an official EmonPi with the LCD screen?  
The other messages seems to be EmonHub failing to start (I think), that’s a problem. Is new data appearing in the graphs?

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [7 July 2023 14:19 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/6 "2023-07-07T14:19:24Z")

</div>

Hi Lee

Yes I have tried the 2 lines of code suggested - no joy.

Both Pi units were purchased from the store. In 2015 and 2016 I think

Also when the units boot up 1 says emonpi V2.81 and the second says V2.84

Also here is a better screen shot of the faults

 ![image](https://community.openenergymonitor.org/uploads/default/original/3X/2/2/22c91ed39498a89206f1cca447803d128a10e543.jpeg)

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [7 July 2023 14:09 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/7 "2023-07-07T14:09:48Z")

</div>

Hi Lee

The Raspberry Pis were both purchased from the OpenEnergy store with software installed back around 2015 I think.

Yes I have tried the commands suggested – no joy

![image001.png](https://community.openenergymonitor.org/uploads/default/original/3X/8/f/8f294c750caf53aee4a5f0b4237e36c8cd4e125f.png)

![image.png](https://community.openenergymonitor.org/uploads/default/original/3X/c/4/c4cc8a9ea288df6238b9668d22367d02b17839bf.png)

![image003.png](https://community.openenergymonitor.org/uploads/default/original/3X/4/7/47cf8ee8706f7166e152e10a0e50033bb57cedad.png)

 ![image.png](https://community.openenergymonitor.org/uploads/default/original/3X/7/d/7dbe5b73f0953fbaaea46cb1f5154c49f768f7b7.png)

 ![image.png](https://community.openenergymonitor.org/uploads/default/original/3X/b/2/b2c1ff2fe49ea9c0ae07991a8cbefaacbb29a5c3.png)

 ![image.png](https://community.openenergymonitor.org/uploads/default/original/3X/b/e/be5d7b4a7df09acc7702d488c99e9634f86cd593.png)

![image.png](https://community.openenergymonitor.org/uploads/default/original/3X/e/a/eaa9357943a2d3a6d851b635342803a92cb1dd93.png)

---

<div class="post-metadata">

**Author:** ![Bill.Thomson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/bill.thomson/32/1834_2.png) [@Bill.Thomson](https://community.openenergymonitor.org/u/Bill.Thomson)\
**Post date:** [7 July 2023 16:43 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/8 "2023-07-07T16:43:53Z")

</div>

> [@Vster](#):
>
> I ask as there’s a sporting chance that it may fail if the SD card has gone into failed/self-defense/read-only mode.

But, John says:

> [@John\_White](#):
>
> So I decided to buy 2 new SD cards, download the latest image and reprogram the units from scratch with all the latest features.

There’s always the chance the two new cards are not good.  
But the odds on that seem to suggest other issues are at play here.

Given the age of both emonPis, opening them, reseating the daughtercard  
on the GPIO connector and inspecting the boards for cold solder joints  
wouldn’t be a bad idea.

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [7 July 2023 22:44 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/9 "2023-07-07T22:44:27Z")

</div>

Hi Bill thanks for suggestions  
Ihave taken both apart and checked for dry joints etc… - All good I believe

Just tried a 3rd card - same result

Thanks

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [8 July 2023 00:13 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/10 "2023-07-08T00:13:50Z")

</div>

More Information  
Is it possible that my hardware will not run this latest Image ??  
On the pc board it says emonPi v1.6 Jun2015.  
Is there some code that needs to be run to transition this board to run the latest Image ??  
I have found a 24Jul2020 image and it appears to work

---

<div class="post-metadata">

**Author:** ![Vster](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vster](https://community.openenergymonitor.org/u/Vster)\
**Post date:** [9 July 2023 18:09 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/11 "2023-07-09T18:09:40Z")

</div>

> [@John\_White](#):
>
> Yes I have tried the commands suggested – no joy

When you say no joy, what exactly happens when you type those commands?

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [9 July 2023 18:14 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/12 "2023-07-09T18:14:23Z")

</div>

> [@John\_White](#):
>
> On the pc board it says emonPi v1.6 Jun2015.

Prior to the notice in the last day or few about the ‘new’ emonPi, which is on the way ([AVR-DB: emonTx V4, new hardware in progress - #298 by TrystanLea](https://community.openenergymonitor.org/t/avr-db-emontx-v4-new-hardware-in-progress/20209/298)), V1.6 was the latest version. It also depends on the Raspberry Pi itself, as far as I know, every version after 2B works, I’m not sure of anything before this.

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [9 July 2023 18:20 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/13 "2023-07-09T18:20:16Z")

</div>

> [@John\_White](#):
>
> Just tried a 3rd card - same result

How are you writing the image to the card? Problems have been reported with Raspberry Pi Imager. ([Login Problems - #17 by RichardOwen](https://community.openenergymonitor.org/t/login-problems/23088/17))  
Does the checksum on the download match?  
(Long shots, I know)

---

<div class="post-metadata">

**Author:** ![Vster](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vster](https://community.openenergymonitor.org/u/Vster)\
**Post date:** [9 July 2023 20:30 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/14 "2023-07-09T20:30:09Z")

</div>

> [@John\_White](#):
>
> Is it possible that my hardware will not run this latest Image ??

Unlikely, I don’t have an EmonPi, I have an RFM69Pi which is an older but similar idea without the screen attached to a Pi2. It’s running the latest image EmonCMS/EmonSD image with lots of further updates pulled from GitHub.

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [10 July 2023 00:00 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/15 "2023-07-10T00:00:29Z")

</div>

Hi Lee  
When I put the commands in they were accepted without error but nothing had appeared to change  
John

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [10 July 2023 01:55 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/16 "2023-07-10T01:55:13Z")

</div>

Hi Robert  
I was more focused on the Raspberry Pi imager verifying the image on the SD card.

The results are below  
I:\EmonPi\>certutil -hashfile emonSD-10Nov22\_16gb.zip MD5  
MD5 hash of emonSD-10Nov22\_16gb.zip:  
271d8d502e822e3703500a5762519c1d  
CertUtil: -hashfile command completed successfully.

I:\EmonPi\emonSD-10Nov22\_16gb\>certutil -hashfile emonsd-10nov22\_16gb.img MD5  
MD5 hash of emonsd-10nov22\_16gb.img:  
f5d7963ffa585231210a5b4f560fc39e  
CertUtil: -hashfile command completed successfully.

Which means that this is likely the problem. I have redone the download from 3 different browsers and gotten the same result.

Is there another server I can get a download from ?? I also put the checksum for the .img file as well.

John

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [10 July 2023 02:00 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/17 "2023-07-10T02:00:54Z")

</div>

Hi Robert

Imeant to say that I did download the 21Jul21 file and the checksum is correct .

As well as this I checked the system and this time the emonhub service will start but the following services did not and will not start  
emoncms\_mqtt  
feedwriter  
service-runner  
redis-server  
emonPiLCD

---

<div class="post-metadata">

**Author:** ![Bramco](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/b/34f0e0/32.png) [@Bramco](https://community.openenergymonitor.org/u/Bramco)\
**Post date:** [10 July 2023 07:12 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/18 "2023-07-10T07:12:11Z")

</div>

> [@John\_White](#):
>
> Is it possible that my hardware will not run this latest Image ??  
> On the pc board it says emonPi v1.6 Jun2015.  
> Is there some code that needs to be run to transition this board to run the latest Image ??  
> I have found a 24Jul2020 image and it appears to work

This could be the issue. Earlier this year there were some problems getting the image to work on a PiZero. I think @TrystanLea and @borpin made some changes to the scripts that create the image to make it work. So the scripts now work but the image which was created with the scripts with the problem might not have been updated. At the time, there was a suggestion that a note be attached to the image information about possible incompatibility. Don’t know if this was ever done.

Given the 2020 image works, is it possible to do an update from that to get to the latest version? I don’t know the answer to that and can’t check. @TrystanLea @borpin is this possible?

Simon

---

<div class="post-metadata">

**Author:** ![John\_White](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@John\_White](https://community.openenergymonitor.org/u/John_White)\
**Post date:** [10 July 2023 07:30 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/19 "2023-07-10T07:30:33Z")

</div>

Hi Lee, Robert & Simon

Even thou the checksum was wrong for the EmonSD\_10Nov22\_16db.zip file I decided to take Robert’s suggestion and use another Imager -\>Etcher Tool.

The rewsult was that everything works perfectly. Whilst I haven’t programmed all the feeds yet it seemlessly did a full update and all services are Green.

Thankyou everybody for your help.

John

_[RPi Imager settings used were]_

allow SSH  
Username & Password  
Configure wireless LAN  
Local settings Australia - keyboard US [_locale settings?_]

_(Moderator - RW)_

---

<div class="post-metadata">

**Author:** ![Vster](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/v/258eb7/32.png) [@Vster](https://community.openenergymonitor.org/u/Vster)\
**Post date:** [10 July 2023 08:59 UTC](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855/20 "2023-07-10T08:59:16Z")

</div>

Hi John,  
Good news that’s it’s working. I’m slightly concerned the checksum of the iso was wrong though.

I’ve just downloaded it again, and md5sum’ed it and you are indeed correct.  
The published checksum is -  
(.zip) MD5: d4d27fcc553996768366662709307dda  
The newly computed checksum is -  
lee@workstation:~/Downloads$ md5sum emonSD-10Nov22\_16gb.zip  
271d8d502e822e3703500a5762519c1d emonSD-10Nov22\_16gb.zip

Is the website just out of date (which may confuse newcomers), or more worryingly is a supply chain attack in progress?  
Can @TrystanLea have a look please?

[Next page](https://community.openenergymonitor.org/t/new-clean-build-in-a-2016-pi-3b-unit-services-wont-start-10nov22-image/23855.md?page=2)
