Hi guys. I am having some weird issue with my emoncms feeds page. Before I proceed a bit of an intro to my configuration.
I have the raspberry pi 3 connected to 3 victron devices via serial to usb cable. I setup emonhub with the appropriate interfacer config and all that works fine. The RPi is based on the latest stable emonsd image.
I also created an emoncms instance on my VPS and pointed emonhub to put data to this emoncms instance installed to the cloud. All was well with the world and I had no issue.
2 days ago while trying to install a graph module on my emoncms installed in the cloud. I did a git pull in the emoncms web root directory which I believe pulled in the latest emoncms files from git. The graph module installed fine without any issues.
However yesterday I started noticing my dashboard was devoid of any data whatsoever. The feed/list page is also stuck in loading. Weirdly though. The dashboard works fine from my android device with chome browser (I run Kubuntu on my laptop with chromium) but the feeds page also does not load on the phone…
Below are some log/ debug outputs and also some information about my version of emoncms
Server Information
Server Information
Emoncms Version 9.8.31 : 2018.06.21 Modules Administration : App v1.1.0 : Dashboard v1.2.0 : EventProcesses : Feed : Graph v1.2.0 : Input : CoreProcess : Schedule : Time : User : Visualisation Server OS Linux 4.15.13-x86_64-linode106 Host martians.com.ng martians.com.ng (178.79.152.229) Date 2018-07-05 07:10:07 UTC Uptime 07:10:07 up 42 days, 22:04, 2 users, load average: 0.00, 0.00, 0.00 HTTP Server Johnny Walker HTTP/1.1 CGI/1.1 80 MySQL Version 5.7.22-0ubuntu0.16.04.1-log Host localhost (127.0.0.1) Date 2018-07-05 07:10:07 (UTC 00:00) Stats Uptime: 3708293 Threads: 1 Questions: 36345856 Slow queries: 0 Opens: 54082 Flush tables: 1 Open tables: 416 Queries per second avg: 9.801 Redis Version 3.0.6 Host localhost:6379 (127.0.0.1) Size 138 keys (448.34K) Uptime 31 days Memory RAM Used: 38.07% Total: 1.94 GB Used: 756.79 MB Free: 1.2 GB Swap Used: 25.29% Total: 512 MB Used: 129.5 MB Free: 382.5 MB Disk Mount Stats / Used: 65.49% Total: 22.56 GB Used: 14.77 GB Free: 7.1 GB /run/cgmanager/fs Used: 0.00% Total: 100 KB Used: 0 B Free: 100 KB PHP Version 7.0.30-0ubuntu0.16.04.1 (Zend Version 3.0.0) Modules apache2handler : apcu v5.1.3 : calendar v7.0.30-0ubuntu0.16.04.1 : Core v7.0.30-0ubuntu0.16.04.1 : ctype v7.0.30-0ubuntu0.16.04.1 : curl v7.0.30-0ubuntu0.16.04.1 : date v7.0.30-0ubuntu0.16.04.1 : dom v20031129 : exif v7.0.30-0ubuntu0.16.04.1 : fileinfo v1.0.5 : filter v7.0.30-0ubuntu0.16.04.1 : ftp v7.0.30-0ubuntu0.16.04.1 : gd v7.0.30-0ubuntu0.16.04.1 : gettext v7.0.30-0ubuntu0.16.04.1 : hash v1.0 : iconv v7.0.30-0ubuntu0.16.04.1 : json v1.4.0 : libxml v7.0.30-0ubuntu0.16.04.1 : mbstring v7.0.30-0ubuntu0.16.04.1 : mcrypt v7.0.30-0ubuntu0.16.04.1 : mysqli v7.0.30-0ubuntu0.16.04.1 : mysqlnd vmysqlnd 5.0.12-dev - 20150407 - $Id: b5c5906d452ec590732a93b051f3827e02749b83 $ : openssl v7.0.30-0ubuntu0.16.04.1 : pcre v7.0.30-0ubuntu0.16.04.1 : PDO v7.0.30-0ubuntu0.16.04.1 : pdo_mysql v7.0.30-0ubuntu0.16.04.1 : Phar v2.0.2 : posix v7.0.30-0ubuntu0.16.04.1 : readline v7.0.30-0ubuntu0.16.04.1 : redis v4.0.2 : Reflection v7.0.30-0ubuntu0.16.04.1 : session v7.0.30-0ubuntu0.16.04.1 : shmop v7.0.30-0ubuntu0.16.04.1 : SimpleXML v7.0.30-0ubuntu0.16.04.1 : sockets v7.0.30-0ubuntu0.16.04.1 : SPL v7.0.30-0ubuntu0.16.04.1 : standard v7.0.30-0ubuntu0.16.04.1 : sysvmsg v7.0.30-0ubuntu0.16.04.1 : sysvsem v7.0.30-0ubuntu0.16.04.1 : sysvshm v7.0.30-0ubuntu0.16.04.1 : tokenizer v7.0.30-0ubuntu0.16.04.1 : wddx v7.0.30-0ubuntu0.16.04.1 : xml v7.0.30-0ubuntu0.16.04.1 : xmlreader v7.0.30-0ubuntu0.16.04.1 : xmlwriter v7.0.30-0ubuntu0.16.04.1 : xsl v7.0.30-0ubuntu0.16.04.1 : Zend OPcache v7.0.30-0ubuntu0.16.04.1 : zlib v7.0.30-0ubuntu0.16.04.1
Client Information
HTTP Browser Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36 Screen Resolution 1366 x 768 Window Size 1351 x 637
/var/log/emoncms.log
2018-07-02 20:01:58.102|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-02 20:01:58.517|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 00:57:25.617|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 06:39:44.738|ERROR|input_controller.php|{"success": false, "message": "Format error, json string supplied is not valid"} for User: 1
2018-07-03 06:55:54.065|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 06:55:55.041|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 09:29:01.640|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 11:56:59.051|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 11:56:59.230|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 12:39:24.870|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 13:07:33.288|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-03 13:07:34.762|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 07:42:56.760|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 07:42:57.482|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 08:03:03.243|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 08:03:03.438|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 08:08:30.819|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 08:08:31.924|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 22:42:35.843|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-04 22:42:38.596|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-05 02:43:41.765|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=3
2018-07-05 06:21:34.827|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=0
emoncms feed json file seems to load fine http://energy.bobby.com.ng/feed/list.json
when I load the feed page with developer tools on chromium I get the following
table.js:143 Uncaught TypeError: Cannot read property 'draw' of undefined
at Object.draw_row (table.js:143)
at Object.draw_internal (table.js:94)
at Object.draw (table.js:38)
at Object.success (list:482)
at j (jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js:2)
at x (jquery-1.11.3.min.js:5)
at XMLHttpRequest.b (jquery-1.11.3.min.js:5)
draw_row @ table.js:143
draw_internal @ table.js:94
draw @ table.js:38
success @ list:482
j @ jquery-1.11.3.min.js:2
fireWith @ jquery-1.11.3.min.js:2
x @ jquery-1.11.3.min.js:5
b @ jquery-1.11.3.min.js:5
process_ui.js:23 contextid=0
process_ui.js:24 contextprocesslist=
table.js:143 Uncaught TypeError: Cannot read property 'draw' of undefined
at Object.draw_row (table.js:143)
at Object.draw_internal (table.js:94)
at Object.draw (table.js:38)
at Object.initprogress (process_ui.js:795)
at Object.success (process_ui.js:727)
at j (jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js:2)
at x (jquery-1.11.3.min.js:5)
at XMLHttpRequest.b (jquery-1.11.3.min.js:5)
draw_row @ table.js:143
draw_internal @ table.js:94
draw @ table.js:38
initprogress @ process_ui.js:795
success @ process_ui.js:727
j @ jquery-1.11.3.min.js:2
fireWith @ jquery-1.11.3.min.js:2
x @ jquery-1.11.3.min.js:5
b @ jquery-1.11.3.min.js:5
4table.js:143 Uncaught TypeError: Cannot read property 'draw' of undefined
at Object.draw_row (table.js:143)
at Object.draw_internal (table.js:94)
at Object.draw (table.js:38)
at Object.success (list:482)
at j (jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js:2)
at x (jquery-1.11.3.min.js:5)
at XMLHttpRequest.b (jquery-1.11.3.min.js:5)
draw_row @ table.js:143
draw_internal @ table.js:94
draw @ table.js:38
success @ list:482
j @ jquery-1.11.3.min.js:2
fireWith @ jquery-1.11.3.min.js:2
x @ jquery-1.11.3.min.js:5
b @ jquery-1.11.3.min.js:5
20table.js:143 Uncaught TypeError: Cannot read property 'draw' of undefined
at Object.draw_row (table.js:143)
at Object.draw_internal (table.js:94)
at Object.draw (table.js:38)
at Object.success (list:482)
at j (jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js:2)
at x (jquery-1.11.3.min.js:5)
at XMLHttpRequest.b (jquery-1.11.3.min.js:5)
11table.js:143 Uncaught TypeError: Cannot read property 'draw' of undefined
at Object.draw_row (table.js:143)
at Object.draw_internal (table.js:94)
at Object.draw (table.js:38)
at Object.success (list:482)
at j (jquery-1.11.3.min.js:2)
at Object.fireWith [as resolveWith] (jquery-1.11.3.min.js:2)
at x (jquery-1.11.3.min.js:5)
at XMLHttpRequest.b (jquery-1.11.3.min.js:5)
draw_row @ table.js:143
draw_internal @ table.js:94
draw @ table.js:38
success @ list:482
j @ jquery-1.11.3.min.js:2
fireWith @ jquery-1.11.3.min.js:2
x @ jquery-1.11.3.min.js:5
b @ jquery-1.11.3.min.js:5
XMLHttpRequest.send (async)
send @ jquery-1.11.3.min.js:5
ajax @ jquery-1.11.3.min.js:5
update @ list:474
what I have done and checked
Time stamp on the emoncms and emonpi are the same. The node page loads fine and the nodes are updated every 22 seconds and the values are as it should be. Again athough the feed page does not load on my mobile phone, the dashboard and all the values works fine on the phone browser.
What could be wrong with the emoncms. Could the latest update from git have broken something?