I updated
alert.js
archive.js
panel.js
piio.js
server.js
util.js
Run updatefiles and you will receive them. I did NOT update the version number. Restart all after you download.
I updated
alert.js
archive.js
panel.js
piio.js
server.js
util.js
Run updatefiles and you will receive them. I did NOT update the version number. Restart all after you download.
Still No errorsβ¦
Looking good!
The issues fixed were in the TCP disconnect. There were times that the the services would not reconnect to the Server service. This or course would cause messages to be missed.
Hi, after updating files and restarting services, on βabout pageβ I am getting this message:
ReferenceError: /home/pi/archivesw/views/about.ejs:2
1|
2| <%
3| var page = βaboutβ;
4| var eventTemp = eventT;
5| if (βflagβ in event) {
eventT is not defined
at eval (eval at compile (/home/pi/archivesw/node_modules/ejs/lib/ejs.js:618:12), :13:17)
at returnedFn (/home/pi/archivesw/node_modules/ejs/lib/ejs.js:653:17)
at tryHandleCache (/home/pi/archivesw/node_modules/ejs/lib/ejs.js:251:36)
at View.exports.renderFile [as engine] (/home/pi/archivesw/node_modules/ejs/lib/ejs.js:482:10)
at View.render (/home/pi/archivesw/node_modules/express/lib/view.js:135:8)
at tryRender (/home/pi/archivesw/node_modules/express/lib/application.js:640:10)
at Function.render (/home/pi/archivesw/node_modules/express/lib/application.js:592:3)
at ServerResponse.render (/home/pi/archivesw/node_modules/express/lib/response.js:1008:7)
at f1 (/home/pi/archivesw/server.js:240:10)
at
What to do?
Look in the file, config.json and see what the database version is. Also run updatefiles.js from a terminal window. You are missing a file.
Changed the database name to .test, I update files again and restarted my Pi. Now I am getting error message in log files:
Error: listen EADDRINUSE :::8080 at Object._errnoException (util.js:1022:11) at _exceptionWithHostPort (util.js:1044:20) at Server.setupListenHandle [as _listen2] (net.js:1367:14) at listenInCluster (net.js:1408:12) at Server.listen (net.js:1492:7) at Object.<anonymous> (/home/pi/archivesw/server.js:43:12) at Module._compile (module.js:652:30) at Object.Module._extensionsβ¦js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12)
You have server.js running twice or you have another application that is using port 8080.
Just this one
I tried to reinstall it also in the meanwhile. I am not sure, maybe I used another user for installation (root instead of pi). Can this cause problem, and how to delete everything and do fresh install again?
Yes, if you installed it twice that will cause issues. Delete the new install. Find the folder archivesw and delete everything.
Open a terminal window and type: pm2 list
What does it show?
Dir deleted.
Result from pm2 list:
root@raspberrypi:~# pm2 list
ββββββββββ¬βββββ¬βββββββββ¬βββββββββ¬βββββββββ¬ββββββ¬βββββββββ¬ββββββββββββ
β Name β id β mode β status β βΊ β cpu β memory β
ββββββββββΌβββββΌβββββββββΌβββββββββΌβββββββββΌββββββΌβββββββββΌββββββββββββ€
β Server β 0 β 1.7.13 β fork β online β 171 β 0% β 38.4 MB β
ββββββββββ΄βββββ΄βββββββββ΄βββββββββ΄βββββββββ΄ββββββ΄βββββββββ΄ββββββββββββ
Okay. it shows you have Server running. Now you can open a browser to port 8080 on your PPi.
Ok, under the root I stoped server and restarr PI. After loging with pi user, 4 processes are running archive, panel, pio and server.
It look like that everything is now ok. No more errors in logs, about page is showing:
Datebase level: 1.7.13.test <== Do NOT run AlterTables!
Application
Version
Service
Updated
Alert
yes
1.7.13.033
AlterTables
1.7.13.027
no
Archive
1.7.13.094
yes
Backfill
no
1.7.13.011
Citizen
1.7.13.018
yes
1.7.13.020
DailyStats
1.7.13.027
no
Panel
1.7.13.061
yes
PanelIndex
1.7.13.052
ui
Piio
1.7.13.031
yes
Server
1.7.13.18
yes
Start
1.7.13.003
no
TippingBucket
no
1.7.13.007
UpdateFiles
1.7.13.021
no
Utility
1.7.13.029
no
WeatherCalc
1.7.13.024
no
RPi Reboot:
2
Archive Restart:
9
Hub Reboot:
0
Hub Update:
0
Battery Low:
Sorry for formating, I am doing all of this on my phone :-). Can I check anything additionally?
It looks like the application is running. The log files will show any issues.
dd it and it seems to run ok
what happens coming night with the cron ?
edit : is pws coded ?
Working everything, looking into tables I just notice that I am missing approx. data for 1.5 hour today.
Additionally, what is a meaning of link βClear Warningsβ on device tab? When I click on it, nothing is happenedβ¦
if you use pushover or the other option as an alert sending option, once you have for ex low batterie, you need to reset it β¦ else it would send endless warnings β¦
That is what I did understand from it.
In one moment I had battery level measure as 0.0, but obviously this was some mistake. How to reset it?
The βClear warningsβ clears the battery warnings that have been sent. If you get a 0vdc battery warning you will not get a second warning until you reset the warnings. This is necessary when you replace batteries.
I click several times but nothing happensβ¦