emonPi: liest keine Werte ein / no inputs are read

Hallo!

Mein Englisch ist nicht das beste, daher in zwei sprachen…

Ich habe das emonpi Solar Paket, leider habe ich ein Problem.
originalzustand.

Das system läuft einige Stunden. dann werden keine Eingänge mehr gelesen.

Nach einem Neustart des emonPi funktioniert es einige Stunden und Stoppt dann wieder…

Was kann ich tun?


Hello!

My English is not the best, so in two languages …

I have the emonpi solar package, unfortunately I have a problem.
original state.

The system runs for several hours. then no inputs are read.

After a restart of the emonPi it works a few hours and then stops again …

What can I do?

Is the system fully up to date? Run a full update from the admin screen and post the update log please.

Hallo!

Thank you!

i have run a full update…

i am a new user in this forum
I can not post Log file with the links and can not
t upload attachments.
:roll_eyes:

now it works again …

Hope he will not stop again.
maybe this problem is already solved?

Possibly.

I have increased your privileges.

You can post the text output. Format it using 3 backticks on a line before the log output and again on a line afterwards.

Thank you!

    Starting update via service-runner-update.sh (v2.0) >
    - emonSD version: emonSD-30Oct18
    emonSD base image check passed...continue update
    git pull /home/pi/emonpi
      enable-ssh
      enable-ssh-button
      gpiozero-enable-ssh
      greeebs-patch-1
    * master
      python-systemd-servicerunner
    On branch master
    Your branch is up-to-date with 'origin/master'.
    nothing to commit, working tree clean
    From https://github.com/openenergymonitor/emonpi
       b8c057f..0a0c6ba  master     -> origin/master
    Updating b8c057f..0a0c6ba
    Fast-forward
     defaults/etc/emonhub/emonhub.env |  3 ---
     update/emonhub.sh                | 19 +++++++++++++++----
     2 files changed, 15 insertions(+), 7 deletions(-)
     delete mode 100644 defaults/etc/emonhub/emonhub.env
    -------------------------------------------------------------
    Main Update Script
    -------------------------------------------------------------
    Date: Mon 24 Jun 11:52:56 UTC 2019
    EUID: 1000
    usrdir: /home/pi
    type: all
    firmware: emonpi
    Checking environment:
    - pi user found

    EUID: 1000
    Hardware detected: EmonPi
    Stopping emonPiLCD service
    Display update message on LCD
    I2C LCD DETECTED Ox27
    -------------------------------------------------------------
    Get:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
    Get:2 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
    Get:3 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
    Fetched 11.7 MB in 17s (660 kB/s)
    Reading package lists...
    Reading package lists...
    Building dependency tree...
    Reading state information...
    rng-tools is already the newest version (2-unofficial-mt.14-1).
    python-gpiozero is already the newest version (1.5.0).
    python-rpi.gpio is already the newest version (0.6.5~stretch-1).
    0 upgraded, 0 newly installed, 0 to remove and 121 not upgraded.
    Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
    -------------------------------------------------------------
    git pull /home/pi/RFM2Pi
    * master
    On branch master
    Your branch is up-to-date with 'origin/master'.
    nothing to commit, working tree clean
    Already up-to-date.

    git pull /home/pi/usefulscripts
    * master
    On branch master
    Your branch is up-to-date with 'origin/master'.
    nothing to commit, working tree clean
    Already up-to-date.

    git pull /home/pi/huawei-hilink-status
    * master
    On branch master
    Your branch is up-to-date with 'origin/master'.
    nothing to commit, working tree clean
    Already up-to-date.

    git pull /home/pi/oem_node-red
    * master
    On branch master
    Your branch is up-to-date with 'origin/master'.
    nothing to commit, working tree clean
    Already up-to-date.

    -------------------------------------------------------------
    EmonPi Firmware Update
    -------------------------------------------------------------
    Start ATmega328 serial upload using avrdude with latest.hex
    Discrete Sampling
    avrdude -c arduino -p ATMEGA328P -P /dev/ttyAMA0 -b 115200 -U flash:w:/home/pi/emonpi/firmware/compiled/latest.hex
    avrdude-original: Using autoreset DTR on GPIO Pin 7

    avrdude-original: AVR device initialized and ready to accept instructions

    Reading | ################################################## | 100% 0.00s

    avrdude-original: Device signature = 0x1e950f (probably m328p)
    avrdude-original: NOTE: "flash" memory has been specified, an erase cycle will be performed
                      To disable this feature, specify the -D option.
    avrdude-original: erasing chip
    avrdude-original: reading input file "/home/pi/emonpi/firmware/compiled/latest.hex"
    avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
    avrdude-original: writing flash (17886 bytes):

    Writing | ################################################## | 100% 2.48s

    avrdude-original: 17886 bytes of flash written
    avrdude-original: verifying flash memory against /home/pi/emonpi/firmware/compiled/latest.hex:
    avrdude-original: load data flash data from input file /home/pi/emonpi/firmware/compiled/latest.hex:
    avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex auto detected as Intel Hex
    avrdude-original: input file /home/pi/emonpi/firmware/compiled/latest.hex contains 17886 bytes
    avrdude-original: reading on-chip flash data:

    Reading | ################################################## | 100% 1.87s

    avrdude-original: verifying ...
    avrdude-original: 17886 bytes of flash verified
    strace: |autoreset: Broken pipe
    strace: |autoreset: Broken pipe
    strace: |autoreset: Broken pipe
    strace: |autoreset: Broken pipe
    strace: |autoreset: Broken pipe

    avrdude-original done.  Thank you.

    strace: |autoreset: Broken pipe
    Start emonhub update script:
    -------------------------------------------------------------
    emonHub update started
    -------------------------------------------------------------
    - usr directory: /home/pi
    git pull /home/pi/emonhub
    * emon-pi
    On branch emon-pi
    Your branch is up-to-date with 'origin/emon-pi'.
    nothing to commit, working tree clean
    From https://github.com/openenergymonitor/emonhub
       f850a88..ee1f537  emon-pi    -> origin/emon-pi
    Updating f850a88..ee1f537
    Fast-forward
     configuration.md        | 2 +-
     install.sh              | 4 +++-
     service/emonhub.service | 2 +-
     3 files changed, 5 insertions(+), 3 deletions(-)
    Creating emonhub logfile
    Symlinking emonhub.conf to /etc/emonhub/emonhub.conf
    emonhub.service already installed

    Running emonhub automatic node addition script
    [[5]]
    Node 5 already present
    [[6]]
    Node 6 already present
    [[7]]
    Node 7 already present
    [[8]]
    Node 8 already present
    [[9]]
    Node 9 already present
    [[10]]
    Node 10 already present
    [[11]]
    Node 11 already present
    [[12]]
    Node 12 already present
    [[13]]
    Node 13 already present
    [[14]]
    Node 14 already present
    [[19]]
    Node 19 already present
    [[20]]
    Node 20 already present
    [[21]]
    Node 21 already present
    [[22]]
    Node 22 already present
    [[23]]
    Node 23 already present
    [[24]]
    Node 24 already present
    [[25]]
    Node 25 already present
    [[26]]
    Node 26 already present

    Start emoncms update:

    -------------------------------------------------------------
    Emoncms update started
    Emoncms update script V1.3 (26th March 2019)
    -------------------------------------------------------------
    - usr directory: /home/pi
    - emoncms directory: /var/www/emoncms

    current settings.php md5: 0e4803a641b7784ed23edf87506ce761
    Default settings.php md5: 0e4803a641b7784ed23edf87506ce761
    settings.php has NOT been user modifed

    Checking status of /var/www/emoncms git repository
    - git branch: stable
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/emoncms
     * branch              stable     -> FETCH_HEAD
    Already up-to-date.

    NEW default settings.php md5: 0e4803a641b7784ed23edf87506ce761
    settings.php not updated

    -------------------------------------------------------------
    Updating Emoncms Modules
    -------------------------------------------------------------

    ------------------------------------------
    Updating /var/www/emoncms/Modules/app module
    ------------------------------------------
    - git branch: stable
    - git tags: 1.2.0-108-g6e5016a
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/app
     * branch            stable     -> FETCH_HEAD
    Already up-to-date.

    ------------------------------------------
    Updating /var/www/emoncms/Modules/config module
    ------------------------------------------
    - git branch: stable
    - git tags: 1.0.0-63-g1d9238e
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/config
     * branch            stable     -> FETCH_HEAD
    Already up-to-date.

    ------------------------------------------
    Updating /var/www/emoncms/Modules/dashboard module
    ------------------------------------------
    - git branch: stable
    - git tags: 1.3.1-115-gabd1a0b
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/dashboard
     * branch            stable     -> FETCH_HEAD
       abd1a0b..337df80  stable     -> origin/stable
    Updating abd1a0b..337df80
    Fast-forward
     Views/dashboard_list.php                       |  318 +++++--
     dashboard_controller.php                       |    8 +-
     dashboard_model.php                            |   22 +-
     locale/cy_GB/LC_MESSAGES/dashboard_messages.mo |  Bin 0 -> 1067 bytes
     locale/cy_GB/LC_MESSAGES/dashboard_messages.po | 1203 ++++++++++++++++++++++++
     module.json                                    |    2 +-
     6 files changed, 1448 insertions(+), 105 deletions(-)
     create mode 100644 locale/cy_GB/LC_MESSAGES/dashboard_messages.mo
     create mode 100644 locale/cy_GB/LC_MESSAGES/dashboard_messages.po

    ------------------------------------------
    Updating /var/www/emoncms/Modules/device module
    ------------------------------------------
    - git branch: master
    - git tags: 1.1.1-48-g2ea6e74
    - no local changes
    - running: git pull origin master

    From https://github.com/emoncms/device
     * branch            master     -> FETCH_HEAD
    Already up-to-date.

    ------------------------------------------
    Updating /var/www/emoncms/Modules/graph module
    ------------------------------------------
    - git branch: stable
    - git tags: 1.2.1-151-gc7f4ea9
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/graph
     * branch            stable     -> FETCH_HEAD
    Already up-to-date.

    ------------------------------------------
    Updating /var/www/emoncms/Modules/wifi module
    ------------------------------------------
    - git branch: stable
    - git tags: 1.2.0-39-gb67783d
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/wifi
     * branch            stable     -> FETCH_HEAD
    Already up-to-date.

    ------------------------------------------
    Updating postprocess module
    ------------------------------------------
    - git branch: emonpi
    - git tags: 2.1.0
    - no local changes
    - running: git pull origin emonpi

    From https://github.com/emoncms/postprocess
       3c2d737..1d25eb6  emonpi     -> origin/emonpi
    Updating 3c2d737..1d25eb6
    Fast-forward
     postprocess-module/postprocess_controller.php | 3 +--
     1 file changed, 1 insertion(+), 2 deletions(-)
    Already on 'emonpi'
    Your branch is up-to-date with 'origin/emonpi'.

    ------------------------------------------
    Updating sync module
    ------------------------------------------
    - git branch: master
    - git tags: 2.0.1-2-gc5eb931
    - no local changes
    - running: git pull origin master

    From https://github.com/emoncms/sync
       c5eb931..3ae3226  master     -> origin/master
    Updating c5eb931..3ae3226
    Fast-forward
     readme.md                       |  4 ++--
     sync-module/sync_controller.php | 12 +++++-------
     sync-module/sync_menu.php       | 27 +++++++++++++++------------
     sync-module/sync_view.php       | 12 +-----------
     4 files changed, 23 insertions(+), 32 deletions(-)
    Already on 'master'
    Your branch is up-to-date with 'origin/master'.

    ------------------------------------------
    Updating backup module
    ------------------------------------------
    - git branch: stable
    - git tags: 2.0.0-12-g67a1f1d
    - no local changes
    - running: git pull origin stable

    From https://github.com/emoncms/backup
       67a1f1d..e365ab5  master     -> origin/master
    Already up-to-date.
    Already on 'stable'
    Your branch is up-to-date with 'origin/stable'.

    ------------------------------------------
    Auto Installation of Emoncms Modules
    ------------------------------------------
    - graph module already installed
    - device module already installed
    - postprocess module already installed
    - sync module already installed
    - backup module already installed

    www-data : www-data video systemd-journal

    ------------------------------------------
    SERVICES
    ------------------------------------------
    emoncms_mqtt.service already installed
    feedwriter.service already installed
    service-runner.service already installed
    ------------------------------------------
    Reloading systemctl deamon
    Update Emoncms database
    []

    Restarting Services...
    - sudo systemctl restart feedwriter.service
    --- ActiveState=active ---
    - sudo systemctl restart emoncms_mqtt.service
    --- ActiveState=active ---
    - sudo systemctl restart emonhub.service
    --- ActiveState=active ---
    Symlinking emonpiupdate.log
    Installing emoncms logrotate...

    Now setting up Logrotate...
    Backing up old logrotate configuration...
    Linked to new logrotate configuration...
    Backing up old logrotate cron job...
    mv: cannot stat '/etc/cron.daily/logrotate': No such file or directory
    Linked to new logrotate cron job...

    Completed


    Completed

    Running logrotate...

    set log rotate config owner to root

    ------------------------------------------
    Emoncms update script complete
    ------------------------------------------


    Starting emonPi LCD service..


    -------------------------------------------------------------
    emonPi update done: Mon 24 Jun 11:54:38 UTC 2019
    -------------------------------------------------------------
    restarting service-runner
    service-runner: no process found

The emonhub.service file was updated so hopefully that has solved the issue.

It is the backtick you need not the apostrophe. On a UK keyboard, it is found next to the ‘1’ key top left of the keyboard. I edited your post if you want to see how it looks :smile:.

Looks like Marco is in Germany.


image

Yes that was why I said the key would be found top left on a UK keyboard, in case a German keyboard is different in that respect as I know the Keyboard layout is different in some respects.

Hello!

Thank you very much for the quick support from you!

I think next time I will find the right button :raising_hand_man:

best regards
Marco

1 Like