Local emoncms processes and feeds lost after change to a process - Help please

Hi,
I was making changes to a virtual feed, which obviously wasn’t a good change as it caused my browser window to stop updating.
Via another tab I had the solar with divert app running, this had also stopped updating.
When trying to navigate to any part of the site it did nothing for over 5mins.
I resorted to powering off and on my emonHub. I have since shutdown and restarted emonhub again and when looking at the Inputs page it shows process list as “Wait…”
image

When accessing the feeds page it never loads

Whilst logged on and running “top” any change of web page sends an “apache2” to start using 90%+ of a core:
[email protected](ro):data$ ps -flp 10618
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
5 R www-data 10618 1524 13 80 0 - 88881 - 14:32 ? 00:00:34 /usr/sbin/apache2 -k start

I’m guessing that the config surrounding the processes and feeds is in someway knackered, which is creating these problems.

How can I determine what it believes are active processes and feeds? Is there a config file that it is stored in?

Any help and guidance is greatly appreciated.

Thanks in advance,
Clive.

Hello Clive, o dear! This sounds very similar to:
https://community.openenergymonitor.org/t/no-inputs-and-var-log-full-within-1h-of-boot/5198/11

Do you remember what change you where making to virtual feeds?

Can you copy here the output of:

emoncms/input/list.json

What happens if you restart apache2? and then remove the virtual feeds just created?
Did you also recently update emoncms?

Hi Trystan,

I was trying to get a measure for a delta of exported vs imported each day, to give a running day total kWhd. I had a “daily” virtual feed with a source of Input kWhd and subtracted the Export kWhd (I’ve converted this to a +ve feed). I’d set this up yesterday and it worked well for the day, then this morning I noticed that it hadn’t reset at the beginning of the day, hence added something like a “- feed” (I can’t remember the specific) as the text suggested that it works around the manipulation of daily stats.

