# Update emonPi script issue

**URL:** <https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359>\
**Category:** emonPi\
**Tags:** script, backup, emonpi\
**Created:** [25 August 2016 18:52 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359 "2016-08-25T18:52:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 August 2016 18:52 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/1 "2016-08-25T18:52:49Z")

</div>

Glyn - I just did an update EmonPi and came across a small issue . There are two areas in the update script for the /home/pi/backup update. In the emonpiupdate.log, one is near line 30 and one is near line 145.  
&nbsp;

**near line 30:**

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/7/7d878432c1bf7eb47ab2ec82f11b49703885780d.png)  
&nbsp;

**near** line 145:

 ![](https://community.openenergymonitor.org/uploads/default/original/2X/8/8747f81f8eb6f7f2fb6a7ec5d0b2c6bdbc7763f6.png)  
&nbsp;

here is the log file for reference.:  
[2016-08-25 at 12-36-47 - emonpiupdate.log.txt](https://community.openenergymonitor.org/uploads/default/original/2X/a/a5c4957b1296b30d422cdd907aea54a6cda03577.txt) (4.1 KB)

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [25 August 2016 19:37 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/2 "2016-08-25T19:37:00Z")

</div>

Well spotted @Jon!  
I’ve sent @glyn.hudson a [git-pull request](https://github.com/openenergymonitor/emonpi/pull/26) to remove the duplicate.

Paul

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [25 August 2016 19:59 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/3 "2016-08-25T19:59:34Z")

</div>

I’m glad you knew which one to delete! 🙂

---

<div class="post-metadata">

**Author:** ![Paul](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/paul/32/28_2.png) [@Paul](https://community.openenergymonitor.org/u/Paul)\
**Post date:** [25 August 2016 20:16 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/4 "2016-08-25T20:16:06Z")

</div>

> [@Jon](#):
>
> I’m glad you knew which one to delete!

Well unless Glyn has other ideas, it seemed more logical to remove the ‘update’ script section, because the ‘emoncmsupdate’ script already updates a number of emoncms modules - wifi, dashboard, app etc. (…and also installs the backup module if it isn’t present).

Paul

---

<div class="post-metadata">

**Author:** ![glyn.hudson](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/glyn.hudson/32/35003_2.png) [@glyn.hudson](https://community.openenergymonitor.org/u/glyn.hudson)\
**Post date:** [25 August 2016 21:24 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/5 "2016-08-25T21:24:10Z")

</div>

Thanks! Good spot

- sent from my mobile device

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [30 August 2016 00:31 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/6 "2016-08-30T00:31:13Z")

</div>

FYI - I am not sure if the git pull request made it through and was approved but wanted you to know there are still two git pull /home/pi/backup areas in the emonPi update.

---

<div class="post-metadata">

**Author:** ![pb66](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/pb66/32/27_2.png) [@pb66](https://community.openenergymonitor.org/u/pb66)\
**Post date:** [30 August 2016 09:28 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/7 "2016-08-30T09:28:11Z")

</div>

Did you run update twice?

The first time you run it, it will be the existing update routine already on your emonPi, then when you run update again, the updated update routine will be used.

---

<div class="post-metadata">

**Author:** ![Jon](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/jon/32/1876_2.png) [@Jon](https://community.openenergymonitor.org/u/Jon)\
**Post date:** [30 August 2016 14:05 UTC](https://community.openenergymonitor.org/t/update-emonpi-script-issue/1359/8 "2016-08-30T14:05:56Z")

</div>

Yes. I’ve run it a few times. I am following the graph updates Trystan and you are discussing [Emoncms Graph module developments](https://community.openenergymonitor.org/t/emoncms-graph-module-developments/1380)

PS - I really like the new graph changes!
