sisim
(Sisim Biva)
1
Hello,
I updated to 10.9.10 thanks to git pull origin master. But now I don’t have access to the feed view anymore, instead, I have an error message:
EmonCMS Error
Message: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 2 of the JSON data
Route: feed/view
Line: 928
Column: 27
In addition, Redis doesn’t seem to work anymore:

While I can confirm that:
- In
/var/www/html/emoncms/settings.php, I have
"redis"=>array(
'enabled' => true
),
redisbuffer' => array(
'enabled' => false,
'sleep' => 60
),
redis-cli ping returns PONG
sudo ps aux | grep redis returns
redis 3083 0.0 1.0 778396 75224 ? Sl 00:22 0:00 /var/www/onlyoffice/documentserver/server/DocService/docservice
redis 3094 0.0 0.6 594104 51068 ? Sl 00:22 0:00 /var/www/onlyoffice/documentserver/server/FileConverter/converter
redis 3100 0.0 0.9 713152 73856 ? Sl 00:22 0:00 /var/www/onlyoffice/documentserver/server/FileConverter/converter /snapshot/server/build/server/FileConverter/sources/convertermaster.js
redis 20270 0.7 0.2 60900 16052 ? Ssl 01:42 0:00 /usr/bin/redis-server 127.0.0.1:6379*
sudo systemctl status redis returns:
redis-server.service - Advanced key-value store
Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; vendor preset: enabled)
Active: activating (start) since Mon 2021-11-15 01:44:06 CET; 1min 15s ago
Docs: http://redis.io/documentation,
man:redis-server(1)
Cntrl PID: 20440 (redis-server)
Tasks: 4 (limit: 4915)
Memory: 15.2M
CGroup: /system.slice/redis-server.service
└─20440 /usr/bin/redis-server 127.0.0.1:6379
-
I don’t know if it’s related, but I see a lot of errors like this in the log:
|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/345.meta'
-
Other parts of emoncms (dashboard, input, graph) work well
Config: Debian Buster, Apache, php8.0-fpm
Redis server v=5.0.14
Would anybody have an idea?
sisim
(Sisim Biva)
2
Hello, I’m still blocked with this issue. Would anybody have an idea? Thanks for your support!
sisim
(Sisim Biva)
3
The php info I’m getting is:
Hello @sisim sorry I missed your post, do you see data when you look at graphs and dashboards?
What kind of system is this on? is it a raspberrypi based install? I assume self configured not emonSD?
sisim
(Sisim Biva)
5
Hi @TrystanLea , please don’t be sorry, you’re so nice to consider my issue 
I do see data on graphs and dashboards, it works. All the IotaWatts which are connected are visible in those data, and data is uptodate.
The system is a Debian server (not raspberry):
Debian GNU/Linux 10 (buster)
Server version: Apache/2.4.38 (Debian)
PHP 8.0.13 (cli) (built: Nov 22 2021 09:48:13) ( NTS )
mariadb Ver 15.1 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
Redis server v=5.0.14 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=ddd3b1f304a7d4d5
CPU: 4.19.0-18-amd64
x86_64
We configured it ourselves, and it worked up to now (even if we had some server load issues in the past that you helped to solve: High server load - #18 by sisim - since then, we upgraded the hardware and everything was working fine).
The current issue might also be related to an update of the system, which went to PHP 8.1. After this update, Emoncms wasn’t working anymore, so I updated emoncms (git pull origin master, currently 10.9.19). It was still not working, so I removed PHP 8.1 and reinstalled PHP 8.0 (currently 8.0.13). Then emoncms is working again, except the feed page.
There was probably something broken in those changes. What I don’t understand, is that all other applications on the server, also using PHP, don’t have any issue (Nextcloud, OnlyOffice, Wallabag, Mattermost, …).
sisim
(Sisim Biva)
7
In the log, I just see this:
`/var/log/emoncms/emoncms.log`
2021-12-08 12:34:49.312|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/350.meta'
2021-12-08 12:34:49.312|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/350.meta'
2021-12-08 12:34:49.312|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/351.meta'
2021-12-08 12:34:49.312|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/351.meta'
2021-12-08 12:34:49.313|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/356.meta'
2021-12-08 12:34:49.313|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/356.meta'
2021-12-08 12:34:49.321|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=71
2021-12-08 12:34:54.179|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/330.meta'
2021-12-08 12:34:54.179|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/330.meta'
2021-12-08 12:34:54.180|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/337.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/337.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/341.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/341.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/344.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/344.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/345.meta'
2021-12-08 12:34:54.181|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/345.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/349.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/349.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/350.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/350.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/351.meta'
2021-12-08 12:34:54.182|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/351.meta'
2021-12-08 12:34:54.183|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/356.meta'
2021-12-08 12:34:54.184|WARN|PHPFina.php|get_meta() meta file does not exist '/var/opt/emoncms/phpfina/356.meta'
sisim
(Sisim Biva)
8
Going through the full log, here are potentially interesting lines
2021-12-08 06:16:22.654|ERROR|index.php|Not Authenticated|dashboard/edit
2021-12-08 06:16:23.497|ERROR|index.php|Not Authenticated|dashboard/edit
2021-12-08 06:16:23.498|ERROR|index.php|Not Authenticated|input/view
2021-12-08 06:43:36.265|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 06:43:37.748|ERROR|index.php|Not Authenticated|input/list
2021-12-08 06:43:56.117|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 06:44:12.127|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 06:44:30.165|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 06:45:43.759|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 06:46:01.948|ERROR|input_controller.php|{"success": false, "message": "Error: Reached the maximal allowed number of different NodeIds, limit is 32. Node 'IotaWatt' was ignored."} for User: 1
2021-12-08 12:34:49.215|WARN|feed_model.php|Feed model: Requested feed does not exist feedid=70
I think it’s probably related to the errors with the missing meta files:
get_meta() meta file does not exist '/var/opt/emoncms/phpfina/350.meta
Could you check the content of /var/opt/emoncms/phpfina:
ls -lh /var/opt/emoncms/phpfina
sisim
(Sisim Biva)
11
The files are indeed missing: why would it prevent me to access the feed page? Would you know how to solve that?
sisim
(Sisim Biva)
12
The error message also slightly changed on https://emoncms.mywebsite.com/feed/list
EmonCMS Error
-------------
Message: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 2 of the JSON data
Route: feed/list
Line: 940
Column: 27
(it was line 928 before, Column 27, see my first post)
Hello @sisim, are you definitely using settings.php and not settings.ini? Could you check this setting? I think your last error might be related to this setting being incorrect…
"feed"=>array(
// Supported engines. List engines by id to disable feed creation.
// Existing feeds with a hidden engine still work
// MYSQL:0, MYSQLMEMORY:8, PHPTIMESERIES:2, PHPFINA:5, CASSANDRA:10
// 5:phpfina and 2:phptimeseries are the recommended emoncms feed engines
'engines_hidden'=>array(0,8,10),
sisim
(Sisim Biva)
14
Hello @TrystanLea , thanks!
Yes, I use settings.php, and I had 'engines_hidden'=>array(0,6,8,10),
I have changed it to array(0,8,10)
I still have the issue on the feed page. Could you please share which error it should solve?
Yes, the error
Message: SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 2 of the JSON data
Looks like it could be related to that setting…
Feel free to PM me your website address and I can try to follow the line numbers a bit better… and see if I can spot anything else…
sisim
(Sisim Biva)
16
I just shared a PM with you, with more info 
Hello @sisim think I’ve got it, could you pull in the latest emoncms core master branch?
sisim
(Sisim Biva)
18
Yeah!! It works
Thank you so much for your support @TrystanLea !
(v 10.9.20 now)
1 Like