These are chat archives for nightscout/intend-to-bolus

18th
Apr 2019
straykatz
@straykatz
Apr 18 00:00
4) Adding to the confusion: I had never had a flawless installation before, so I did not pick up when things got worse.
5) Issues got worse when I started Dexcom G6 from Enlite, using Lookout.
6) Issues got worse when I had to upgrade to Jubilinux 0.3.0
straykatz
@straykatz
Apr 18 00:06
This makes a lot of sense now. Multi-causal problems - here, affecting both the old and new computer, make troubleshooting complex. the reasons appear to be 'physical', so further degradation is to be expected. The cause-effect of this kind of issue not immediately visible, when you expect one, maybe two unrelated causes. The USB-C Hub PLUS USB-ports on the old Mac in parallel is really fascinating - that happening at the same time is -rare and, cruel :). I do Risk analysis and Root cause analysis for my job, and I have had to fight to convince designers that two failures may happen at the same time. But three!
Thank you @cluckj and @ecc1 for spending hours with me trying to figure out what's going on. Your willingness to help is amazing and humbling, and a lifeline.
I will put a flow chart together and suggest it for the docs as a case study.
Dana Lewis
@danamlewis
Apr 18 00:13

Phew! Yes, if you want to add it to the troubleshooting section as an example, I think it would be helpful...

Glad it’s working now!

straykatz
@straykatz
Apr 18 00:13
<3
straykatz
@straykatz
Apr 18 00:23
oh ... 7) I started using a new-to-me kind of Edison, without on-board antenna
straykatz
@straykatz
Apr 18 00:47
And, it is looping! This time, I did not have even one error during flashing, bootstrap, and setup. Phew. That's way cool :-D. thank you.
Jon Cluck
@cluckj
Apr 18 02:04
:D :D :D :D :D :D
marafie
@marafie
Apr 18 07:42
@cluckj hi,, refering to the question, yes this happend after reboot
the pump log is no beeing updated
marafie
@marafie
Apr 18 10:22
i ran run again and got this

oref0@0.7.0-dev global-install /root/src/oref0
npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g

npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-18T10_21_57_716Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-18T10_21_57_901Z-debug.log

