LCD Frozen

Hi,

I recently updated my emonPI from the Administration pages. I think it completed successfully, and everything seems to be working - except for the LCD, which is stuck saying Raspberry PI Booting…

As I said, everything else (emonCMS / Node Red) seems to be working. Just wondering if it is a quick fix, or if it is the prompt I need to upgrade to the latest emonSD release… :slight_smile:

Thanks

Tim

The update log file - if it helps…

Log File
Starting emonPi Update >
via service-runner-update.sh
Service Runner update script V1.1.1
EUID: 1000
Argument: emonpi
Sat  9 Feb 12:37:30 GMT 2019
#############################################################

emonSD version: emonSD-03May16

emonSD base image check passed...continue update

#############################################################
I2C LCD DETECTED Ox27
Filesystem is unlocked - Write access
type ' rpi-ro ' to lock
git pull /home/pi/emonpi
* master
  wifiap
On branch master
Your branch is up-to-date with 'origin/master'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	1

nothing added to commit but untracked files present (use "git add" to track)
Already up-to-date.
git pull /home/pi/RFM2Pi
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/emonhub
  K0den-wibeee_interface
* emon-pi
  hmm01i-syslogging
On branch emon-pi
Your branch is up-to-date with 'origin/emon-pi'.
nothing to commit, working directory clean
Already up-to-date.
git pull /home/pi/oem_openHab
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
git pull /home/pi/usefulscripts
* master
On branch master
Your branch is behind 'origin/master' by 21 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   backup/backup.php
	deleted:    convertdata/PHPTimeSeries.php
	deleted:    convertdata/common.php
	deleted:    convertdata/migrate.php
	deleted:    convertdata/phpfina_to_phptimeseries.php
	modified:   convertdata/phpfiwa_to_phpfina.php
	modified:   convertdata/phptimestore_to_phpfina.php
	deleted:    convertdata/phptimestore_to_phpfina_mv.php
	deleted:    convertdata/sql_to_phptimeseries_mv.php
	modified:   process/power_to_kwh.php
	modified:   readme.md

Untracked files:
  (use "git add <file>..." to include in what will be committed)

	convertdata/Lib/
	convertdata/archive/
	convertdata/check_emoncms_feeds_for_conversion.php
	convertdata/phptimeseries_to_phpfina.php
	update_emoncms.sh

no changes added to commit (use "git add" and/or "git commit -a")
Updating 9605416..5221f56
git pull /home/pi/huawei-hilink-status
* master
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean

Start emonPi Atmega328 firmware update:

=================================
EmonPi update started
=================================

EUID: 1000