When I look at my local emoncms (http://192.168.1.22/input/list.json) it gives a "Not Found

The requested URL /input/list.json was not found on this server."

I’ll take a read through that other post now.

I’m seeing similar messages to the other topic with disguarded RX frames from RFM2Pi.

Let me find out how to restart Apache and will let you know. The emonhub has been rebooted twice today, hence guess it will provide a similar response.

Sorry, I had a dimwhitted moment earlier, with the correct URL (http://192.168.1.22/emoncms/input/list.json) the output is:

[{“id”:“1”,“nodeid”:“emontx3”,“name”:“power1”,“description”:“Grid Connection”,“processList”:“24:0,1:7,4:8,5:24,37:0,25:0,2:-1,1:21,4:22,5:25”,“time”:“1506442415”,“value”:"-204"},{“id”:“3”,“nodeid”:“emontx3”,“name”:“power3”,“description”:“iBoost Connection”,“processList”:“1:17,4:18,5:26”,“time”:“1506442415”,“value”:“5”},{“id”:“4”,“nodeid”:“emontx3”,“name”:“power4”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“0”},{“id”:“12”,“nodeid”:“emontx3”,“name”:“pulse”,“description”:“Generation Pulse”,“processList”:“1:13,2:1,34:14,3:893835,2:0.001,1:30,23:31”,“time”:“1506442415”,“value”:“399718”},{“id”:“13”,“nodeid”:“emontx3”,“name”:“rssi”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:"-32"},{“id”:“14”,“nodeid”:“emontx3”,“name”:“power2”,“description”:“Solar Connection”,“processList”:“1:9,4:10,5:27,11:1,1:11,4:12,5:28,22:3,1:19,4:20,5:29”,“time”:“1506442415”,“value”:“406”},{“id”:“15”,“nodeid”:“emontx3”,“name”:“vrms”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“251”},{“id”:“16”,“nodeid”:“emontx3”,“name”:“temp1”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”},{“id”:“17”,“nodeid”:“emontx3”,“name”:“temp2”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”},{“id”:“18”,“nodeid”:“emontx3”,“name”:“temp3”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”},{“id”:“19”,“nodeid”:“emontx3”,“name”:“temp4”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”},{“id”:“20”,“nodeid”:“emontx3”,“name”:“temp5”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”},{“id”:“21”,“nodeid”:“emontx3”,“name”:“temp6”,“description”:"",“processList”:"",“time”:“1506442415”,“value”:“300”}]

In response to your other queries, I last updated emonHub 14th Aug 2017.

I restarted Apache (sudo /etc/init.d/apache2 restart), then opened this URL /emoncms/input/list.json, the response was immediate, then I opened /emoncms/input/view and then click on the spanner of an input and see:

Then in relation to the other thread, I looked at the MySQL DB and am also missing the inputs table:

I prefer text inputs, but cannot work out how to show in a mono spaced font, hence the interesting look!

[email protected](ro):~$ mysql -u emoncms -p emoncms
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1779
Server version: 5.5.52-0+deb8u1 (Raspbian)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SELECT * FROM inputs;
**ERROR 1146 (42S02): Table 'emoncms.inputs' doesn't exist**
mysql> SELECT * FROM feeds;
+----+----------------------+--------+--------------+------+-------+----------+--------+---------+--------+----------------------+
| id | name                 | userid | tag          | time | value | datatype | public | size    | engine | processList          |
+----+----------------------+--------+--------------+------+-------+----------+--------+---------+--------+----------------------+
| 14 | Total Power Pulse Wh |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5590932 |      5 | NULL                 |
| 22 | export_kwh           |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 1509952 |      5 | NULL                 |
| 13 | Generation Pulse     |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5590936 |      5 | NULL                 |
|  7 | import               |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594740 |      5 | NULL                 |
|  8 | import_kwh           |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594740 |      5 | NULL                 |
|  9 | solar                |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594700 |      5 | NULL                 |
| 10 | solar_kwh            |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594700 |      5 | NULL                 |
| 11 | use                  |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594700 |      5 | NULL                 |
| 12 | use_kwh              |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5594700 |      5 | NULL                 |
| 21 | export               |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 1509952 |      5 | NULL                 |
| 17 | divert               |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5353312 |      5 | NULL                 |
| 18 | divert_kwh           |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 5353312 |      5 | NULL                 |
| 19 | house                |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 1510236 |      5 | NULL                 |
| 20 | house_kwh            |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 1510236 |      5 | NULL                 |
| 24 | import_kwhd          |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 25 | export_kwhd          |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 26 | divert_kwhd          |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 27 | solar_kwhd           |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 28 | use_kwhd             |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 29 | house_kwhd           |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 30 | TotalSolarPulse kWh  |      1 | Node emontx3 | NULL |  NULL |        1 |      0 | 1354704 |      5 | NULL                 |
| 31 | TotalSolarPulse kWhd |      1 | Node emontx3 | NULL |  NULL |        2 |      0 |     360 |      2 | NULL                 |
| 47 | Inp Exp Daily Delta  |      1 | Virtual      | NULL |  NULL |        2 |      0 |       0 |      7 | 53:24,56:25,30:47    |
| 46 | Meter Reading        |      1 | Virtual      | NULL |  NULL |        1 |      0 |       0 |      7 | 53:8,56:22,3:18813.5 |
+----+----------------------+--------+--------------+------+-------+----------+--------+---------+--------+----------------------+
24 rows in set (0.00 sec)

mysql> **show tables**
    -> ;
+-------------------+
| Tables_in_emoncms |
+-------------------+
| app_config        |
| dashboard         |
| feeds             |
| graph             |
| input             |
| multigraph        |
| rememberme        |
| schedule          |
| setup             |
| users             |
+-------------------+
10 rows in set (0.00 sec)

mysql>

That should be “input” not “inputs

Can you also check the feed folder permissions with

ls -la /var/lib/emoncms/php*

Hi Paul,

Thanks for the correction, it shows:

mysql> SELECT * FROM input;
+----+--------+--------+-------------------+---------+-------------------------------------------------------+------+-------+
| id | userid | name   | description       | nodeid  | processList                                           | time | value |
+----+--------+--------+-------------------+---------+-------------------------------------------------------+------+-------+
|  1 |      1 | power1 | Grid Connection   | emontx3 | 24:0,1:7,4:8,5:24,37:0,25:0,2:-1,1:21,4:22,5:25       | NULL |  NULL |
|  3 |      1 | power3 | iBoost Connection | emontx3 | 1:17,4:18,5:26                                        | NULL |  NULL |
|  4 |      1 | power4 |                   | emontx3 |                                                       | NULL |  NULL |
| 15 |      1 | vrms   |                   | emontx3 |                                                       | NULL |  NULL |
| 16 |      1 | temp1  |                   | emontx3 |                                                       | NULL |  NULL |
| 19 |      1 | temp4  |                   | emontx3 |                                                       | NULL |  NULL |
| 18 |      1 | temp3  |                   | emontx3 |                                                       | NULL |  NULL |
| 17 |      1 | temp2  |                   | emontx3 |                                                       | NULL |  NULL |
| 21 |      1 | temp6  |                   | emontx3 |                                                       | NULL |  NULL |
| 20 |      1 | temp5  |                   | emontx3 |                                                       | NULL |  NULL |
| 12 |      1 | pulse  | Generation Pulse  | emontx3 | 1:13,2:1,34:14,3:893835,2:0.001,1:30,23:31            | NULL |  NULL |
| 13 |      1 | rssi   |                   | emontx3 |                                                       | NULL |  NULL |
| 14 |      1 | power2 | Solar Connection  | emontx3 | 1:9,4:10,5:27,11:1,1:11,4:12,5:28,22:3,1:19,4:20,5:29 | NULL |  NULL |
+----+--------+--------+-------------------+---------+-------------------------------------------------------+------+-------+
13 rows in set (0.01 sec)

mysql>

I don’t have a /var/lib/emoncms directory, I do have an emonhub, which I guess may have impact!? I’ve searched the whole thing for emon*/php and only found one thing:

[email protected](ro):var$ sudo find / -ls | grep "emon[a-z]*/php"
141928    4 -rwxr-xr-x   1 pi       pi             95 Oct 30  2016 /var/www/emoncms/php-info.php

Sorry force of habit, that should have been

ls -la /var/lib/php*

Hi Paul,

What do I need to do to get the follow to format prettily? I presume that you’re tidying it up for me?

[email protected](ro):var$ ls -la /var/lib/php*
total 16
drwxr-xr-x  4 root root 4096 Jan 26  2016 .
drwxr-xr-x 41 root root 4096 Oct 30  2016 ..
drwxr-xr-x  5 root root 4096 Jan 26  2016 modules
drwx-wx-wt  2 root root 4096 Oct 30  2016 sessions
[email protected](ro):var$

use 3 back ticks like so

```

on the lines before and after the text.

I expected to see an out put like so

[email protected]:~ $ ls -la /var/lib/php*
/var/lib/phpfina:
total 8
drwxr-xr-x 2 www-data root 4096 Sep 25 11:13 .
drwxr-xr-x 5 www-data root 4096 Sep 25 11:13 ..

/var/lib/phpfiwa:
total 8
drwxr-xr-x 2 www-data root 4096 Sep 25 11:13 .
drwxr-xr-x 5 www-data root 4096 Sep 25 11:13 ..

/var/lib/phptimeseries:
total 8
drwxr-xr-x 2 www-data root 4096 Sep 25 11:13 .
drwxr-xr-x 5 www-data root 4096 Sep 25 11:13 ..

where are your data folders supposed to be? what are the paths set in /var/www/emoncms/settings.php eg

https://github.com/emoncms/emoncms/blob/master/default.settings.php#L57-L64

[EDIT}

Ahhh! ok problem solved, they are in a different location on an emonPi

So the command should actually be

ls -la /home/pi/data/php*

we’ll get there eventually perhaps…

[email protected](ro):~$ ls -la /home/pi/data/php*
/home/pi/data/phpfina:
total 62323
drwxr-xr-x 2 www-data root        1024 Sep 25 08:00 .
drwxrwxrwx 9 pi       pi          1024 Sep 26 12:32 ..
-rw-r--r-- 1 www-data www-data 5639624 Sep 26 20:19 10.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:55 10.meta
-rw-r--r-- 1 www-data www-data 5639624 Sep 26 20:19 11.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:55 11.meta
-rw-r--r-- 1 www-data www-data 5639624 Sep 26 20:19 12.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:55 12.meta
-rw-r--r-- 1 www-data www-data 5635860 Sep 26 20:19 13.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 18:32 13.meta
-rw-r--r-- 1 www-data www-data 5635856 Sep 26 20:19 14.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 18:32 14.meta
-rw-r--r-- 1 www-data www-data 5398236 Sep 26 20:19 17.dat
-rw-r--r-- 1 www-data www-data      16 Apr 23 15:33 17.meta
-rw-r--r-- 1 www-data www-data 5398236 Sep 26 20:19 18.dat
-rw-r--r-- 1 www-data www-data      16 Apr 23 15:33 18.meta
-rw-r--r-- 1 www-data www-data 1555160 Sep 26 20:19 19.dat
-rw-r--r-- 1 www-data www-data      16 Aug 12 20:21 19.meta
-rw-r--r-- 1 www-data www-data 1555160 Sep 26 20:19 20.dat
-rw-r--r-- 1 www-data www-data      16 Aug 12 20:21 20.meta
-rw-r--r-- 1 www-data www-data 1554876 Sep 26 20:19 21.dat
-rw-r--r-- 1 www-data www-data      16 Aug 12 20:33 21.meta
-rw-r--r-- 1 www-data www-data 1554876 Sep 26 20:19 22.dat
-rw-r--r-- 1 www-data www-data      16 Aug 12 20:33 22.meta
-rw-r--r-- 1 www-data www-data 1399628 Sep 26 20:19 30.dat
-rw-r--r-- 1 www-data www-data      16 Aug 17 08:21 30.meta
-rw-r--r-- 1 www-data www-data 5639664 Sep 26 20:19 7.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:54 7.meta
-rw-r--r-- 1 www-data www-data 5639664 Sep 26 20:19 8.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:54 8.meta
-rw-r--r-- 1 www-data www-data 5639624 Sep 26 20:19 9.dat
-rw-r--r-- 1 www-data www-data      16 Apr 16 15:55 9.meta

/home/pi/data/phptimeseries:
total 9
drwxr-xr-x 2 www-data root     1024 Aug 17 08:44 .
drwxrwxrwx 9 pi       pi       1024 Sep 26 12:32 ..
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_24.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_25.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_26.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_27.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_28.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_29.MYD
-rw-r--r-- 1 www-data www-data  369 Sep 26 07:25 feed_31.MYD
[email protected](ro):~$

Well that looks in order, the feeds are all there in both the mysql feed table and in the data folders, and the permissions/ownership is right.

One more thing to try since the feeds apparently cannot be found hence the “does not exist or was deleted” messgae, when you recently updated, was that to remedy this or do you suspect it may be the trigger?

Did you need to replace the settings.php? If yes, did you copy default.settings.php or default.emonpi.settings.php?

Either way can you confirm your emoncms is looking for the feed data in the right place ie are the paths in your emoncms/settings.php still like so?

Looks like mysql input, feeds table and feed data are all ok. Is your emoncms feed list showing blank?

Could you try

emoncms/feed/list.json

My hunch is that there is something amiss in the redis cache of the feed list data at this point…
A redis flush might sort it, or it may thow an error if redis is not updating correctly.

Worth checking the settings.php though as @pb66 suggested

I’ve never (knowingly) changed the settings.php (I bought the emontx and emonhub and used the GUI to config them)
I ran a diff between a “default.emonpi.settings.php” and “settings.php” in /var/www/emoncms and it showed no changes

The settings are as displayed in Paul’s quote.

However, I only have a phpfina and phptimeseries in /home/pi/data. Should I create a phpfiwa dir with the same perms as the other two?

[email protected](ro):data$ ls -ld /home/pi/data/phpfiwa/ /home/pi/data/phpfina/ /home/pi/data/phptimeseries/
ls: cannot access /home/pi/data/phpfiwa/: No such file or directory
drwxr-xr-x 2 www-data root 1024 Sep 25 08:00 /home/pi/data/phpfina/
drwxr-xr-x 2 www-data root 1024 Aug 17 08:44 /home/pi/data/phptimeseries/
[email protected](ro):data$

I’ve left the emoncms/feed/list.json running for 5+ minutes and Firefox still only shows me the swirling loading icon and nothing else.

I found another one of your comments suggesting “redis-cli flushall”, is that the correct command here as well?

phpfiwa is being phased out AFAIK so the lack of a folder would only be a concern if you had old feeds to import or you wanted to go against the flow and enable the disabled phpfiwa feed engine in emoncms.

The spinner on the feeds page is an issue, is there any info if you hit F12 in your browser? (actually I’m not sure if dev tools is F12 in Firefox)

@TrystanLea has just helped find a issue with a input table on the No Inputs and /var/log full within 1h of boot thread, perhaps you could do the same checks focusing on the feed table.

sudo redis-cli flushall

is worth trying, the same can also be done from within emoncms on the admin page, there is a flush button on the right of the redis section.

[EDIT] Actually, since you can query your input and feed table from the command line it looks like your mysql tables are ok, hopefully @TrystanLea will have a further ideas if flushing redis doesn’t work.

Sorry, busy day with work.

Thanks for the pointers @pb66 and @TrystanLea

To answer a previous question, I ran the update in August to see what extra little goodies you had added.

I ran the redis-cli flushall, and no noticeable change.

I took a look at /var/log/apache2/error.log and found a load of segmentation fault messages. I tried opening emoncms/feed/list.json and, you see an apache2 chew up 90+% of a core for 40 seconds before the seg fault, after 10 attempts the browser shows a “The connection was reset” message:

[Wed Sep 27 21:06:06.907388 2017] [core:notice] [pid 27805] AH00052: child pid 32687 exit signal Segmentation fault (11)
[Wed Sep 27 21:06:46.952675 2017] [core:notice] [pid 27805] AH00052: child pid 564 exit signal Segmentation fault (11)
[Wed Sep 27 21:07:25.996931 2017] [core:notice] [pid 27805] AH00052: child pid 857 exit signal Segmentation fault (11)
[Wed Sep 27 21:08:05.041286 2017] [core:notice] [pid 27805] AH00052: child pid 1225 exit signal Segmentation fault (11)
[Wed Sep 27 21:08:45.084883 2017] [core:notice] [pid 27805] AH00052: child pid 1494 exit signal Segmentation fault (11)
[Wed Sep 27 21:09:25.130797 2017] [core:notice] [pid 27805] AH00052: child pid 4565 exit signal Segmentation fault (11)
[Wed Sep 27 21:10:04.174141 2017] [core:notice] [pid 27805] AH00052: child pid 4841 exit signal Segmentation fault (11)
[Wed Sep 27 21:10:44.224615 2017] [core:notice] [pid 27805] AH00052: child pid 5162 exit signal Segmentation fault (11)
[Wed Sep 27 21:11:23.265853 2017] [core:notice] [pid 27805] AH00052: child pid 5447 exit signal Segmentation fault (11)
[Wed Sep 27 21:12:02.306225 2017] [core:notice] [pid 27805] AH00052: child pid 5740 exit signal Segmentation fault (11)

I’m very much beyond my domain of knowledge, but tried changing the Apache log level up until I got to trace8 and nothing looks to be too out of whack (to an untrained eye):

[Wed Sep 27 21:31:21.057983 2017] [core:info] [pid 15750] AH00096: removed PID file /var/run/apache2/apache2.pid (pid=15750)
[Wed Sep 27 21:31:21.058074 2017] [mpm_prefork:notice] [pid 15750] AH00169: caught SIGTERM, shutting down
[Wed Sep 27 21:31:22.828072 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16697 (gen 0/slot 0) started
[Wed Sep 27 21:31:22.831762 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16698 (gen 0/slot 1) started
[Wed Sep 27 21:31:22.835568 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16699 (gen 0/slot 2) started
[Wed Sep 27 21:31:22.839605 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16700 (gen 0/slot 3) started
[Wed Sep 27 21:31:22.843728 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16701 (gen 0/slot 4) started
[Wed Sep 27 21:31:22.843846 2017] [mpm_prefork:notice] [pid 16693] AH00163: Apache/2.4.10 (Raspbian) configured -- resuming norma            l operations
[Wed Sep 27 21:31:22.843884 2017] [mpm_prefork:info] [pid 16693] AH00164: Server built: Sep 17 2016 16:40:43
[Wed Sep 27 21:31:22.843923 2017] [core:notice] [pid 16693] AH00094: Command line: '/usr/sbin/apache2'
[Wed Sep 27 21:31:22.843970 2017] [mpm_prefork:debug] [pid 16693] prefork.c(995): AH00165: Accept mutex: fcntl (default: sysvsem)
[Wed Sep 27 21:31:32.574542 2017] [core:trace5] [pid 16697] protocol.c(618): [client 192.168.1.30:55542] Request received from client: GET /emoncms/feed/list.json HTTP/1.1
[Wed Sep 27 21:31:32.575003 2017] [http:trace4] [pid 16697] http_request.c(301): [client 192.168.1.30:55542] Headers received from client:
[Wed Sep 27 21:31:32.575040 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Host: 192.168.1.22
[Wed Sep 27 21:31:32.575065 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:55.0) Gecko/20100101 Firefox/55.0
[Wed Sep 27 21:31:32.575090 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[Wed Sep 27 21:31:32.575114 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Accept-Language: en-GB,en;q=0.5
[Wed Sep 27 21:31:32.575136 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Accept-Encoding: gzip, deflate
[Wed Sep 27 21:31:32.575202 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Cookie: PHPSESSID=550go7bgnjdsiu551a37k4oet1; EMONCMS_REMEMBERME=1%7C72609e42afc0ea3a2e4c23ad22851c3b
[Wed Sep 27 21:31:32.575228 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   DNT: 1
[Wed Sep 27 21:31:32.575250 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Connection: keep-alive
[Wed Sep 27 21:31:32.575271 2017] [http:trace4] [pid 16697] http_request.c(305): [client 192.168.1.30:55542]   Upgrade-Insecure-Requests: 1
[Wed Sep 27 21:31:32.580619 2017] [setenvif:trace2] [pid 16697] mod_setenvif.c(622): [client 192.168.1.30:55542] Setting HTTP_AUTHORIZATION
[Wed Sep 27 21:31:32.580703 2017] [authz_core:debug] [pid 16697] mod_authz_core.c(809): [client 192.168.1.30:55542] AH01626: authorization result of Require all granted: granted
[Wed Sep 27 21:31:32.580732 2017] [authz_core:debug] [pid 16697] mod_authz_core.c(809): [client 192.168.1.30:55542] AH01626: authorization result of <RequireAny>: granted
[Wed Sep 27 21:31:32.580774 2017] [core:trace3] [pid 16697] request.c(293): [client 192.168.1.30:55542] request authorized without authentication by access_checker_ex hook: /emoncms/feed/list.json
[Wed Sep 27 21:31:32.580852 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] add path info postfix: /var/www/html/emoncms/feed -> /var/www/html/emoncms/feed/list.json
[Wed Sep 27 21:31:32.580899 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] strip per-dir prefix: /var/www/html/emoncms/feed/list.json -> feed/list.json
[Wed Sep 27 21:31:32.580934 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] applying pattern '^(.*)$' to uri 'feed/list.json'
[Wed Sep 27 21:31:32.581005 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/var/www/html/emoncms/feed' pattern='!-f' => matched
[Wed Sep 27 21:31:32.581062 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/var/www/html/emoncms/feed' pattern='!-d' => matched
[Wed Sep 27 21:31:32.581117 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/var/www/html/emoncms/feed' pattern='!-s' => matched
[Wed Sep 27 21:31:32.581167 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!=/favicon.ico' => matched
[Wed Sep 27 21:31:32.581208 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!=/robots.txt' => matched
[Wed Sep 27 21:31:32.581259 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!^/?docs.*$' => matched
[Wed Sep 27 21:31:32.581352 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!^/?Lib.*$' => matched
[Wed Sep 27 21:31:32.581419 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!^/?Modules.*$' => matched
[Wed Sep 27 21:31:32.581479 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!^/?scripts.*$' => matched
[Wed Sep 27 21:31:32.581523 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='/emoncms/feed/list.json' pattern='!^/?Theme.*$' => matched
[Wed Sep 27 21:31:32.581606 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] RewriteCond: input='' pattern='![45]0[0-9]' => matched
[Wed Sep 27 21:31:32.581660 2017] [rewrite:trace2] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] rewrite 'feed/list.json' -> 'index.php?q=feed/list.json'
[Wed Sep 27 21:31:32.581825 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] split uri=index.php?q=feed/list.json -> uri=index.php, args=q=feed/list.json
[Wed Sep 27 21:31:32.581863 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] add per-dir prefix: index.php -> /var/www/html/emoncms/index.php
[Wed Sep 27 21:31:32.581913 2017] [rewrite:trace2] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] strip document_root prefix: /var/www/html/emoncms/index.php -> /emoncms/index.php
[Wed Sep 27 21:31:32.581950 2017] [rewrite:trace1] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76a42058/initial] [perdir /var/www/html/emoncms/] internal redirect with /emoncms/index.php [INTERNAL REDIRECT]
[Wed Sep 27 21:31:32.582769 2017] [setenvif:trace2] [pid 16697] mod_setenvif.c(622): [client 192.168.1.30:55542] Setting HTTP_AUTHORIZATION
[Wed Sep 27 21:31:32.582866 2017] [authz_core:debug] [pid 16697] mod_authz_core.c(809): [client 192.168.1.30:55542] AH01626: authorization result of Require all granted: granted
[Wed Sep 27 21:31:32.582895 2017] [authz_core:debug] [pid 16697] mod_authz_core.c(809): [client 192.168.1.30:55542] AH01626: authorization result of <RequireAny>: granted
[Wed Sep 27 21:31:32.582918 2017] [core:trace3] [pid 16697] request.c(293): [client 192.168.1.30:55542] request authorized without authentication by access_checker_ex hook: /emoncms/index.php
[Wed Sep 27 21:31:32.582983 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] strip per-dir prefix: /var/www/html/emoncms/index.php -> index.php
[Wed Sep 27 21:31:32.583050 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] applying pattern '^(.*)$' to uri 'index.php'
[Wed Sep 27 21:31:32.583141 2017] [rewrite:trace4] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] RewriteCond: input='/var/www/html/emoncms/index.php' pattern='!-f' => not-matched
[Wed Sep 27 21:31:32.583184 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] strip per-dir prefix: /var/www/html/emoncms/index.php -> index.php
[Wed Sep 27 21:31:32.583230 2017] [rewrite:trace3] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] applying pattern '(^|/)\\.' to uri 'index.php'
[Wed Sep 27 21:31:32.583282 2017] [rewrite:trace1] [pid 16697] mod_rewrite.c(475): [client 192.168.1.30:55542] 192.168.1.30 - - [192.168.1.22/sid#758c7cc8][rid#76224cf0/initial/redir#1] [perdir /var/www/html/emoncms/] pass through /var/www/html/emoncms/index.php
[Wed Sep 27 21:31:32.859061 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16780 (gen 0/slot 5) started
[Wed Sep 27 21:32:12.896959 2017] [core:notice] [pid 16693] AH00052: child pid 16697 exit signal Segmentation fault (11)
[Wed Sep 27 21:32:12.897110 2017] [core:trace4] [pid 16693] mpm_common.c(534): mpm child 16697 (gen 0/slot 0) exited

This is the first time I’m delving into the processes and working of emoncms and am NOT clear on what works and where, hence appreciate all your help and guidance. But also apologise for the potentially daft questions etc :wink:

This is identical to the problem that I encountered prior to this post.
The error messages were the same, and after failing to resolve, I resorted to an earlier backup, only to meet the same segmentation problem again a week later, so I eventually re-formatted and rebuilt my system in raspbian stretch.

So, yes this appears to be an issue rather than a glitch.

Paul

Can you show us s screen dump of the admin page