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

5th
Mar 2019
jaylagorio
@jaylagorio
Mar 05 00:26
^^
Scott Leibrand
@scottleibrand
Mar 05 00:34
the "real" parameters as I see them are: ISF (mg/dL/U), CSF (mg/dL/g, aka 1/100 L), and basal glucose production (mg/dL/hour). CR and basal insulin needs, while easier to measure, are actually ratios of the two more fundamental units. In that framework, ISF should be the only one that varies much from day, and basal insulin needs and CR would automatically adjust (by definition) when ISF changes. In the more familiar world where we represent ISF, CR, and basal insulin because they're easiest to observe, sensitivityRatio does the job of adjusting ISF and basal insulin requirements together as sensitivity changes.
Scott Leibrand
@scottleibrand
Mar 05 00:41
(incidentally, I suspect that the 1/volume units of CSF point to something fundamental: it likely represents something like "total fluid volume of your body" or similar, and therefore likely correlates well with body mass)
if someone wanted an "easy" research project, they could collect or calculate ISF and CR from people's donated data, calculate CSF from those, combine that with survey results on body mass or age, and see what the linear regression looks like (or if there's a non-linear relationship)
Tom Boudreau
@tomasboudr
Mar 05 00:54
my putty is slowly seeming to type "~"s which is ruining npm run global-install
just got my pi hat and I'm trying to do the setup
any ideas?
going to click away and see if that input being directed elsewhere helps
Dana Lewis
@danamlewis
Mar 05 00:58
@tomasboudr dev is bonked right now regardless, so I would hold off until it's fixed on a new rig if your others are in decent shape
PieterGit
@PieterGit
Mar 05 01:02
@jansche about https://gitter.im/nightscout/intend-to-bolus?at=5c7d8f632ca5ec547478ae1a . I notice you use an ancient version of npm. I'm running openaps/oref0#1176 and have
# npm --version
6.4.1
# node --version
v8.15.1
Tom Boudreau
@tomasboudr
Mar 05 03:34
@danamlewis I am sorting that out...
getting an error when it runs nightscout autoconfigure and it returns a syntax errro
this was just an exrta rig to try out the pi hat and give my house more coverage
so I'm good. Thanks for letting me know @danamlewis
Dylan Leonard
@dylanleonard
Mar 05 03:38
Hey all looking for a little help with intial rig setup.
During step 1-3 here https://openaps.readthedocs.io/en/latest/docs/Resources/Edison-Flashing/PC-flash.html#flash-the-edison I run flashall.bat and then reboot in the putty terminal but it proceeds to just reboot into yocto without attempting to flash Jubilinux. This is on a fresh Edison but I was experiencing the same issue on a rig I purchased secondhand that I was trying to reflash. Any help would be appreciated
Scott Leibrand
@scottleibrand
Mar 05 03:40
check that you have two known-good data-capable microUSB cables plugged into both ports, and try swapping them
Dylan Leonard
@dylanleonard
Mar 05 03:48
Thanks for the quick response. I just swapped them and was able to start a serial session with them in their new positions but no dice again
Time to dig around for cables that I can be more certain are data cables
Dylan Leonard
@dylanleonard
Mar 05 04:14
Here's the output from the rig in case it helps diagnose https://hastebin.com/evuvehedox.cs
Jon Cluck
@cluckj
Mar 05 04:15
what's up with dev?
Dana Lewis
@danamlewis
Mar 05 04:16
@cluckj trance was debugging earlier but no one has gone all the way down to the right turtle yet
Scott Leibrand
@scottleibrand
Mar 05 04:16
some people are having trouble with npm run global-install after some recently merged commits
I haven't tried to repro yet, and the folks that have are still working on reverting until they find the offending commit
originally I assumed it was the webpack commit and reverted that, but that didn't fix it.
Jon Cluck
@cluckj
Mar 05 04:19
:thumbsup:
I'm out of grading jail now, I'll take a look
Scott Leibrand
@scottleibrand
Mar 05 04:19
thx
Dylan Leonard
@dylanleonard
Mar 05 04:21
Turns out it was ports, not the cables ¯\(ツ)
Scott Leibrand
@scottleibrand
Mar 05 04:22
what was wrong with them?
Dylan Leonard
@dylanleonard
Mar 05 04:23
Not sure, but the ones in the front of the case were giving the aforementioned error and the ones directly on the mobo are working
It never ceases to amaze me how often "did you unplug it and plug it back in again" is actually useful advice
Jon Cluck
@cluckj
Mar 05 04:33
the breaking seems to be confined to just pi rigs?
Dana Lewis
@danamlewis
Mar 05 04:33
@cluckj I believe so
@dylanleonard yup. And power down/back on too.
Martin Haeberli
@mhaeberli
Mar 05 04:35
@danamlewis I don’t know what breaking is being referenced, but as a reminder, latest dev as of this AM would not install on an Explorer rig. I hope to regress tonight and let y’all know via Gitter at what revert it starts working again.
Jon Cluck
@cluckj
Mar 05 04:35
@mhaeberli the one from a few days ago that @TranceCake was helping to debug
Martin Haeberli
@mhaeberli
Mar 05 04:38
ok thx
Jon Cluck
@cluckj
Mar 05 04:38
looks like there's a couple of em :)
okay, found one
 openaps device show ns --json | \
    jq '.extra.args |= sub(" NIGHTSCOUT_HOST " ; " '$NIGHTSCOUT_HOST' ")' \
    jq '.extra.args |= sub(" API_SECRET " ; " '$API_SECRET' ")' \
    | openaps import