Requirement already up-to-date: paho-mqtt in /usr/local/lib/python2.7/dist-packages
Cleaning up...
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://repo.mosquitto.org jessie InRelease
Ign http://dl.bintray.com stable InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Get:1 http://dl.bintray.com stable Release.gpg [821 B]
Get:2 http://dl.bintray.com stable Release [6,051 B]
Hit https://deb.nodesource.com jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://repo.mosquitto.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
Ign http://repo.mosquitto.org jessie/main Translation-en_GB
Hit http://archive.raspberrypi.org jessie/main armhf Packages
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://repo.mosquitto.org jessie/main Translation-en
Hit http://archive.raspberrypi.org jessie/ui armhf Packages
Get:3 http://dl.bintray.com stable/main armhf Packages [77.8 kB]
Hit https://deb.nodesource.com jessie/main Sources
Hit https://deb.nodesource.com jessie/main armhf Packages
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
Get:4 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
Ign http://archive.raspberrypi.org jessie/ui Translation-en
Ign http://dl.bintray.com stable/main Translation-en_GB
Ign http://dl.bintray.com stable/main Translation-en
Get:5 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:6 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
Get:7 https://deb.nodesource.com jessie/main Translation-en [162 B]
Get:8 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
Get:9 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Get:10 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Get:11 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Get:12 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en_GB
Get:13 https://deb.nodesource.com jessie/main Translation-en [162 B]
Ign https://deb.nodesource.com jessie/main Translation-en
Fetched 84.6 kB in 36s (2,325 B/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
python-rpi.gpio is already the newest version.
The following packages were automatically installed and are no longer required:
  libc-ares-dev libv8-3.14-dev libv8-3.14.5 rlwrap
Use 'apt-get autoremove' to remove them.
Suggested packages:
  python-gpiozero-docs
The following NEW packages will be installed:
  python-gpiozero python-spidev rng-tools
0 upgraded, 3 newly installed, 0 to remove and 221 not upgraded.
Need to get 0 B/146 kB of archives.
After this operation, 692 kB of additional disk space will be used.
Selecting previously unselected package python-spidev.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libsqlite3-0:armhf' is missing final newline
Stopping OpenEnergyMonitor emonHub: emonhub has been stopped ok.
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
Starting OpenEnergyMonitor emonHub: emonhub has been started ok.


Start emonhub update script:

=================================
EmonPi update started
=================================
Running emonhub automatic node addition script
EUID: 1000
EUID: 1000
[[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.2.0

Sat  9 Feb 12:40:14 GMT 2019

#############################################################

emonSD version: emonSD-03May16

EUID: 1000

current settings.php md5: 32274268137d219155febe392f456257
Default settings.php md5: bfcadb4356440ffc96c06a5d91aa2a02

git pull /var/www/emoncms
  dev-mosquitto-php
  master
* stable
  symlinked_modules
On branch stable
Your branch is up-to-date with 'origin/stable'.
Untracked files:
  (use "git add <file>..." to include in what will be committed)

	backup.settings.php

nothing added to commit but untracked files present (use "git add" to track)
Already up-to-date.

NEW default settings.php md5: bfcadb4356440ffc96c06a5d91aa2a02
settings.php HAS been user modified
settings.php not updated


git pull /var/www/emoncms/Modules/app
  9.0
* stable
On branch stable
Your branch is behind 'origin/stable' by 31 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   apps/mysolarpv.php

no changes added to commit (use "git add" and/or "git commit -a")
Updating 00b7fe2..3fbdf07
M	apps/mysolarpv.php
Your branch is behind 'origin/stable' by 31 commits, and can be fast-forwarded.
  (use "git pull" to update your local branch)

git pull /var/www/emoncms/Modules/config
  9.0
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
Already up-to-date.
Your branch is up-to-date with 'origin/stable'.

git pull /var/www/emoncms/Modules/wifi
  9.0
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
Already up-to-date.
Your branch is up-to-date with 'origin/stable'.
git pull /var/www/emoncms/Modules/dashboard
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
Already up-to-date.
Your branch is up-to-date with 'origin/stable'.

git pull /var/www/emoncms/Modules/graph
  master
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
Already up-to-date.
Your branch is up-to-date with 'origin/stable'.

git pull /home/pi/postprocess
Your branch is up-to-date with 'remotes/origin/emonpi'.
Already up-to-date.
git pull /home/pi/sync
Your branch is up-to-date with 'origin/master'.
Already up-to-date.
git pull /var/www/emoncms/Modules/device
Your branch is up-to-date with 'origin/master'.
Already up-to-date.
git pull /home/pi/backup
  master
* stable
On branch stable
Your branch is up-to-date with 'origin/stable'.
nothing to commit, working directory clean
Already up-to-date.
Your branch is up-to-date with 'origin/stable'.

update mqtt_input systemd unit file

Update Emoncms database
[]

Restarting Services...
Restarting OpenEnergyMonitor emonHub: emonhub has been restarted ok.
Log is turned off
Restarting feedwriter

Restarting openhab (via systemctl): openhab.service.


set log rotate config owner to root
Restarting Services...


Starting emonPi LCD service..

Filesystem is locked - Read Only access
type ' rpi-rw ' to unlock
Sat  9 Feb 12:41:01 GMT 2019


...................
emonPi update done
restarting service-runner

[Edit] Put in collapsed text for readability {Mod brian}

I am encountering a similar frozen “Raspberry Pi Booting…” message. At other times, it gets stuck at the “Ethernet YES [IP address]” message. This started a while back on the 2016 SD version.

  • Upgrading to the 2018 SD version did not resolve the issue.
  • I checked the wiring between the LCD and EmonPI board: this is OK.
  • There is an anomaly in the Server Information section of the admin section, where it states “emonPiLCD - Active - Exited”, which I assume the last should state “Running” if all would be OK.

Now I am not sure if this is a hardware issue (LCD driver, …) or a software issue - but would be glad for any help to sort this out.

I think this is the default page after a boot. [edit] do you mean the button does not work?

I think this is a different issue and I have seen it happen after a first boot. Part of the process results in a reboot but for some reason it shuts down completely but does not power off so the LCD stays lit. Annoying as you are not sure if it is safe to remove the power and reboot it. I have no advice other than if it is like that for an hour, it has probably done what it needs so removing the power is a safe thing to do!

No it shouldn’t do that.

Do you have SSH access? Could you do a

 systemctl status emonPiLCD.service

And post the result (as text) please.

Hi Brian,

This is what I get when logging in through SSH:

[email protected]:~ $ systemctl status emonPiLCD.service
● emonPiLCD.service - LSB: emonPi LCD controller
   Loaded: loaded (/etc/init.d/emonPiLCD; generated; vendor preset: enabled)
   Active: active (running) since Mon 2019-04-22 12:58:33 UTC; 1h 39min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 813 ExecStop=/etc/init.d/emonPiLCD stop (code=exited, status=0/SUCCES
  Process: 823 ExecStart=/etc/init.d/emonPiLCD start (code=exited, status=0/SUCC
   CGroup: /system.slice/emonPiLCD.service
           └─832 python /usr/share/emonPiLCD/emonPiLCD.py

Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Is it running fine now?

Yes, it seems ok now!

1 Like

Hi Brian,

Don’t know what exactly did the trick yesterday, but a few reboots and running the “systemctl status emonPiLCD.service” apparently managed to unblock the LCD. The Server Information section (in admin) no longer lists “Exited” but “emonPiLCD - Active - Running”. All fine now.

Thanks!

1 Like

5 posts were split to a new topic: emonPiLCD not working after update Oct18 base image