Closed brutevinch closed 6 years ago
@brutevinch sorry for not responding earlier. Did you manage to get this issue resolved? We're about to release a 0.10.3 release. Can you try to see if this problem is reproducible with the dev
branch? If you have questions, please respond or join https://gitter.im/nightscout/public
Looks like this was resolved in Gitter, closing
@brutevinch Did you get this resolved? I'm having the same issue trying to bring the site up on a raspberry pi.
Hi. Could someone tell me the way to fix it. I have the same problem on my ubuntu Pi with NS 13.0.1
Double check you’re not running Node or NPM as root and that the web server process has access to the files
ok thanks, i hope i can get it, because i´m not the Linux specialist
I installed linux ubuntu 20.04.2 and nightscout After starting i have logo on black screen "loading the client" .what am i doing wrong?
I installed linux ubuntu 20.04.2 and nightscout After starting i have logo on black screen "loading the client" .what am i doing wrong?
I got that when trying to load the site on a browser on a raspberry pi, so I put it down to the browser being unable to load the graphics of the client. Otherwise you could try using browser inspector tools to see if the calls to the site are failing.
Upon attempt go at http://193.104.57.84:443/ I get Failed to load resource: the server responded with a status of 404 (Not Found)
The script does not load and constantly hangs "Loading the client"
Support writes that you need to enable error output at the level of this program. How to do it? Help me find the reason please and run. Page - https://lera.mp3e.ru/ Debian 9
I have some problem. what should I do to fix this?
@pavelsshtanko where is your Nightscout site hosted?
VPS server https://vmi2059201.contaboserver.net/ I installed it myself, according to the manual
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├────┼───────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0 │ server │ default │ 15.0.2 │ fork │ 570 │ 12h │ 0 │ online │ 0% │ 124.2mb │ pshtanko │ disabled
PM2 | 2024-08-01T23:05:45: PM2 log: PM2 version : 5.4.2
PM2 | 2024-08-01T23:05:45: PM2 log: Node.js version : 16.20.1
Any chance you can see logs of what's going on?
My logs `pshtanko@vmi2059201:~$ pm2 logs [TAILING] Tailing last 15 lines for [all] processes (change the value with --lines option) /home/pshtanko/.pm2/pm2.log last 15 lines: PM2 | 2024-08-01T23:05:45: PM2 log: PM2 version : 5.4.2 PM2 | 2024-08-01T23:05:45: PM2 log: Node.js version : 16.20.1 PM2 | 2024-08-01T23:05:45: PM2 log: Current arch : x64 PM2 | 2024-08-01T23:05:45: PM2 log: PM2 home : /home/pshtanko/.pm2 PM2 | 2024-08-01T23:05:45: PM2 log: PM2 PID file : /home/pshtanko/.pm2/pm2.pid PM2 | 2024-08-01T23:05:45: PM2 log: RPC socket file : /home/pshtanko/.pm2/rpc.sock PM2 | 2024-08-01T23:05:45: PM2 log: BUS socket file : /home/pshtanko/.pm2/pub.sock PM2 | 2024-08-01T23:05:45: PM2 log: Application log path : /home/pshtanko/.pm2/logs PM2 | 2024-08-01T23:05:45: PM2 log: Worker Interval : 30000 PM2 | 2024-08-01T23:05:45: PM2 log: Process dump file : /home/pshtanko/.pm2/dump.pm2 PM2 | 2024-08-01T23:05:45: PM2 log: Concurrent actions : 2 PM2 | 2024-08-01T23:05:45: PM2 log: SIGTERM timeout : 1600 PM2 | 2024-08-01T23:05:45: PM2 log: =============================================================================== PM2 | 2024-08-01T23:05:46: PM2 log: App [server:0] starting in -fork mode- PM2 | 2024-08-01T23:05:46: PM2 log: App [server:0] online
/home/pshtanko/.pm2/logs/server-out.log last 15 lines: 0|server | Load Complete: 0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1 0|server | data loaded: reloading sandbox data and updating plugins 0|server | 2024-08-02T10:04:21.962Z SNOOZING ALARM: 0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}} 0|server | BECAUSE: 0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"} 0|server | tick 2024-08-02T10:04:53.339Z 0|server | Load Complete: 0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1 0|server | data loaded: reloading sandbox data and updating plugins 0|server | 2024-08-02T10:04:58.588Z SNOOZING ALARM: 0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}} 0|server | BECAUSE: 0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
/home/pshtanko/.pm2/logs/server-error.log last 15 lines: 0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default 0|server | For the COB plugin to function you need a treatment profile 0|server | For the Basal plugin to function you need a treatment profile 0|server | For the COB plugin to function you need a treatment profile 0|server | For the Basal plugin to function you need a treatment profile 0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default 0|server | For the COB plugin to function you need a treatment profile 0|server | For the Basal plugin to function you need a treatment profile 0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default 0|server | For the COB plugin to function you need a treatment profile 0|server | For the Basal plugin to function you need a treatment profile 0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default 0|server | For the COB plugin to function you need a treatment profile 0|server | For the Basal plugin to function you need a treatment profile 0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | tick 2024-08-02T10:05:53.340Z
0|server | Load Complete:
0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | 2024-08-02T10:05:58.412Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | tick 2024-08-02T10:06:53.341Z
0|server | Load Complete:
0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | 2024-08-02T10:06:59.504Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | tick 2024-08-02T10:07:53.342Z
0|server | Load Complete:
0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | 2024-08-02T10:07:58.483Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | tick 2024-08-02T10:08:53.343Z
0|server | Load Complete:
0|server | sgvs:471, treatments:1, devicestatus:31, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | 2024-08-02T10:08:58.549Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 17 +0 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":17,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | got data-received event, requesting reload
0|server | got data-received event, requesting reload
0|server | Load Complete:
0|server | sgvs:472, treatments:1, devicestatus:32, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | 2024-08-02T10:09:22.261Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 16.8 -0.2 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":16.8,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | tick 2024-08-02T10:09:53.343Z
0|server | Load Complete:
0|server | sgvs:472, treatments:1, devicestatus:32, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | 2024-08-02T10:09:58.468Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 16.8 -0.2 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":16.8,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | tick 2024-08-02T10:10:53.343Z
0|server | Load Complete:
0|server | sgvs:472, treatments:1, devicestatus:32, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | Alarm has already been snoozed, don't snooze it again, level: 2 , group: default
0|server | 2024-08-02T10:10:58.746Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 16.8 -0.2 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":16.8,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | tick 2024-08-02T10:11:53.345Z
0|server | Load Complete:
0|server | sgvs:471, treatments:1, devicestatus:32, sensorTreatments:1
0|server | data loaded: reloading sandbox data and updating plugins
0|server | For the COB plugin to function you need a treatment profile
0|server | For the Basal plugin to function you need a treatment profile
0|server | 2024-08-02T10:11:58.796Z SNOOZING ALARM:
0|server | {"level":"Urgent","title":"Urgent HIGH","message":"BG Now: 16.8 -0.2 → mmol/L\nIOB: 0U","group":"default","plugin":"simplealarms","debug":{"lastSGV":16.8,"thresholds":{"bgHigh":260,"bgTargetTop":180,"bgTargetBottom":70,"bgLow":55}}}
0|server | BECAUSE:
0|server | {"level":"Urgent","title":"Snoozing high alarm since there is enough IOB","message":"\nIOB: 0U","group":"default"}
0|server | ALARM SOCKET: emitted clear_alarm to all clients
0|server | 2024-08-02T10:11:58.828Z EMITTING ALL CLEAR:
0|server | {"level":"Unknown","title":"All Clear","message":"default - Urgent was ack'd","group":"default","plugin":"
Same issue. Fresh Debian install. Spent 4 days on this.
Console logs show two errors:
Uncaught ReferenceError: Buffer is not defined 65712 util.js:103 Webpack 17 util.js:103
And...
Uncaught TypeError: window.Nightscout.client is undefined
As far as I understand, this is due to the fact that MongoDB must be hosted on an official resource (Heroku, etc.), and not on a vps (self-hosted) server.
I have had it running as recently as last week. I just decided to rebuild for another reason. Also the errors don't seem consistent with a mongo error. What makes you think it's mongo?
In my case, moving mongo to heroku helped.
Trying to install and start last master build on debian. After starting i have logo on black screen "loading the client" Version 0.9 on the same system is working fine.
/opt/ns_1(master*) # nodejs --version root@cgm v8.11.1