Jon Cluck
@cluckj
Mar 05 04:49
that's trying to call the file jq with jq, the third line shouldn't have jq in it
Scott Leibrand
@scottleibrand
Mar 05 05:05
or should there be a | at the end of line 2 before the \?
the diff was:
-  openaps device show ns --json | json \
-    -e "this.extra.args = this.extra.args.replace(' NIGHTSCOUT_HOST ', ' $NIGHTSCOUT_HOST ')" \
-    -e "this.extra.args = this.extra.args.replace(' API_SECRET', ' $API_SECRET')" \
+  openaps device show ns --json | \
+    jq '.extra.args |= sub(" NIGHTSCOUT_HOST " ; " '$NIGHTSCOUT_HOST' ")' \
+    jq '.extra.args |= sub(" API_SECRET " ; " '$API_SECRET' ")' \
Jon Cluck
@cluckj
Mar 05 05:07
a | should fix it
Scott Leibrand
@scottleibrand
Mar 05 05:07
not sure jq can take multiple commands like json can take multiple -e arguments, so maybe better to just pipeline it
you found others as well?
Jon Cluck
@cluckj
Mar 05 05:12
yeah, it can only do one at a time, so a | between the two jqs works :)
I meant there are a couple bugs, I think the cb() not called is pi-specific & intermittent?
Jon Cluck
@cluckj
Mar 05 05:20
I was looking into that, and there's an issue with npm hitting a number-of-files-open limit when there are a lot of dependencies to install
adding webpack to the dependencies may have increased the # of files open, increasing the chance of that error happening by a lot
root@zerOpenAPS:~/myopenaps# ulimit -n
1024
Scott Leibrand
@scottleibrand
Mar 05 05:22
# ulimit -n
65536
Jon Cluck
@cluckj
Mar 05 05:23
is that the same on an edison rig? (I don't have one running right now)
lol
okay
Scott Leibrand
@scottleibrand
Mar 05 05:23
so no, edison is way higher
scottleibrand @scottleibrand looks up how to raise that
Jon Cluck
@cluckj
Mar 05 05:24
ulimit -n XXXXX
unfortunately unlimited doesn't work :laughing:
maybe 2048 is enough?
Scott Leibrand
@scottleibrand
Mar 05 05:25
why not just do 64k?
if it works on the Edison...
Jon Cluck
@cluckj
Mar 05 05:25
lol
cluckj @cluckj 's pi vaporizes
Scott Leibrand
@scottleibrand
Mar 05 05:26
a little magic smoke never hurt anyone
Jon Cluck
@cluckj
Mar 05 05:39
:laughing:
I can't get the cb() error to happen with enough regularity to test that
Scott Leibrand
@scottleibrand
Mar 05 05:44
can you get ulimit -n to show 64k? is that doable at run time, or does it need a reboot?
my Pi rig is put away right now
if there's a command to raise that limit at run time, let's just do it in the setup script and merge that to dev: it can't help, and folks affected can test
boc-the-git
@boc-the-git
Mar 05 05:46
root@Liverbird:~# ulimit -n
1024
root@Liverbird:~# ulimit -n 65536
root@Liverbird:~# ulimit -n
65536
root@Liverbird:~#
Scott Leibrand
@scottleibrand
Mar 05 05:46
cool
and what is needed to get that to survive a reboot?
boc-the-git
@boc-the-git
Mar 05 05:47
that I don't know.. let me try a reboot
it didn't survive the reboot
Jon Cluck
@cluckj
Mar 05 05:48
/etc/security/limits.conf?
Scott Leibrand
@scottleibrand
Mar 05 05:49
let's add both the ulimit -n 65536 and whatever command is needed to fix it post-reboot at/around https://github.com/openaps/oref0/blob/dev/bin/oref0-setup.sh#L649
also, if anyone experiencing the issue wants to try this fix before we merge it, you should be able to just ulimit -n 65536 and then npm run global-install and/or run oref0-setup
boc-the-git
@boc-the-git
Mar 05 05:52
Never hit it myself (that I recall). Gotta run now unfortunately - good luck!
Scott Leibrand
@scottleibrand
Mar 05 05:52
thx for the assist
Jon Cluck
@cluckj
Mar 05 05:53
yep, thanks :)
boc-the-git
@boc-the-git
Mar 05 05:53
No probs!
Jon Cluck
@cluckj
Mar 05 06:29
nah, the ulimit thing isn't it :unamused:
I'll do some more troubleshooting in the morning
TranceCake
@TranceCake
Mar 05 07:06
I just ran a quick test of npm run global-install with ulimit on the commit with webpack and I seem to be getting the same error as before. No time to test further, will do tonight
Martin Haeberli
@mhaeberli
Mar 05 07:07
@scottleibrand - reverted dev back and through 5cb8f9227bf175da183794d70027adc372e46827 , then Edison Explorer install worked - also I updated issue #1219 to note this fact. Happy to help by doing regression against proposed fix.
and thanks @cluckj and @scottleibrand - looks like your notes above are promising
TranceCake
@TranceCake
Mar 05 08:16
I have a question: Does the A52 rewind error happen when the rig sends a SMB command while in the normal bolus/wizard menu or when it is bolussing already?
TranceCake
@TranceCake
Mar 05 09:08
Also, has anyone tried contacting papertrail to see if they could strike a deal with them? I saw on their plan page that they are willing to work with individual unique cases such as non-profits. Although it would probably have to be everyone individually..
viq
@viq
Mar 05 09:19
Stargazer32584
@Stargazer32584
Mar 05 10:08
Hi everyone ! Last days, i tried
to fix some errors in the OpenAPS System. Now, we use a Raspberry Pi Zero with HAT.
Stargazer32584
@Stargazer32584
Mar 05 10:14
But we have only two errors on the screen. I make some file, the insulin_sensivities.json, because, there was only a insulin_sensivities_raw.json. So, make new empty file. But...how can i fix these two json-file problems ? Here is the link to the screenshot:
Thanks a lot...
viq
@viq
Mar 05 10:33
I know it's not necessarily relevant to many people, but may be to some - I'll be talking about "all this stuff" if anyone wants to come over https://blog.hackerspace.pl/2019/03/05/a-cyborgs-journey-automating-my-diabetes-19-03/
TranceCake
@TranceCake
Mar 05 10:34
also, which type of smb would you recommend to start with? smb_with_cob / smb_after_meal / enable_smb_always ?
@viq will it be in polish or english?
viq
@viq
Mar 05 10:35
@TranceCake most likely Polish, since it's targetted at local audience
TranceCake
@TranceCake
Mar 05 10:36
then I won't understand much :) I got asked to do a talk about it at work too!
viq
@viq
Mar 05 10:37
Thus "it's not necessarily relevant to many people" ;)
philipgo
@philipgo
Mar 05 10:37
@TranceCake I would start with enableSMB_with_COB and maybe enableSMB_after_carbs and gradually reduce your manual bolus and let SMB handle the rest.
viq
@viq
Mar 05 10:37
And this is just me "hey, I did a thing, let's see if anyone will be interested" ;)
TranceCake
@TranceCake
Mar 05 10:40
@philipgo thx!
viq
@viq
Mar 05 10:43
I also went to a monitoring conference soon after I started playing with CGMs, so https://vimeo.com/289892952#t=16m57s happened ;)
Teamhrach
@Teamhrach
Mar 05 11:41
Hi, I wish to test out rig on a back-up Medtronic 715 pump. Rather than go through the set up process, I edited the pump serial number in the 'edit-runagain' file. This hasn't worked out. Is there a reason why?
TranceCake
@TranceCake
Mar 05 11:56
iirc there are additional steps in the docs
based on what I read here you would have to manually edit 3 files at the least if you change and edit them again if you change back
TranceCake
@TranceCake
Mar 05 12:02
do you have an edison or a raspberry pi?
viq
@viq
Mar 05 12:03
Another "remote logging" alternative with free tier: https://humio.com/pricing/
TranceCake
@TranceCake
Mar 05 13:06
@danamlewis I just learned on the discord that the libre has no noise reading so it is unsafe to have smb's always on. this also applies to me since I have a libre. We talked a little about that and I think it is not impossible to implement our own noise detection system. Have there been talks about this before? If there are more people that would be interested in this feature and it is deemed feasible by the devs I would be open to help implement it.
Teamhrach
@Teamhrach
Mar 05 13:52
@TranceCake @TranceCake I have a Pi and a 715 pump (not the 712 per https://openaps.readthedocs.io/en/latest/docs/Build%20Your%20Rig/x12-users.html)
TranceCake
@TranceCake
Mar 05 13:56
ooh, my bad!
well if you have a pi you could flash a new sd card? that might be quicker than figuring out what's wrong
Jon Cluck
@cluckj
Mar 05 14:08
hopefully the x12 won't need that setup stuff very soon :)
TranceCake
@TranceCake
Mar 05 14:38
oh cool
Scott Leibrand
@scottleibrand
Mar 05 14:42
@TranceCake the A52 error only occurs if you have the Bolus Wizard menu open. Once a bolus begins (of any kind) you’re safe.
TranceCake
@TranceCake
Mar 05 14:53
okay good
TranceCake
@TranceCake
Mar 05 15:06
so my autosens ratio has been at 1.2 for the entire last 3 days, should I look into that or is it normal?
the max is 1.2 as well, I am not ill nor am I exercising more/less than normal
Scott Leibrand
@scottleibrand
Mar 05 15:39
What does autotune say?
Teamhrach
@Teamhrach
Mar 05 15:44
@TranceCake Yes but flashing a new card takes a long time - I was hoping to avoid this by just accessing the file that contains that pump serial number ('oref0-runagain.sh' ) and changing the digits. Do you (or anyone else) know if it should be possible to change the pump that is being 'looped' by just changing serial number in the 'oref0-runagain.sh' file?
Dana Lewis
@danamlewis
Mar 05 15:47
@Teamhrach you have to change it save it and then run the runagain script
@cluckj can you help eyeball @Stargazer32584 ‘s x12 files compared to the x12 you’ve been testing with?
Igone Porto
@igoneporto_twitter
Mar 05 15:49
Sorry to disturb. Yesterday in facebook i added a photo of a problem i am having when trying to settle my rig with pi hat. @danamlewis told me it was being discused here in gitter. But i am not sure if its specifically here. we have tried different networks and different computers, but the error is the same.
I think the error comes just after "nightscout autoconfigure-device-crud https://xxxxxx.herokuapp.com yyyyyy" and it ends with "ValueError: No JSON object could be decoded. Could not run nightscout autoconfigure-device-crud"
Dana Lewis
@danamlewis
Mar 05 15:53
@igoneporto_twitter it’s still being investigated here - no resolved yet
Igone Porto
@igoneporto_twitter
Mar 05 15:54
Thanks @danamlewis i was not sure if this was the correct place to ask.
Dana Lewis
@danamlewis
Mar 05 15:54
@TranceCake I think you’d get people interested in it, although I’ve not seen any discussion about it to date. Can’t really comment about potential feasibility without knowing anything about it, but certainly curious to hear more about the idea
@igoneporto_twitter :+1:
Jeremy Cunningham
@jpcunningh
Mar 05 15:55
@igoneporto_twitter, you may try updating your dev branch and try again. we may have fixed it this morning, but we’re looking for someone who can verify the update worked.
Igone Porto
@igoneporto_twitter
Mar 05 15:56
@jpcunningh once i get home i will try again. 3 hours and a half more or less.
Jeremy Cunningham
@jpcunningh
Mar 05 15:58
Great! Please let us know how it goes.
Igone Porto
@igoneporto_twitter
Mar 05 15:58
Of course i will do. thanks @jpcunningh
Riko L
@Ricco555
Mar 05 16:06
@jpcunningh Since I have to reinstall openaps I may try the new commit. what would be the correct way: raising ulimit first before going with the rest?
TranceCake
@TranceCake
Mar 05 16:06
I am home and able to try
Dana Lewis
@danamlewis
Mar 05 16:06
@jpcunningh I thought the ulimit didn’t fully fix it for everyone? Didn’t work for trance?
@Ricco555 would be to good to confirm if you can either way.
TranceCake
@TranceCake
Mar 05 16:09
no it did not but they committed another fix
Jeremy Cunningham
@jpcunningh
Mar 05 16:15
Yeah, @cluckj found the ulimit did not always work.
The fix that went into dev this morning was a syntax error right after the nightscout autoconfigure-device-crud call.
@Ricco555 , yes, to test the ulimit, change it first before going through the install instructions. It doesn’t persist over reboots, so if you reboot during the process, you’ll need to change it again.
TranceCake
@TranceCake
Mar 05 16:19
just tested it twice and no dice :(
Dana Lewis
@danamlewis
Mar 05 16:19
@jpcunningh ah thx :smile: I see it now
@TranceCake did you do a fresh pull first?
TranceCake
@TranceCake
Mar 05 16:20
yeah git pull, I saw the changes to the script
Jeremy Cunningham
@jpcunningh
Mar 05 16:20
Can you post the error?
TranceCake
@TranceCake
Mar 05 16:21
the second time i also deleted the current oref0 file in usr/local/bin
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:120:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/src/oref0/npm-debug.log
npm ERR! not ok code 0

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 1
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! You can get their info via:
npm ERR!     npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
cat /usr/share/doc/nodejs/README.Debian
nodejs for Debian
=================

packaged modules
----------------

The global search path for modules is
/usr/lib/nodejs

Future packages of node modules will use that directory,
so it should be used wisely.


user modules
------------

Node looks for modules in ./node_modules directory first;
please read node#modules documentation carefully for more information.

Node does not look for modules in /usr/local/lib/node_modules,
where npm put them.
Please read npm-link(1) of npm package, to understand how to properly
use npm-installed modules in a project.

Note that require.paths is not supported in future node versions.
See also node(1) for more information about NODE_PATH.
it tells you to look there beneath the error I posted above
Riko L
@Ricco555
Mar 05 16:27

first attempt I got:

npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/nightscout/share2nightscout-bridge.git
npm ERR! 
npm ERR! fatal: Could not change back to '/root/src/oref0': Permission denied
npm ERR! 
npm ERR! exited with error code: 128

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-03-05T16_16_48_542Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
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 1
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 WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-03-05T16_16_48_835Z-debug.log

now trying second time

btw.. i am running as root
Jeremy Cunningham
@jpcunningh
Mar 05 16:32
When I run into issues like that, I try running each command individually that npm run global-install runs:
npm install, npm link, npm link oref0, and npm install -g
In that order...
Riko L
@Ricco555
Mar 05 16:44
ok.. found the error "cwd command not found" :)
TranceCake
@TranceCake
Mar 05 16:44

it fails at npm install with:

npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:120:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/src/oref0/npm-debug.log
npm ERR! not ok code 0

cat npm-debug.log reveals 5000+ entries but the last few lines are interesting:

5100 silly lockFile b3928dbc-watchpack-1-5-0 watchpack@^1.5.0
5101 silly lockFile b3928dbc-watchpack-1-5-0 watchpack@^1.5.0
5102 silly lockFile b28cc3f3-webpack-sources-1-3-0 webpack-sources@^1.3.0
5103 silly lockFile b28cc3f3-webpack-sources-1-3-0 webpack-sources@^1.3.0
5104 silly lockFile e8b44e56-terser-webpack-plugin-1-1-0 terser-webpack-plugin@^1.1.0
5105 silly lockFile e8b44e56-terser-webpack-plugin-1-1-0 terser-webpack-plugin@^1.1.0
5106 error Error: Method Not Allowed
5106 error     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
5106 error     at /usr/share/npm/lib/cache/add-named.js:120:12
5106 error     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
5106 error     at FSReqWrap.oncomplete (fs.js:135:15)
5107 error If you need help, you may report this *entire* log,
5107 error including the npm and node versions, at:
5107 error     <http://github.com/npm/npm/issues>
5108 error System Linux 4.14.98+
5109 error command "/usr/bin/node" "/usr/bin/npm" "install"
5110 error cwd /root/src/oref0
5111 error node -v v8.11.1
5112 error npm -v 1.4.21
5113 error code E405
5114 verbose exit [ 1, true ]

which seems to indicate that webpack is back, which was causing issues for me earlier too

it would be interesting to run it with the changes from earlier today but without webpack
since the change from today is only one character in a single file I think I can revert to the commit before webpack and add the change manually, let's see what that does
Jeremy Cunningham
@jpcunningh
Mar 05 16:47
:+1:
Martin Haeberli
@mhaeberli
Mar 05 16:50
closed issue #1219 - thx @cluckj @scottleibrand !
TranceCake
@TranceCake
Mar 05 17:39
this worked!
I reverted back to a commit which did not have the webpack changes and then manually added todays hotfix. So in the end it were 2 separate problems
Jeremy Cunningham
@jpcunningh
Mar 05 17:44
Good news! Thanks for the update!
TranceCake
@TranceCake
Mar 05 17:51
although I'm running the RFM69HCW and it won't run this command: go get -u -v -tags "rfm69 walrus" github.com/ecc1/medtronic/...
it tells me it doesn't know the 'go' command. When I check the default go install location (/usr/local) it's not there either
Jeremy Cunningham
@jpcunningh
Mar 05 17:55
oref0-setup installs go. If I remember correctly, I ran oref0-setup with RFM69 first. Then after it was complete, I went to the go directory and compiled it with the correct options.
TranceCake
@TranceCake
Mar 05 17:57
what was the go directory you went to?
Jeremy Cunningham
@jpcunningh
Mar 05 17:58
/root/go
TranceCake
@TranceCake
Mar 05 18:03
yeah it's there
could it have been added to the script already?
hmm, the things the script does are there
let's hope it works
thanks btw Jeremy!!
Riko L
@Ricco555
Mar 05 18:09
@TranceCake > although I'm running the RFM69HCW and it won't run this command: go get -u -v -tags "rfm69 walrus" github.com/ecc1/medtronic/...
if you cannot run go, try this: $ export PATH="$PATH:/usr/local/go/bin"
TranceCake
@TranceCake
Mar 05 18:10
yeah I tried going to that location but there is no go folder in usr/local
Jeremy Cunningham
@jpcunningh
Mar 05 18:13
Are you on edison or Pi?
I see.. Pi.
cd /tmp && wget -c https://storage.googleapis.com/golang/go1.11.linux-armv6l.tar.gz && tar -C /usr/local -xzvf /tmp/go1.11.linux-armv6l.tar.gz
Will install go...
I pulled the command from oref0-setup
TranceCake
@TranceCake
Mar 05 18:15
ah cool let me try that
Jon Cluck
@cluckj
Mar 05 18:20
yep ^
Dana Lewis
@danamlewis
Mar 05 18:25
Merged something to the docs yesterday to help with that
TranceCake
@TranceCake
Mar 05 18:26
ah cool!
yeah I accidentally used the rerun string I got from the setup the first time and used for debugging everything. But I forgot it doesn't include the build from source thing
@danamlewis I don't know if you read the whole conversation but I managed to get everything working
Jon Cluck
@cluckj
Mar 05 18:29
you need to run interactive setup at least once on a rig to get go installed
TranceCake
@TranceCake
Mar 05 18:30
did the setup again just to be sure
cancelled the manual go install
Dana Lewis
@danamlewis
Mar 05 18:35
@TranceCake yay! Who else needed to test?
TranceCake
@TranceCake
Mar 05 18:35
oof
I think @Ricco555
Dana Lewis
@danamlewis
Mar 05 18:37
And @igoneporto_twitter when she gets home
TranceCake
@TranceCake
Mar 05 18:40
I reverted back to a commit (a2f3713) which did not have the webpack changes and then manually added todays hotfix ( ce1e867 ). So in the end it were 2 separate problems.
this way it ran for me
Scott Leibrand
@scottleibrand
Mar 05 18:45
a2f3713 was the 2nd to last commit, the webpack revert, so that should be the same as running the latest dev. Does git show any diffs between your oref0 and dev?
Jon Cluck
@cluckj
Mar 05 18:46
does webpack need a >v8.x.x node?
Scott Leibrand
@scottleibrand
Mar 05 18:50
Dunno. But I thought we upgrade everyone to 8 now?
Jon Cluck
@cluckj
Mar 05 18:52
yeah
I haven't had npm run global-install bug out with v10 (yet)
TranceCake
@TranceCake
Mar 05 19:03
yeah my edited nightscout.sh
and untracked files:
npm
oref0@0.7.0-dev
Jon Cluck
@cluckj
Mar 05 19:15
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) :eyes:
I haven't been able to get the cb() not called error with v10, even with the webpack commit
TranceCake
@TranceCake
Mar 05 19:18
yeah I think I only got it when the global install failed with the method not allowed error (which I linked to webpack) , then deleting /usr/local/bin/oref0 and then running it again.. Not sure though..
is there a way to search this channel?
I think I can recall if I look it up
Jon Cluck
@cluckj
Mar 05 19:20
the method not allowed error looks like a node version thing, and the cb() not called error is kind of a node version thing
@TranceCake want to upgrade node and see what happens?
TranceCake
@TranceCake
Mar 05 19:21
yeah was having an issue anyway where my loop was looking for the wrong radio device anyeay
Jon Cluck
@cluckj
Mar 05 19:22
this is your backup rig, right?
TranceCake
@TranceCake
Mar 05 19:22
I kinda promised my gf we'd watch a movie in 10 mins though :O
yeah
Jon Cluck
@cluckj
Mar 05 19:22
lol, this can wait; I'm probably gonna run npm run global-install 500 more times
TranceCake
@TranceCake
Mar 05 19:22
:s
are you on a pi0 and with rfm?
maybe downgrading node magically activates the error case?
Jon Cluck
@cluckj
Mar 05 19:24
yes, I have a couple of them
TranceCake
@TranceCake
Mar 05 19:24
I did a clean install by the docs on commit 4ccbd0a
Jon Cluck
@cluckj
Mar 05 19:25
the gigantic thread on the cb() not called error has a few suggestions for fixes, changing the ulimit -n was one; upgrading node is another
TranceCake
@TranceCake
Mar 05 19:25
ah interesting
TranceCake
@TranceCake
Mar 05 19:27
good catch
whelp, gotta go now, good luck everyone!
Jon Cluck
@cluckj
Mar 05 19:35
have fun!
Raymond Richmond
@PedanticAvenger
Mar 05 19:38
Thanks @viq for the humio link. Looks like I might actually be able to fit into their free tier.
viq
@viq
Mar 05 19:41
@PedanticAvenger I believe for logz.io as well
Raymond Richmond
@PedanticAvenger
Mar 05 20:42
Anyone have a rsyslog config to handle the openaps logs? I'm down a couple fingers today (injection) and working through it by hand is getting painful. ;)
Igone Porto
@igoneporto_twitter
Mar 05 20:45
Sorry to be late but apparently it is compiling so these days error seems to be solved. Will tell u once it finnishes. @danamlewis @jpcunningh
Dana Lewis
@danamlewis
Mar 05 21:07
great, please do let us know for sure. sorry for the delay @igoneporto_twitter
Riko L
@Ricco555
Mar 05 21:07
sorry folks.. I did something idiotic and locked myself out of pi. the pi is acctualy at my niece some 20km away, and while rebooting I forgot to turn on autossh .. so had to make a house call for enabling it back on
Igone Porto
@igoneporto_twitter
Mar 05 21:12
No. Sorry for my delay. It Works.
Dana Lewis
@danamlewis
Mar 05 21:14
YAY! thanks for confirming :clap:
(and thanks to @TranceCake @Ricco555 @cluckj @jpcunningh et al and everyone involved in troubleshooting!)
Igone Porto
@igoneporto_twitter
Mar 05 21:19
I admit i am not sure who worked in the resolution but Thanks for everything. I will wait till tomorrow to start but THANKS a lot
Dana Lewis
@danamlewis
Mar 05 21:20
:+1:
Dana Lewis
@danamlewis
Mar 05 21:43
@tomasboudr dev should be good to go for your Pi rig whenever you want to come back to it
Tom Boudreau
@tomasboudr
Mar 05 21:44
perfect... Thanks @danamlewis
Tom Boudreau
@tomasboudr
Mar 05 22:05

'''
npm WARN deprecated crypto@0.0.3: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm ERR! cb() never called!
npm ERR! not ok code 0

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 1
npm ERR!
npm ERR! Failed at the oref0@0.7.0-dev global-install script.
npm ERR! This is most likely a problem with the oref0 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g
npm ERR! You can get their info via:
npm ERR! npm owner ls oref0
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "run" "global-install"
npm ERR! cwd /root/src/oref0
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /root/src/oref0/npm-debug.log
npm ERR! not ok code 0
'''

not sure that formatted correctly, but thats what I see when doing the npm global-install
Jon Cluck
@cluckj
Mar 05 22:09
that's an annoying intermittent error, you can keep running npm run global-install until it works, or see if installing node v10 eliminates it?
Tom Boudreau
@tomasboudr
Mar 05 22:38
I just powered thru and it seemed to be working
do we have a docs page(s) for the pi hat screen menus?
found it... under while you wait for your rig (which is out of order IMO). I will add a reference link
Dana Lewis
@danamlewis
Mar 05 22:42
:+1: