That would be great, thanks. Please post a link to your mirror and I will add it to the download page.
I have just installed this version on a new SD Card, expanded the card to the full 16Gb and then restored my backup from the old card.
When I click emonpi update, the EmonCMS > Writer status then changes to: Daemon is not running, start it at ~/scripts/feedwriter.
Update log attached.
Thanks
Ian
emonpiupdate.txt (7.8 KB)
Did you enable SSH? If so try
sudo systemctl status feedwriter.service
(and please post output) then
sudo systemctl start feedwriter.service
followed by the status.
I wonder if the backup is taking a setting, the update changes it, but the restore overwrites it. @glyn.hudson @TrystanLea
I note this line in the log
restarting service-runner
service-runner: no process found
use the commands above on service-runner
to check itās status.
On the admin page next to the Server Information there is a copy to clipboard button. Please press that then paste the result into a message - no other formatting required.
After Clicking Update:
ā feedwriter.service - LSB: feedwriter script daemon
Loaded: loaded (/etc/init.d/feedwriter; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-16 20:01:21 UTC; 18min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/feedwriter.service
Jan 16 20:01:14 emonpi systemd[1]: Starting LSB: feedwriter script daemonā¦
Jan 16 20:01:14 emonpi feedwriter[1200]: Log is turned off
Jan 16 20:01:14 emonpi feedwriter[1200]: Starting RPI
Jan 16 20:01:21 emonpi systemd[1]: Started LSB: feedwriter script daemon.
ā service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-16 20:19:35 UTC; 1min 54s ago
Main PID: 2828 (python)
CGroup: /system.slice/service-runner.service
āā2828 /usr/bin/python /var/www/emoncms/scripts/services/service-runner/service-runner.py
Jan 16 20:19:35 emonpi systemd[1]: Started Emoncms service-runner Input Script.
Jan 16 20:19:35 emonpi service-runner[2828]: Starting service-runner
Jan 16 20:19:35 emonpi service-runner[2828]: Connected to redis-server
then After sudo systemctl restart feedwriter.service:
ā service-runner.service - Emoncms service-runner Input Script
Loaded: loaded (/var/www/emoncms/scripts/services/service-runner/service-runner.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-01-16 20:19:35 UTC; 4min 36s ago
Main PID: 2828 (python)
CGroup: /system.slice/service-runner.service
āā2828 /usr/bin/python /var/www/emoncms/scripts/services/service-runner/service-runner.py
Jan 16 20:19:35 emonpi systemd[1]: Started Emoncms service-runner Input Script.
Jan 16 20:19:35 emonpi service-runner[2828]: Starting service-runner
Jan 16 20:19:35 emonpi service-runner[2828]: Connected to redis-server
Server Information
Emoncms | Version | low-write 9.9.5 |
Modules | Administration : App v1.2.0 : Backup v1.1.6 : EmonHub Config v1.0.0 : Dashboard v1.3.1 : Device v1.2.0 : EventProcesses : Feed : Graph v1.2.1 : Input : Postprocess v1.0.0 : CoreProcess : Schedule : Network Setup v1.0.0 : sync : Time : User : Visualisation : WiFi v1.3.0 | |
Git URL | GitHub - emoncms/emoncms: Web-app for processing, logging and visualising energy, temperature and other environmental data | |
Git Branch | * stable | |
Buffer | loadingā¦ | |
Writer | Daemon is not running, start it at ~/scripts/feedwriter | |
Server | OS | Linux 4.14.79-v7+ |
Host | emonpi emonpi (10.101.0.254) | |
Date | 2019-01-16 20:20:17 UTC | |
Uptime | 20:20:17 up 19 min, 1 user, load average: 0.16, 0.15, 0.15 | |
HTTP | Server | Apache/2.4.25 (Raspbian) HTTP/1.1 CGI/1.1 80 |
MySQL | Version | 5.5.5-10.1.23-MariaDB-9+deb9u1 |
Host | 127.0.0.1 (127.0.0.1) | |
Date | 2019-01-16 20:20:17 (UTC 00:00āā) | |
Stats | Uptime: 1149 Threads: 3 Questions: 1110 Slow queries: 0 Opens: 30 Flush tables: 1 Open tables: 24 Queries per second avg: 0.966 | |
Redis | Version | 3.2.6 |
Host | localhost:6379 (127.0.0.1) | |
Size | 143 keys (762.49K) | |
Uptime | 0 days | |
MQTT Server | Version | Mosquitto 1.4.10 |
Host | localhost:1883 (127.0.0.1) | |
Pi | Model | Raspberry Pi 3 Model B Rev 1.2 - 1 GB (Stadium) |
SoC | Broadcom BCM2835 | |
Serial num. | DA17602B | |
Temperature | CPU: 49.93Ā°C - GPU: 49.9āC | |
Release | emonSD-30Oct18 | |
File-system | Current: read-write - Set root file-system temporarily to read-write, (default read-only) | |
Memory | RAM | Used: 20.78% Total: 976.74 MB Used: 202.92 MB Free: 773.82 MB |
Swap | Used: 0.00% Total: 100 MB Used: 0 B Free: 100 MB | |
Disk | Mount | Stats |
/ | Used: 47.16% Total: 3.81 GB Used: 1.8 GB Free: 1.84 GB | |
/boot | Used: 51.78% Total: 42.52 MB Used: 22.02 MB Free: 20.5 MB | |
/home/pi/data | Used: 1.19% Total: 10.66 GB Used: 129.98 MB Free: 9.99 GB | |
PHP | Version | 7.0.33-0+deb9u1 (Zend Version 3.0.0) |
Modules | apache2handler : calendar v7.0.33-0+deb9u1 : Core v7.0.33-0+deb9u1 : ctype v7.0.33-0+deb9u1 : curl v7.0.33-0+deb9u1 : date v7.0.33-0+deb9u1 : dom v20031129 : exif v7.0.33-0+deb9u1 : fileinfo v1.0.5 : filter v7.0.33-0+deb9u1 : ftp v7.0.33-0+deb9u1 : gd v7.0.33-0+deb9u1 : gettext v7.0.33-0+deb9u1 : hash v1.0 : iconv v7.0.33-0+deb9u1 : igbinary v2.0.1 : json v1.4.0 : libxml v7.0.33-0+deb9u1 : mbstring v7.0.33-0+deb9u1 : mcrypt v7.0.33-0+deb9u1 : mosquitto v0.4.0 : mysqli v7.0.33-0+deb9u1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.33-0+deb9u1 : pcre v7.0.33-0+deb9u1 : PDO v7.0.33-0+deb9u1 : pdo_mysql v7.0.33-0+deb9u1 : Phar v2.0.2 : posix v7.0.33-0+deb9u1 : readline v7.0.33-0+deb9u1 : redis v4.1.1 : Reflection v7.0.33-0+deb9u1 : session v7.0.33-0+deb9u1 : shmop v7.0.33-0+deb9u1 : SimpleXML v7.0.33-0+deb9u1 : sockets v7.0.33-0+deb9u1 : SPL v7.0.33-0+deb9u1 : standard v7.0.33-0+deb9u1 : sysvmsg v7.0.33-0+deb9u1 : sysvsem v7.0.33-0+deb9u1 : sysvshm v7.0.33-0+deb9u1 : tokenizer v7.0.33-0+deb9u1 : wddx v7.0.33-0+deb9u1 : xml v7.0.33-0+deb9u1 : xmlreader v7.0.33-0+deb9u1 : xmlwriter v7.0.33-0+deb9u1 : xsl v7.0.33-0+deb9u1 : Zend OPcache v7.0.33-0+deb9u1 : zlib v7.0.33-0+deb9u1 |
Client Information
HTTP | Browser | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_2) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.2 Safari/605.1.15 |
Screen | Resolution | 1440 x 900 |
Window | Size | 1440 x 730 |
Ah Ok that branch is on the older feedwriter cron job (strangely came across this this week).
I think first check the cron job
crontab -l
Seems like crontab is default
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h dom mon dow command
One last try then Iām out of ideas (not familiar with the older feedwriter service)ā¦
The command in the script to restart it is
sudo /etc/init.d/feedwriter restart
That works, but reboot of the feedwriter.service worked too!
sudo /etc/init.d/feedwriter restart
Log is turned off
Restarting feedwriter (feedwriter.php was not running...)
Still doesnāt explain/help as to why the feed writer is not restarted after emonpi update button is pressed.
Iāve raised it as an Issue.
Thanks
But also note what the actual emoncms buffer status is, it changes on the live server info, but the copy and paste version always says āloadingā¦ā so itās effectively meaningless.
When the line below is showing, the buffer will continue increasing with a number of points to write.
Daemon is not running, start it at ~/scripts/feedwriter
Yes but I do not think that is fixable because of the way the Ajax call works. Just one to be lived with I suspect unless you could make a special call to the function and append the data at the end of the text buffer.
I wasnāt aware of that.
No one has commented on the issue I raised.
If it canāt be reported (copied) accurately, it shouldnāt included. So the best fix would be to remove it I guess, even if only temporarily. Simples!
I donāt think feedwriter was ever cron basedā¦ it changed from SystemV Init based startup to systemd based startupā¦ Youāre thinking of service-runner (which was initially cron and changed to systemd)
Not as simple as that I suspect. The output HTML is copied by using a class ID
within that copied area is the ajax call to update the number in the buffer
I suspect removing this section when copied might be well nigh impossible (but Iām no expert).
Ah yes - getting myself confused.
@borpin I had a similar problem when updating emonBase (using emonSD-30Oct18). After update noticed feeds was not updating, so tried sudo systemctl status service-runner.service and also sudo /etc/init.d/feedwriter restart. All seemed OKā¦
but still no feed updates.
But a reboot of the rPi fixed it.