Jieseldeep
@Jieseldeep
Apr 18 10:24
I've had an edison fail and reisntalled on a new edison. I no longer have nightscout BG's can anyone help?
marafie
@marafie
Apr 18 10:25
this is raspberry pi
@Jieseldeep did you add the nightscout web correctly and API secret?
Jieseldeep
@Jieseldeep
Apr 18 10:27
@marafie I think so. I'm not great with linux though, do you know off the top of your head where they are saved so I can double check? I'm PuTTy'd into my rig right now
marafie
@marafie
Apr 18 10:27
is it beeing feed to tail -F /var/log/openaps/ns-loop.log
Jieseldeep
@Jieseldeep
Apr 18 10:29
do I just copy and paste from "tail -F" to "ns-loop.log"?
marafie
@marafie
Apr 18 10:29
cd ~/myopenaps && cat oref0-runagain.sh to see what options you have saved in there. <---- check if the website is correct
tail -F /var/log/openaps/ns-loop.log
just this and see what is thier
Jieseldeep
@Jieseldeep
Apr 18 10:31
ok, I'm getting a bunch of stuff there. I managed to see the ns-host= and api-secret. They look right, should the ns-host have the httpS or just http?
marafie
@marafie
Apr 18 10:32
https
Jieseldeep
@Jieseldeep
Apr 18 10:32
ok, that's right
marafie
@marafie
Apr 18 10:32
tail -F /var/log/openaps/ns-loop.log
try this
copy and past what you see
Jieseldeep
@Jieseldeep
Apr 18 10:33
reporting cgm/ns-glucose.json
ns://JSON/shell/settings/temptargets.json
reporting settings/temptargets.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
Refreshed temptargetsns://JSON/shell/monitor/carbhistory.json
reporting monitor/carbhistory.json
and meal-carbs
{"batteryVoltage":3781, "battery":60}
Uploaded
when I just type 'L' in to monitor the loop I get the following:
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight OK. Profile less than 60m old; Profile valid. touch: failed to get attributes of ‘monitor/glucose.json’: No such file or directory
Couldn't touch /tmp/pump_loop_enacted -r monitor/glucose.json
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 40s silence before mmtuning
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Listening for 40s silence before mmtuning: .No interfering pump comms detected from other rigs (this is a good thing!)
mmtune: "916.588", 5, -64 waiting for 8 second silence before continuing
Radio ok. Listening: .No interfering pump comms detected from other rigs (this is a good thing!)
Preflight OK. Done waiting for rigs with better signal.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Thu Apr 18 00:33:18 HST 2019
grep: monitor/temp_basal.json: No such file or directory
marafie
@marafie
Apr 18 10:34
is this your 1st run ?
this error usually self-resolves. <====
Jieseldeep
@Jieseldeep
Apr 18 10:35
no, it was running for a couple days without being able to see anything in nightscout, but stopped sometime this afternoon
marafie
@marafie
Apr 18 10:35
mmtune: "916.588", 5, -64 waiting for 8 second silence before continuing <<<<<<< means that i comunicate with pump
Jieseldeep
@Jieseldeep
Apr 18 10:35
I was in and out of signal today a bunch. I had been using a wifi hotspot
but tried to get BT tethering setup this go round
I thought it was all working alright, but maybe not?
marafie
@marafie
Apr 18 10:36
does the rig have internet connection ?
Jieseldeep
@Jieseldeep
Apr 18 10:37
I think so, I can see it connected to my hotspot
and the phone has internet connection
yes, I can ping google.com
from putty
marafie
@marafie
Apr 18 10:38
tail -F /var/log/openaps/ns-loop.log <<===== the part you pasted is related to the pump-loop
use ns-loop
copy and past what you have
from tail -F /var/log/openaps/ns-loop.log
Jieseldeep
@Jieseldeep
Apr 18 10:40
root@Panc:~/myopenaps# tail -F /var/log/openaps/ns-loop.log
reporting cgm/ns-glucose.json
ns://JSON/shell/settings/temptargets.json
reporting settings/temptargets.json
get-profile://text/shell/settings/profile.json
reporting settings/profile.json
Refreshed temptargetsns://JSON/shell/monitor/carbhistory.json
reporting monitor/carbhistory.json
and meal-carbs
{"batteryVoltage":3782, "battery":60}
Uploaded
btw, thank for the help ;)
I haven't seen a temp target (circle) icon on the pump at all today
marafie
@marafie
Apr 18 10:42
mybe its related to failed to get attributes of ‘monitor/glucose.json’: No such file or directory
Jieseldeep
@Jieseldeep
Apr 18 10:42
I wonder if my xdrip+ settings got goofed up somehow in all my messing around
I had followed one of the docs on how ot get the rest-api to upload to two places at once (just type both in with a space between...
and I wonder if I goofed up the http vs https thing there maybe?
marafie
@marafie
Apr 18 10:44
does your nightscout website has latest BG reading ?
Jieseldeep
@Jieseldeep
Apr 18 10:44
I work on the road and am always going in and out of cell reception, so I want to be able to run offline if needed.
no, no BG at all showing up on nightscout right now
I see a basal rate, and that's about it
marafie
@marafie
Apr 18 10:45
does your xdrip app has BG reading ?
Jieseldeep
@Jieseldeep
Apr 18 10:45
yes, that's been fine
marafie
@marafie
Apr 18 10:47
in the uploadin the rest-api in xdrip app
base url
has 2 ?
Jieseldeep
@Jieseldeep
Apr 18 10:48
I did, one was the local ip address assigned by bt tether, or wifi hotspot (can't remeber which one right now, but I was following the openaps docs I think.)
marafie
@marafie
Apr 18 10:48
http://yourhostname.herokuapp.com/api/v1 <==== this is for NS site
Jieseldeep
@Jieseldeep
Apr 18 10:49
in xdrip there is no s after http...let me check
nightscount sync Tab
in cloud update
Jieseldeep
@Jieseldeep
Apr 18 10:50
and nothing has been happening in papertrail now that I thought to check that
yes, that's all correct
and no / after api/v1
marafie
@marafie
Apr 18 10:51
add / after v1
Jieseldeep
@Jieseldeep
Apr 18 10:51
oh, and now that I checked the box for "alert on failures" I get:
Jieseldeep
@Jieseldeep
Apr 18 10:52
well...an error telling me it failed 744 times, though I can't get that screen to come up at the moment
oh, system status tab...
"config error in Nightscout at yourhostname (which I actually typed in).herokuapp.com"
"You must set DEVICESTATUS_ADVANCED env item to True for multiplebattery status to work properly"
marafie
@marafie
Apr 18 10:55
check the config var in heroku.com
Jieseldeep
@Jieseldeep
Apr 18 10:55
and " Rest-API problem" Unable to do Rest ApI Upload: Internal server error url:http://(mysecretapi)@myhotname.herokuapp.com/api/v1
marafie
@marafie
Apr 18 10:56
check in heroko under config var
whats the value of DEVICESTATUS_ADVANCED
Jieseldeep
@Jieseldeep
Apr 18 10:57
I just set it to True
it wasn't there before
I do have the correct secretapi and hostnames entered...
marafie
@marafie
Apr 18 10:58
image.png
Jieseldeep
@Jieseldeep
Apr 18 11:00
is it api/vL or v1 (numeral one)?
I've always typed it, instead of copy/paste, I wonder if it's a letter instead of a number?
just seems odd that after I replaced a failed edison this all starts happening. Is there an edison Mac address I forgot to update somewhere?
or maybe the "access token" I'm seeing in nightscout was lost in the transfer?
Jieseldeep
@Jieseldeep
Apr 18 11:11
Aha! Nightscout's reached 500mb!
compactin and cleaning out MLab...
Jieseldeep
@Jieseldeep
Apr 18 11:24
@marafie Thanks for the help! i've got nightscout and papertrail working for now. I'll see if loop starts back up on its own, or if there' smore to figure out tomorrow.
marafie
@marafie
Apr 18 11:25
what was the error ?
Jon Cluck
@cluckj
Apr 18 12:51
@marafie run global-install again, that's an intermittent error
if you want, you can update npm to the latest version (which should get rid of that): sudo npm install npm@latest
marafie
@marafie
Apr 18 12:52
will try it in few hours
thanks
Jon Cluck
@cluckj
Apr 18 13:04
:thumbsup:
I'll be afk for most of the day, but other folks can help if you run into any more trouble :)
marafie
@marafie
Apr 18 15:34
Got an error related to npm
marafie
@marafie
Apr 18 15:44
root@raspberrypi:/home/pi# sudo npm install npm@latest npm WARN saveError ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
  • npm@6.9.0
    updated 1 package and audited 12096 packages in 202.262s
    found 4 high severity vulnerabilities
    run npm audit fix to fix them, or npm audit for details
    root@raspberrypi:/home/pi#

root@raspberrypi:~/src/oref0# npm run global-install

oref0@0.7.0-dev global-install /root/src/oref0
npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm WARN checkPermissions Missing write access to /root/src/oref0/node_modules/oref0
npm ERR! path /root/src/oref0/node_modules/oref0
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-18T15_42_32_305Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 254
npm ERR! oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! Exit status 254
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-18T15_42_32_481Z-debug.log
root@raspberrypi:~/src/oref0#

The log file contains
root@raspberrypi:~/src/oref0# cat /root/.npm/_logs/2019-04-18T15_42_32_481Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/local/bin/npm', 'run', 'global-install' ]
2 info using npm@6.9.0
3 info using node@v8.11.1
4 verbose run-script [ 'preglobal-install', 'global-install', 'postglobal-install' ]
5 info lifecycle oref0@0.7.0-dev~preglobal-install: oref0@0.7.0-dev
6 info lifecycle oref0@0.7.0-dev~global-install: oref0@0.7.0-dev
7 verbose lifecycle oref0@0.7.0-dev~global-install: unsafe-perm in lifecycle true
8 verbose lifecycle oref0@0.7.0-dev~global-install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/root/src/oref0/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
9 verbose lifecycle oref0@0.7.0-dev~global-install: CWD: /root/src/oref0
10 silly lifecycle oref0@0.7.0-dev~global-install: Args: [ '-c',
10 silly lifecycle 'npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g' ]
11 silly lifecycle oref0@0.7.0-dev~global-install: Returned: code: 254 signal: null
12 info lifecycle oref0@0.7.0-dev~global-install: Failed to exec global-install script
13 verbose stack Error: oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
13 verbose stack Exit status 254
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid oref0@0.7.0-dev
15 verbose cwd /root/src/oref0
16 verbose Linux 4.14.98+
17 verbose argv "/usr/bin/node" "/usr/local/bin/npm" "run" "global-install"
18 verbose node v8.11.1
19 verbose npm v6.9.0
20 error code ELIFECYCLE
21 error errno 254
22 error oref0@0.7.0-dev global-install: npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
22 error Exit status 254
23 error Failed at the oref0@0.7.0-dev global-install script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 254, true ]
root@raspberrypi:~/src/oref0#
Scott Leibrand
@scottleibrand
Apr 18 16:46
on the first command, try installing it globally instead: sudo npm install -g npm@latest
Bernhard Klein
@Volberger
Apr 18 16:48
Hi! Is there a Watchface for the Pebble 301, to connect to myopenaps / my NightScout-Url? I've tried the internet links in the read the docs, these are all down, probably due to the sale of Pebble to FitBit. Greetings
Dana Lewis
@danamlewis
Apr 18 16:52
I recommend using Urchin. Make sure you have signed up with Rebble to keep your Pebble operating if you haven’t already
Scott Leibrand
@scottleibrand
Apr 18 16:55
@marafie on the second, the error ENOENT: no such file or directory, access '/root/src/oref0/node_modules/oref0' is a bit odd, but if you can't fix it any other way, you can try removing /root/src/oref0/ and re-cloning it from github.
marafie
@marafie
Apr 18 17:16
@scottleibrand will try it installing globally
How can I clone it?
Link please for it
Scott Leibrand
@scottleibrand
Apr 18 17:23
mkdir -p ~/src; cd ~/src && rm -rf oref0 && git clone git://github.com/openaps/oref0.git
marafie
@marafie
Apr 18 17:41
Thanks
Peter Kok
@kretep
Apr 18 19:09
Hi, I tried updating my Pi Zero + Explorer HAT to the latest dev version as described in the documentation, but after failing that, tried to go back to the original version that I had been using for almost a year, of which I made a backup image. But now I'm getting nothing but preflight fails and the LEDs are not blinking as I was used to. What could be wrong?
Jon Cluck
@cluckj
Apr 18 19:11
reflashing and reinstalling may be faster than troubleshooting, if you don't have a backup rig
Dana Lewis
@danamlewis
Apr 18 19:11
What were the errors for your dev install attempt?
Peter Kok
@kretep
Apr 18 19:14
@danamlewis for the dev update I got all kinds of errors regarding the npm version not being new enough. After installing npm and node manually, I got errors about openaps-menu not being up-to-date, tried to update that and thought I got things running, but I gave up and wanted to get back to my working version
@cluckj what exactly do you mean by reflashing and reinstalling? Is it not enough to simply write the backup image to the SD-card?
Jon Cluck
@cluckj
Apr 18 19:16
starting from scratch with a bare raspbian image
Bernhard Klein
@Volberger
Apr 18 19:26
OMG, I can not get on my rig with SSH anymore - and it's my own fault. So far, I have only used OpenAPS at home with my WLAN. In order to be able to operate the rig outside, in the garden, at the neighbor, in the supermarket, in the city and so on, I have added my mobile router in the wpa_supplicant.conf (SSID and WLAN key). Nothing works now. The terminal responds with host unknown and serves a time out. Is there salvation or do I have to start all over again? greetings
Jon Cluck
@cluckj
Apr 18 19:27
@Volberger if you go into the "wifi" menu on the hat, you can check its current ip address and use that instead of the hostname
Bernhard Klein
@Volberger
Apr 18 19:30
I wrote the ip adress down on paper this morning. Waht habe ich to run? pi@192.168.178. xx?
Sorry: What haveI to run ? pi@192.168.178. xx?
Jon Cluck
@cluckj
Apr 18 19:31
yes
Bernhard Klein
@Volberger
Apr 18 19:32
connect to host 192.168.178.50 port 22: Connection timed out
Jon Cluck
@cluckj
Apr 18 19:33
are your rig and phone/computer on the mobile router?
Bernhard Klein
@Volberger
Apr 18 19:35
My Notebook is on the mobile router, if the rig is on my WLAN or on my mobile Router - I do not know it. I set the higher priority to the WLAN. But both give me the timeout Error
Peter Kok
@kretep
Apr 18 19:37
@cluckj when I reverted to the same backup image yesterday, it worked without problems. Could it be a hardware issue? The transmitter(?) LEDs, D3 and D4 are constantly on...
Jon Cluck
@cluckj
Apr 18 19:39
@Volberger they could be on different networks, is the IP of your laptop similarly 192.168.178.xx?
@kretep that does sound hardware related, did you switch from dev to master when you reflashed your SD card?
Scott Leibrand
@scottleibrand
Apr 18 19:41
if you screwed up your wpa_supplicant.conf, you can write a new one directly to the SD card
Peter Kok
@kretep
Apr 18 19:52
@cluckj no, when I tried to upgrade I changed from 0.7.0-dev to dev, without reflashing
Bernhard Klein
@Volberger
Apr 18 20:01

@cluckj Under "unused connections" I found this in my wireless router (FritzBox router).
pancreas
WIRELESS INTERNET ACCESS
192.168.178.49 (maybe an experiment from some days ago)

Raspberry Pi
WIRELESS INTERNET ACCESS
192.168.178.50

Then I turned off the mobile router, restarted the rig and connected the notebook to my Wi-Fi network. And then run these commands

C: \ Users \ Petra> ssh pancreas@192.168.178.49
ssh: connect to host 192.168.178.49 port 22: Connection timed out

PS C: \ Users \ Petra> ssh raspberrypi@192.168.178.50
ssh: connect to host 192.168.178.50 port 22: Connection timed out
PS C: \ Users \ Petra>

Jon Cluck
@cluckj
Apr 18 20:05
what's the ip of your computer? I think ipconfig /all will tell you on windows
Bernhard Klein
@Volberger
Apr 18 20:13
192.168.178.23 (I found it in my router)
Do you need the output of ipconfig /all ???
@cluckj Scott suggests, if that was addressed to me, to write a WPA_Supplicant.conf directly on the SD, but how? The sd card has two partitions, D :, the boot partition and F: which can not be read by Windows (rather, Windows constantly wants to format F:). In the D: boot is nothing to see of a WPA supplicant.
Jon Cluck
@cluckj
Apr 18 20:27
yeah, you can make a new wpa_supplicant.conf and place it on the boot drive, raspbian will automatically use it
you may want to try that, but limit it to one network
Bernhard Klein
@Volberger
Apr 18 20:33
OK, I copy the original WPA_Sup... to D: and tell you, what will happen
Natalia S.
@Propelld
Apr 18 20:49
@cluckj I've been having issues reconnecting to wifi on networks other than my home
So I'm also interested in troubleshooting that.
I had a completely functional loop that became inaccessible after I left the house :/
Jon Cluck
@cluckj
Apr 18 20:50
:\
can you bluetooth tether?
marafie
@marafie
Apr 18 21:06
@scottleibrand after getting a clone of oref0 what should I do?
Global install ?
Bernhard Klein
@Volberger
Apr 18 21:19
@cluckj @scottleibrand Hey, that looks good, very good even, I'm back, we're back. Ssh works and I can start the pump-log. SUPER. Since I know the secret recipe now, I could start experimenting vigorously with the WPA supplicant. But what went wrong? This is the WPA_Supplicant.conf with two networks

country=DE
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev

to delete#update_config=1

ap_scan=1
network={
scan_ssid=1
ssid="FritzBoxx-XXXYYYZZZ”"
psk="1234567890"
key_mgmt=WPA-PSK
priority = 5
}
network={
ssid="my-mobile-Router"
psk="1234567890"
priority = 4
}

I got this back, very fine no bolus needed. Settings less than 15 minutes old. grep: enact/bolused.json: No such file or directory
Your instance of oref0 [0.7.0-dev, dev] is up-to-date.
Completed oref0-pump-loop at Thu 18 Apr 23:20:45 CEST 2019
"HAT Display Updated"
Natalia S.
@Propelld
Apr 18 21:42
@cluckj have not been able to
Scott Leibrand
@scottleibrand
Apr 18 22:29
@marafie yes, start with that, and then try to do whatever you were trying before