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

27th
Mar 2019
zasteph
@zasteph
Mar 27 02:46 UTC
Hi, can the rig function without access to internet? For example in a plane, or somewhere else with no internet; it that case, if I do tethering to a mobile phone, I should be able to connect to the rig from the mobile and watch the logs (tail -F...), right ? Thank you.
Scott Leibrand
@scottleibrand
Mar 27 03:16 UTC
Yes, search the docs for β€œoffline” looping. You can tether offline with an Android, but iOS will only allow you to establish a personal hotspot if you have Internet.
zasteph
@zasteph
Mar 27 03:38 UTC
@scottleibrand thank you.
Katja Jacob
@straykatz
Mar 27 05:22 UTC
strange ... i keep having this issue as I am trying to reload openaps dev on a new edison.

Ign http://http.debian.net jessie-updates/contrib i386 Packages/DiffIndex
Ign http://http.debian.net jessie-updates/non-free i386 Packages/DiffIndex
Ign http://http.debian.net jessie-backports/main i386 Packages/DiffIndex
Ign http://http.debian.net jessie-updates/contrib Translation-en_IE
Ign http://http.debian.net jessie-updates/contrib Translation-en
Ign http://http.debian.net jessie-updates/main Translation-en_IE
Ign http://http.debian.net jessie-updates/main Translation-en
Ign http://http.debian.net jessie-updates/non-free Translation-en_IE
Ign http://http.debian.net jessie-updates/non-free Translation-en
Ign http://http.debian.net jessie-backports/main Translation-en_IE
Ign http://http.debian.net jessie-backports/main Translation-en
Err http://http.debian.net jessie-updates/main i386 Packages
404 Not Found
Err http://http.debian.net jessie-updates/contrib i386 Packages
404 Not Found
Err http://http.debian.net jessie-updates/non-free i386 Packages
404 Not Found
Err http://http.debian.net jessie-backports/main i386 Packages
404 Not Found
W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/main/binary-i386/Packages 404 Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/contrib/binary-i386/Packages 404 Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-updates/non-free/binary-i386/Packages 404 Not Found

W: Failed to fetch http://http.debian.net/debian/dists/jessie-backports/main/binary-i386/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Error executing command, exiting
Couldn't setup node 8

I went ths route:
flash - load Master - run setup - switch to Dev - rerun setup (from scratch)
Katja Jacob
@straykatz
Mar 27 05:54 UTC
What's going on, or better yet - what can i do to get my backup rig going? Help ?
Scott Leibrand
@scottleibrand
Mar 27 06:01 UTC
Not sure if you might need to reflash it from a Debian Jessie to Stretch version of jubilinux?
viq
@viq
Mar 27 08:06 UTC
Yes, debian removed older releases from mirrors recently
Jon Cluck
@cluckj
Mar 27 11:57 UTC
@straykatz if you are okay reflashing with jubilinux 0.3, that'd be best
Jon Cluck
@cluckj
Mar 27 13:10 UTC
jessie-updates and jessie-backportsare gone :\
Jon Cluck
@cluckj
Mar 27 14:34 UTC
I opened a couple issues in docs and oref0 to figure out what to do
viq
@viq
Mar 27 14:39 UTC
@cluckj on the other hand, they're still available under archive.debian.org
Jon Cluck
@cluckj
Mar 27 14:40 UTC
lol
viq
@viq
Mar 27 14:40 UTC
But yes, moving to debian 9 is the better idea.
Jon Cluck
@cluckj
Mar 27 14:46 UTC
I'm working on making sure stretch installs work, if somebody else has time to look into how to modify jessie rigs to keep them running that'd be great :)
viq
@viq
Mar 27 15:02 UTC
They should be upgradeable, or contents of /etc/apt/sources.list and /etc/apt/sources.list.d/*.list would need to be modified to refer to archive.debian.org
Jon Cluck
@cluckj
Mar 27 15:03 UTC
:thumbsup:
Katja Jacob
@straykatz
Mar 27 15:03 UTC
No problem to reflash with a new jubilinux but then what do I do? πŸ€ͺ
Jon Cluck
@cluckj
Mar 27 15:04 UTC
@straykatz keep using the same instructions :)
viq
@viq
Mar 27 15:07 UTC
I guess "copy /root/myopenaps somewhere, reflash, reinstall, copy it back" should be simple enough to do for people?
Jon Cluck
@cluckj
Mar 27 15:08 UTC
I hope so
viq
@viq
Mar 27 15:10 UTC
And I guess it should preserve all of the state of OpenAPS, right?
Since I don't really know where it keeps it's data.
Jon Cluck
@cluckj
Mar 27 15:10 UTC
haha
it's not really necessary to copy the entire thing, it's fairly stateless except for preferences.json and autotune
viq
@viq
Mar 27 15:11 UTC
So even just /root/myopenaps/settings/ ?
Jon Cluck
@cluckj
Mar 27 15:11 UTC
autotune is generated pretty quickly on a new rig, and preferences need to be customized
/root/myopenaps/autotune/
viq
@viq
Mar 27 15:12 UTC
Well, if you want to continue running on a now supported OS, you don't want to customize preferences again ;)
Right, so tar zcf /tmp/openaps-settings-copy.tar.gz /root/myopenaps/autotune/ /root/myopenaps/settings/, copy that file over (email it to yourself?), reflash, install OpenAPS, copy that file back (how?), tar zxvf /tmp/openaps-settings-copy.tar.gz -C /
Jon Cluck
@cluckj
Mar 27 15:17 UTC
copying preferences.json over blindly is a bad plan since we've added a bunch of new things to it
viq @viq nods
Jon Cluck
@cluckj
Mar 27 15:21 UTC
basically, copy autotune over if you really really want but it won't matter after a couple days :)
Katja Jacob
@straykatz
Mar 27 15:27 UTC
OK, so I'll do that: Reflash with Jubilinux 3.0. Is anyone around in the next hour to help through issues? Is there a way to document this for posterity?
Jon Cluck
@cluckj
Mar 27 15:27 UTC
yes, I'm around and am doing the same thing :)
Katja Jacob
@straykatz
Mar 27 15:27 UTC
OK! cool.
Do you think Loookout will work? (It's secondary)
Jon Cluck
@cluckj
Mar 27 15:28 UTC
the only issues I've encountered are of the "run the same script over again" variety
I'm not sure, but I don't see why it wouldn't
Katja Jacob
@straykatz
Mar 27 15:28 UTC
cool. So I'll get my coffee and go looking for J3.0 /// unless you already have that handy :)
Katja Jacob
@straykatz
Mar 27 15:34 UTC
Thank you!
Jon Cluck
@cluckj
Mar 27 15:38 UTC
🀀
Katja Jacob
@straykatz
Mar 27 15:53 UTC
and here it goes :) - flashing ...
Jon Cluck
@cluckj
Mar 27 15:54 UTC
:thumbsup: good luck
Katja Jacob
@straykatz
Mar 27 15:54 UTC
merci bien. :)
btw - that coffee used to get me all high in all the wrong ways, and wrecked my mornings. I even tried to go without coffee for a while. This has changed since I have been using OpenAPS. thank you!!!
Dana Lewis
@danamlewis
Mar 27 16:01 UTC
@straykatz πŸ˜πŸ’œ
@cluckj continued thanks and πŸ™ŒπŸΌ for being willing to go elbow deep in a lot of areas lately!
Katja Jacob
@straykatz
Mar 27 16:02 UTC
😘
Yes😍😍😍
Jon Cluck
@cluckj
Mar 27 16:05 UTC
glad to help :D
Katja Jacob
@straykatz
Mar 27 16:08 UTC

Linux jubilinux 3.10.98-jubilinux-edison #3 SMP PREEMPT Sun Aug 13 04:22:45 EDT 2017 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@jubilinux:~#
that was the easiest no-fuss flashing experience in a while :

:)
Jon Cluck
@cluckj
Mar 27 16:08 UTC
sweet
Katja Jacob
@straykatz
Mar 27 16:09 UTC
OK - next .... Can I go directly to Dev you think? In the past, I found it more successful if I installed Master first
bootstrap should work?
Jon Cluck
@cluckj
Mar 27 16:11 UTC
I was using the bootstrap from dev
(that giant block of text to copy for the bootstrap, change master to dev in the line down at the bottom)
Katja Jacob
@straykatz
Mar 27 16:14 UTC
Oh ... that is why it did not work ... I did not look closely enough LOL
only one spot where that needs to change. hah!
Katja Jacob
@straykatz
Mar 27 16:25 UTC
after bootstrap it rebooted, asked for a new password, but no "prompting for setup"
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@Tuesday:~# dir
kernel.config
root@Tuesday:~#
try again?
Jon Cluck
@cluckj
Mar 27 16:26 UTC
wget https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh
Katja Jacob
@straykatz
Mar 27 16:26 UTC
ah. good news is: It's on my WIFI :)
<switching to Termius>
and then?
setup?
Jon Cluck
@cluckj
Mar 27 16:29 UTC
bash openaps-install.sh dev
that'll restart the installer with the dev branch
Katja Jacob
@straykatz
Mar 27 16:30 UTC
thanks

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 09:29:48 PDT 2019.
Universal Time is now: Wed Mar 27 16:29:48 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@Tuesday:~#

root@Tuesday:~# dpkg --configure -a
dpkg: dependency problems prevent configuration of vim-tiny:
vim-tiny depends on vim-common (= 2:8.0.0197-4+deb9u1); however:
Version of vim-common on system is 2:8.0.0197-4.

dpkg: error processing package vim-tiny (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of vim:
vim depends on vim-common (= 2:8.0.0197-4+deb9u1); however:
Version of vim-common on system is 2:8.0.0197-4.
vim depends on vim-runtime (= 2:8.0.0197-4+deb9u1); however:
Package vim-runtime is not installed.

dpkg: error processing package vim (--configure):
dependency problems - leaving unconfigured
Setting up ntp (1:4.2.8p10+dfsg-3+deb9u2) ...
Setting up ntpdate (1:4.2.8p10+dfsg-3+deb9u2) ...
Processing triggers for systemd (232-25) ...
Processing triggers for man-db (2.7.6.1-2) ...
Errors were encountered while processing:
vim-tiny
vim

viq
@viq
Mar 27 16:32 UTC
apt install vim-runtime ?
Jon Cluck
@cluckj
Mar 27 16:32 UTC
yep ^
try that, then run the install script again
So much help!! 😻
Jon Cluck
@cluckj
Mar 27 16:34 UTC
:cat: :cat2:
Katja Jacob
@straykatz
Mar 27 16:34 UTC
root@Tuesday:~# apt install vim-runtime
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is to be installed
vim-tiny : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
viq
@viq
Mar 27 16:35 UTC
apt update && apt --fix-broken install then I guess...
Katja Jacob
@straykatz
Mar 27 16:39 UTC
... bash openaps-install.sh dev ...
Jon Cluck
@cluckj
Mar 27 16:39 UTC
yep, try that again
Katja Jacob
@straykatz
Mar 27 16:40 UTC
not successful ...

root@Tuesday:~# bash openaps-install.sh dev
Enter your rig's new hostname (this will be your rig's name in the future, so make sure to write it down): Tuesday

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 09:39:28 PDT 2019.
Universal Time is now: Wed Mar 27 16:39:28 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
vim : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is installed
Depends: vim-runtime (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is installed
vim-tiny : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).

ntp is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
ntpdate is already the newest version (1:4.2.8p10+dfsg-3+deb9u2).
screen is already the newest version (4.5.0-6).
sudo is already the newest version (1.8.19p1-2.1).
vim is already the newest version (2:8.0.0197-4+deb9u1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
python-pip : Depends: python-pip-whl (= 9.0.1-2) but it is not going to be installed
Recommends: python-all-dev (>= 2.6) but it is not going to be installed
Recommends: python-setuptools but it is not going to be installed
Recommends: python-wheel but it is not going to be installed
tcpdump : Depends: libpcap0.8 (>= 1.5.1) but it is not going to be installed
vim : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is to be installed
vim-tiny : Depends: vim-common (= 2:8.0.0197-4+deb9u1) but 2:8.0.0197-4 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@Tuesday:~#
root@Tuesday:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
vim-common vim-runtime
The following packages will be upgraded:
vim-common vim-runtime
2 upgraded, 0 newly installed, 0 to remove and 148 not upgraded.
3 not fully installed or removed.
Need to get 0 B/5566 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
this is different than last time, where it rebooted. I'll continue
Jon Cluck
@cluckj
Mar 27 16:42 UTC
yep, say yes to that
Katja Jacob
@straykatz
Mar 27 16:43 UTC
looks OK
Do you want to continue? [Y/n] Y
(Reading database ... 32582 files and directories currently installed.)
Preparing to unpack .../vim-runtime_2%3a8.0.0197-4+deb9u1_all.deb ...
Unpacking vim-runtime (2:8.0.0197-4+deb9u1) over (2:8.0.0197-4) ...
Preparing to unpack .../vim-common_2%3a8.0.0197-4+deb9u1_all.deb ...
Unpacking vim-common (2:8.0.0197-4+deb9u1) over (2:8.0.0197-4) ...
Processing triggers for mime-support (3.60) ...
Setting up vim-common (2:8.0.0197-4+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up vim-runtime (2:8.0.0197-4+deb9u1) ...
Setting up vim-tiny (2:8.0.0197-4+deb9u1) ...
Setting up vim (2:8.0.0197-4+deb9u1) ...
root@Tuesday:~#
Jon Cluck
@cluckj
Mar 27 16:45 UTC
fingers crossed, try the install again :)
Katja Jacob
@straykatz
Mar 27 16:45 UTC
looking good so far
:)
just rebooted here: Setting up dpkg (1.18.25) ...
(Reading database ... 32581 files and directories currently installed.)
Preparing to unpack .../util-linux_2.29.2-1+deb9u1_i386.deb ...
Unpacking util-linux (2.29.2-1+deb9u1) over (2.29.2-1) ...
Setting up util-linux (2.29.2-1+deb9u1) ...
(Reading database ... 32581 files and directories currently installed.)
Preparing to unpack .../mount_2.29.2-1+deb9u1_i386.deb ...
Unpacking mount (2.29.2-1+deb9u1) over (2.29.2-1) ...
Jon Cluck
@cluckj
Mar 27 16:47 UTC
rebooted without asking?
Katja Jacob
@straykatz
Mar 27 16:47 UTC
yea
back to root
(it just came back, and is sitting at root
root@Tuesday:~# dir
kernel.config openaps-install.sh
root@Tuesday:~#
Jon Cluck
@cluckj
Mar 27 16:48 UTC
maybe it's still in the reboots from flashing? there's nothing in those initial setup scripts that should request a reboot
Katja Jacob
@straykatz
Mar 27 16:49 UTC
It shoud not ... It's been askng for a new name and a new password
I'll try again :)

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 09:50:31 PDT 2019.
Universal Time is now: Wed Mar 27 16:50:31 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release

yea, it's stuck

root@Tuesday:~# dpkg --configure -a
Setting up libquadmath0:i386 (6.3.0-18+deb9u1) ...
Setting up libgomp1:i386 (6.3.0-18+deb9u1) ...
Setting up libatomic1:i386 (6.3.0-18+deb9u1) ...
Setting up libcc1-0:i386 (6.3.0-18+deb9u1) ...
Setting up libasan3:i386 (6.3.0-18+deb9u1) ...
Processing triggers for mime-support (3.60) ...
Setting up libcilkrts5:i386 (6.3.0-18+deb9u1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b2) ...
Setting up libubsan0:i386 (6.3.0-18+deb9u1) ...
Setting up linux-libc-dev:i386 (4.9.144-3.1) ...
Setting up libmpx2:i386 (6.3.0-18+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
dpkg: dependency problems prevent processing triggers for systemd:
systemd depends on mount (>= 2.26); however:
Package mount is not installed.

dpkg: error processing package systemd (--configure):
dependency problems - leaving triggers unprocessed
Processing triggers for man-db (2.7.6.1-2) ...
Setting up cpp-6 (6.3.0-18+deb9u1) ...
Setting up libc-dev-bin (2.24-11+deb9u4) ...
Setting up libc6-dev:i386 (2.24-11+deb9u4) ...
Setting up cron (3.0pl1-128+deb9u1) ...
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
Setting up libitm1:i386 (6.3.0-18+deb9u1) ...
Setting up libgcc-6-dev:i386 (6.3.0-18+deb9u1) ...
Setting up libstdc++-6-dev:i386 (6.3.0-18+deb9u1) ...
Setting up gcc-6 (6.3.0-18+deb9u1) ...
Setting up g++-6 (6.3.0-18+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
systemd
root@Tuesday:~#

Jon Cluck
@cluckj
Mar 27 16:52 UTC
yeah...what is going on with that? can you run apt-get update and when that finishes, apt-get upgrade?
viq
@viq
Mar 27 16:53 UTC
I generally prefer dist-upgrade over upgrade, but :shrug:
Katja Jacob
@straykatz
Mar 27 16:54 UTC
already running :)
Jon Cluck
@cluckj
Mar 27 16:54 UTC
I like to do upgrade, then dist-upgrade :) been bitten a couple times by dependency paradoxes
Katja Jacob
@straykatz
Mar 27 16:54 UTC
what is the difference?
rebooted here ...
Unpacking python3.5 (3.5.3-1+deb9u1) over (3.5.3-1) ...
Preparing to unpack .../25-python3.5-minimal_3.5.3-1+deb9u1_i386.deb ...
Unpacking python3.5-minimal (3.5.3-1+deb9u1) over (3.5.3-1) ...
Preparing to unpack .../26-libpython3.5-stdlib_3.5.3-1+deb9u1_i386.deb ...
Unpacking libpython3.5-stdlib:i386 (3.5.3-1+deb9u1) over (3.5.3-1) ...
Preparing to unpack .../27-libpython3.5-minimal_3.5.3-1+deb9u1_i386.deb ...
in other unrelated news - Medtronic has finally sent me 1.8 ml reservoirs. After hours of discussion about why in the world I would go back to an older pump.
I was ready to buy the damn things on Ebay.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 27 09:47:31 2019 from fe80::143c:606a:22a5:5b98%usb0
root@Tuesday:~# dir
kernel.config openaps-install.sh
root@Tuesday:~#
Jon Cluck
@cluckj
Mar 27 16:58 UTC
does it say why it's rebooting?
Katja Jacob
@straykatz
Mar 27 16:58 UTC
no
Jon Cluck
@cluckj
Mar 27 16:58 UTC
can you plug it back in and use the serial console for a bit to see what's going on?
Katja Jacob
@straykatz
Mar 27 16:59 UTC

Preparing to unpack .../26-libpython3.5-stdlib_3.5.3-1+deb9u1_i386.deb ...
Unpacking libpython3.5-stdlib:i386 (3.5.3-1+deb9u1) over (3.5.3-1) ...
Preparing to unpack .../27-libpython3.5-minimal_3.5.3-1+deb9u1_i386.deb ...
Linux Tuesday 3.10.98-jubilinux-edison #3 SMP PREEMPT Sun Aug 13 04:22:45 EDT 2017 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 27 09:47:31 2019 from XXXX
root@Tuesday:~# dir
kernel.config openaps-install.sh
root@Tuesday:~#

yep
Jon Cluck
@cluckj
Mar 27 16:59 UTC
thanks
Katja Jacob
@straykatz
Mar 27 16:59 UTC
it's still plugged in .. serial console - you mean terminal using the usb cables, not ssh?
Jon Cluck
@cluckj
Mar 27 17:00 UTC
yes :)
Katja Jacob
@straykatz
Mar 27 17:00 UTC
where should I start :)
setup?
bash openaps-install.sh dev
Jon Cluck
@cluckj
Mar 27 17:01 UTC
yep
Katja Jacob
@straykatz
Mar 27 17:01 UTC
starts with a reboot after timezone :/
Jon Cluck
@cluckj
Mar 27 17:02 UTC
does it say anything before it starts rebooting?
Katja Jacob
@straykatz
Mar 27 17:03 UTC
No, I just see it because of the MacOS window coming up
ok, this time it went further again after time zone

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 10:03:49 PDT 2019.
Universal Time is now: Wed Mar 27 17:03:49 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@Tuesday:~# same thing ... I'll run dpkg --configure -a

dpkg: error processing package libpython3.5-stdlib:i386 (--configure):
dependency problems - leaving unconfigured
Setting up libtinfo-dev:i386 (6.0+20161126-1+deb9u2) ...
Setting up libkrb5support0:i386 (1.15-1+deb9u1) ...
Setting up libprocps6:i386 (2:3.3.12-3+deb9u1) ...
Setting up libtasn1-6:i386 (4.10-1.1+deb9u1) ...
Setting up libhogweed4:i386 (3.3-1+b2) ...
dpkg: dependency problems prevent configuration of python3.5-minimal:
python3.5-minimal depends on libpython3.5-minimal (= 3.5.3-1+deb9u1); however:
Version of libpython3.5-minimal:i386 on system is 3.5.3-1.

dpkg: error processing package python3.5-minimal (--configure):
dependency problems - leaving unconfigured
Setting up procps (2:3.3.12-3+deb9u1) ...
Setting up perl (5.24.1-3+deb9u5) ...
Processing triggers for libc-bin (2.24-11+deb9u4) ...
Setting up libseccomp2:i386 (2.3.1-2.1+deb9u1) ...
Setting up udev (232-25+deb9u9) ...
addgroup: The group `input' already exists as a system group. Exiting.
Setting up libapparmor1:i386 (2.11.0-3+deb9u2) ...
Setting up libssl1.1:i386 (1.1.0j-1~deb9u1) ...
Setting up systemd (232-25+deb9u9) ...
ad

and another reboot
maybe it is still trying to flash ...
[ 9.413868] i2c-1: scl_gpio val 0, sda_gpio val 0
[ 9.413935] i2c-1: toggle begin
[ 9.414107] i2c-1: toggle SCL loop 0
[ 9.414260] i2c-1: toggle SCL loop 1
[ 9.414440] i2c-1: toggle SCL loop 2
[ 9.414614] i2c-1: toggle SCL loop 3
[ 9.414786] i2c-1: toggle SCL loop 4
[ 9.414951] i2c-1: toggle SCL loop 5
[ 9.415113] i2c-1: toggle SCL loop 6
[ 9.415271] i2c-1: toggle SCL loop 7
[ 9.415431] i2c-1: toggle SCL loop 8
[ 9.415477] i2c-1: toggle end
[ 9.454667] pca953x 1-0020: failed reading register
[ 9.475348] pca953x 1-0021: failed reading register
[ 9.495547] pca953x 1-0022: failed reading register
[ 9.516135] pca953x 1-0023: failed reading register
[ OK ] Started Raise network interfaces.
[ OK ] Reached target Network.
Starting Permit User Sessions...
[ OK ] Reached target Network is Online.
Starting LSB: Advanced IEEE 802.11 management daemon...
Starting LSB: Start NTP daemon...
Starting OpenBSD Secure Shell server...
Jon Cluck
@cluckj
Mar 27 17:08 UTC
it may have not finished; it needs to do a whole bunch of reboots after the flash finishes
Katja Jacob
@straykatz
Mar 27 17:08 UTC
it's back to root ...
Jon Cluck
@cluckj
Mar 27 17:09 UTC
leave it be for a few minutes?
Katja Jacob
@straykatz
Mar 27 17:09 UTC
but it's just sitting at root ...
Jon Cluck
@cluckj
Mar 27 17:09 UTC
:eyes: maybe that was the last reboot it needed?
Katja Jacob
@straykatz
Mar 27 17:10 UTC
who knows :) for good measure, I MADE it reboot <feeling more in charge that way>
it was sitting quietly at root the whole time - it just maybe crashes while running the commands
Jon Cluck
@cluckj
Mar 27 17:12 UTC
yeah, that's the other possibility
has it made any autonomous reboots in the last few minutes?
Katja Jacob
@straykatz
Mar 27 17:16 UTC
no, just sitting there

Tuesday login: root
Password:
Last login: Wed Mar 27 10:09:30 PDT 2019 on ttyMFD2
Linux Tuesday 3.10.98-jubilinux-edison #3 SMP PREEMPT Sun Aug 13 04:22:45 EDT 2017 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@Tuesday:~#

Jon Cluck
@cluckj
Mar 27 17:16 UTC
try the install again
you may need to reflash and give it a wide berth for getting all the reboots done
Katja Jacob
@straykatz
Mar 27 17:17 UTC
ok
if this install does not work, I'll do that.
it just crashed again ..
reflashing
Katja Jacob
@straykatz
Mar 27 17:22 UTC
@cluckj Did it work for you, btw?
Jon Cluck
@cluckj
Mar 27 17:23 UTC
yep, worked this morning and I'm running it again now
Katja Jacob
@straykatz
Mar 27 17:23 UTC
<shakes head> computers ....
cluckj @cluckj nods
Katja Jacob
@straykatz
Mar 27 17:24 UTC
Another thing that's just fascinating for me is my other rig stopped recognizing my WIFI. It had initially all sorts of troubles to BT tehter, and when i finally got it to work, it stopped jumping back onto WIFI
I rewrote the WIFI prefs several times, but o
but no
since it is the only one thats running now, I am not super eager to do much more on it since it runs on BT tether. I did update to the latest 4 commits on Dev, and got some scary messages :-o
but it runs now.
Jon Cluck
@cluckj
Mar 27 17:26 UTC
:grimacing: don't mess with it until you have your backup working
Katja Jacob
@straykatz
Mar 27 17:27 UTC
I HOPE sincerely that I have learned that by now, but reality proves that that is not always the case
Jon Cluck
@cluckj
Mar 27 17:28 UTC
hah
Katja Jacob
@straykatz
Mar 27 17:28 UTC
oh hey, we have a reflashed edison ... I am going to walk away from it .... damn ADHD
Jon Cluck
@cluckj
Mar 27 17:28 UTC
mine rebooted like....6-10 times after flashing
lots of bloops from the device being disconnected/reconnected during the reboots
Katja Jacob
@straykatz
Mar 27 17:29 UTC
i'll keep the disk not ejected properly open so I can count this time :)

Debian GNU/Linux 9 jubilinux ttyMFD2

jubilinux login: root
Password:
Linux jubilinux 3.10.98-jubilinux-edison #3 SMP PREEMPT Sun Aug 13 04:22:45 EDT 2017 i686

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@jubilinux:~#

here we are
bootstrap script time ...
yes?
Jon Cluck
@cluckj
Mar 27 17:35 UTC
give it a few minutes, that was very fast
Katja Jacob
@straykatz
Mar 27 17:35 UTC
yes, only 1 reboot that was announced with a window ...
it's just sitting there, apparently eager to work
I guess I could command a couple of reboots?
Jon Cluck
@cluckj
Mar 27 17:39 UTC
lol
start the bootstrap?
Katja Jacob
@straykatz
Mar 27 17:40 UTC
yea, but first I'll reboot it, so it get's that out of its system
time zone done ... it's moving
Jon Cluck
@cluckj
Mar 27 17:45 UTC
:sweat_smile:
Katja Jacob
@straykatz
Mar 27 17:45 UTC
well, I am happy to report it found the 'Magic signature'
Jon Cluck
@cluckj
Mar 27 17:47 UTC
:\
Katja Jacob
@straykatz
Mar 27 17:47 UTC
new name and password are set and it is again awaitin g commands
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@Tuesday:~# dir
kernel.config
Jon Cluck
@cluckj
Mar 27 17:49 UTC
did you use the edited bootstrap with dev?
Katja Jacob
@straykatz
Mar 27 17:49 UTC
i did
Jon Cluck
@cluckj
Mar 27 17:49 UTC
okay, you'll need to download the dev install script manually again, and run it with bash openaps-install.sh dev :)
Riko L
@Ricco555
Mar 27 17:50 UTC

@cluckj

http://www.jubilinux.org/dist/jubilinux-v0.3.0.zip

^ I was playing with this over the New Years and tried both flashing and upgrading distro. For flashing I was also increasing home partition in uboot before the flash process. Not sure if it's really needed but extra space come in handy.
Anyway, master branch was unsuccessful in installation whatever I did. dev I haven't tried at that time.

Jon Cluck
@cluckj
Mar 27 17:50 UTC
--> wget https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh
thanks @Ricco555
Katja Jacob
@straykatz
Mar 27 17:51 UTC
thanks again ... <scrolls back down>
root@Tuesday:~# dir
kernel.config openaps-install.sh
bash openaps-install.sh dev
Jon Cluck
@cluckj
Mar 27 17:53 UTC
:thumbsup:
Katja Jacob
@straykatz
Mar 27 17:54 UTC

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 10:53:21 PDT 2019.
Universal Time is now: Wed Mar 27 17:53:21 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@Tuesday:~#

dpkg --configure -a?
are you getting this error also, Jon?
dpkg: error processing package locate (--configure):
subprocess installed post-installation script returned error exit status 2
Processing triggers for mime-support (3.60) ...
Setting up libpython-all-dev:i386 (2.7.13-2) ...
Setting up ntp (1:4.2.8p10+dfsg-3+deb9u2) ...
Setting up acpid (1:2.0.28-1+b1) ...
Created symlink /etc/systemd/system/sockets.target.wants/acpid.socket β†’ /lib/systemd/system/acpid.socket.
Created symlink /etc/systemd/system/paths.target.wants/acpid.path β†’ /lib/systemd/system/acpid.path.
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Setting up ntpdate (1:4.2.8p10+dfsg-3+deb9u2) ...
Processing triggers for systemd (232-25) ...
Setting up vim-common (2:8.0.0197-4+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up vim-runtime (2:8.0.0197-4+deb9u1) ...
Setting up libpcap0.8:i386 (1.8.1-3) ...
Setting up vim-tiny (2:8.0.0197-4+deb9u1) ...
Setting up acpi-support-base (0.142-8) ...
Setting up vim (2:8.0.0197-4+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
locate
root@Tuesday:~#
root@Tuesday:~# dpkg --configure -a
Setting up locate (4.6.0+git+20161106-2) ...
update-alternatives: error: alternative path /usr/bin/locate.findutils doesn't exist
dpkg: error processing package locate (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
locate
root@Tuesday:~#
Jon Cluck
@cluckj
Mar 27 17:56 UTC
no, I just got all the way through to a loop :\
Katja Jacob
@straykatz
Mar 27 17:56 UTC
damn
Jon Cluck
@cluckj
Mar 27 17:56 UTC
can you run apt-get update then apt-get upgrade?
Katja Jacob
@straykatz
Mar 27 17:56 UTC
Should I try a different chip?
Jon Cluck
@cluckj
Mar 27 17:57 UTC
yes, if you have an extra edison hanging around
Katja Jacob
@straykatz
Mar 27 17:57 UTC
I have a 10 pack of antenna-less edisons, and I am curious to get one to work. (also have 2.4GHz antennas)
ok, I will try doing the rest of the setup on termius using the other mac, while I reflash another Edi on the old one (USB C makes this a bit of a chore on the new mac)
Katja Jacob
@straykatz
Mar 27 18:10 UTC
OK, so here's what happened on the "last try" for now with the Tuesday chip after apt-get update then apt-get upgrade
root@Tuesday:~# /usr/sbin/dpkg-reconfigure: tzdata is broken or not fully installed
Jon Cluck
@cluckj
Mar 27 18:11 UTC
mine just took about 15 minutes for the flash to complete, and it's rebooted twice on its own (about 5 minutes in total so far)
Katja Jacob
@straykatz
Mar 27 18:12 UTC
root@Tuesday:~# bash openaps-install.sh dev
Enter your rig's new hostname (this will be your rig's name in the future, so make sure to write it down): Tuesday
/usr/sbin/dpkg-reconfigure: tzdata is broken or not fully installed
root@Tuesday:~#
lucky :)
Jon Cluck
@cluckj
Mar 27 18:12 UTC
hahaha, I'm not gloating, I'm making notes of how long stuff takes!
Katja Jacob
@straykatz
Mar 27 18:12 UTC
OK< I am going to move to the new setup ... new chip, new board.
not assuming you are :)
Jon Cluck
@cluckj
Mar 27 18:13 UTC
[ 36.429593] rc.local[300]: Moving /usr to /home/.rootfs/usr... <-- taking forever
reboot number 3
Katja Jacob
@straykatz
Mar 27 18:14 UTC
tzdata is timezone, right
mkericson
@mkericson
Mar 27 18:14 UTC
I picked up a batch of the antenna-less EDI2.SPOF.AL.MP on ebay. Found these from Mouser to work: https://www.mouser.com/ProductDetail/538-204281-0100
Jon Cluck
@cluckj
Mar 27 18:14 UTC
yep
@straykatz tuesday may be :skull:
4 reboots after flashing, in about 10 minutes total after the flash said it was completed
oh, in the bootstrap script, change the last few lines to:
curl https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh > /tmp/openaps-install.sh
bash /tmp/openaps-install.sh dev
)
that's a dev in the curl line, and a dev on the install; that should make it a little easier to automate :)
Katja Jacob
@straykatz
Mar 27 18:21 UTC
I have this one. ... have not gotten the chips to work, but the antenna works ;)
Ok
Jon Cluck
@cluckj
Mar 27 18:26 UTC
downloading all the updated packages is taking forever :laughing: this is what we get for using a maintained OS
Katja Jacob
@straykatz
Mar 27 18:28 UTC
starting to flash new chip at 11:27
only 1 ")" at the end?
Jon Cluck
@cluckj
Mar 27 18:29 UTC
yes
Katja Jacob
@straykatz
Mar 27 18:29 UTC
ok
Bernhard Klein
@Volberger
Mar 27 18:34 UTC
@cluckj Yesterday we worked on the topic BG data too old. I started all over again, but the error message is similar to yesterday: CGM data every minute with glimp to the NS server. The date and time of the last readout remains fixed according to pump-log:
"then BG data is too old." The last BG data was read 39.7m ago at Wed Mar 27 2019 18:10:30. "
Continue a log round:
"then BG data is too old." The last BG data was read 50.4m ago at Wed Mar 27 2019 18:10:30 GMT + 0100 (CET) "
Jon Cluck
@cluckj
Mar 27 18:35 UTC
@Volberger is that with the newly-installed SD card?
Bernhard Klein
@Volberger
Mar 27 18:35 UTC
yes
Jon Cluck
@cluckj
Mar 27 18:37 UTC
the things in common between your old install and your new one are your pump, CGM, and nightscout, and I think you checked if your pump was set up properly
you're using glimp?
Scott Leibrand
@scottleibrand
Mar 27 18:39 UTC
@Volberger does Glimp have the ability to aggregate data into 5m buckets instead of reporting every minute?
Katja Jacob
@straykatz
Mar 27 18:42 UTC
Flashing done at 11:41 - 14 min.
Jon Cluck
@cluckj
Mar 27 18:42 UTC
:thumbsup:
my install is still going....
almost 30 minutes so far
Katja Jacob
@straykatz
Mar 27 18:43 UTC
running modified bootstrap script:

!/bin/bash

(
dmesg -D
echo Scanning for wifi networks:
ifup wlan0
wpa_cli scan
echo -e "\nStrongest networks found:"
wpa_cli scan_res | sort -grk 3 | head | awk -F '\t' '{print $NF}' | uniq
set -e
echo -e /"\nWARNING: this script will back up and remove all of your current wifi configs."
read -p "Press Ctrl-C to cancel, or press Enter to continue:" -r
echo -e "\nNOTE: Spaces in your network name or password are ok. Do not add quotes."
read -p "Enter your network name: " -r
SSID=$REPLY
read -p "Enter your network password: " -r
PSK=$REPLY
cd /etc/network
cp interfaces interfaces.$(date +%s).bak
echo -e "auto lo\niface lo inet loopback\n\nauto usb0\niface usb0 inet static\n address 10.11.12.13\n netmask 255.255.255.0\n\nauto wlan0\niface wlan0 inet dhcp\n wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf" > interfaces
echo -e "\n/etc/network/interfaces:\n"
cat interfaces
cd /etc/wpa_supplicant/
cp wpa_supplicant.conf wpa_supplicant.conf.$(date +%s).bak
echo -e "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\n ssid=\"$SSID\"\n psk=\"$PSK\"\n}" > wpa_supplicant.conf
echo -e "\n/etc/wpa_supplicant/wpa_supplicant.conf:\n"
cat wpa_supplicant.conf
echo -e "\nAttempting to bring up wlan0:\n"
ifdown wlan0; ifup wlan0
sleep 10
echo -ne "\nWifi SSID: "; iwgetid -r
sleep 5
curl https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh > /tmp/openaps-install.sh
bash /tmp/openaps-install.sh dev
)
Jon Cluck
@cluckj
Mar 27 18:43 UTC
:thumbsup:
Katja Jacob
@straykatz
Mar 27 18:45 UTC
reboot and prompt at jubilinux - and it's on WIFI :)
Jon Cluck
@cluckj
Mar 27 18:46 UTC
no....why is it rebooting?
Katja Jacob
@straykatz
Mar 27 18:47 UTC
right, it was in the script already. Dont know, and it rebooted again .. flashing ...
Jon Cluck
@cluckj
Mar 27 18:48 UTC
I think you're pasting the bootstrap script before the edison is done with its post-flash reboots?
Bernhard Klein
@Volberger
Mar 27 18:48 UTC
@scottleibrand yes, I have just set the break to 5 minutes
Katja Jacob
@straykatz
Mar 27 18:50 UTC
Ah. yes. it just rebooted after me logging in (root/edison level - no new rigname
now it is rebooting in a loop (not the kind I'd like to see, but it is at least rebooting)
Jon Cluck
@cluckj
Mar 27 18:52 UTC
yep, those are normal (I hope)
like I said it had to reboot 4+ times after flashing before it was finished with the post-flash stuff
Bernhard Klein
@Volberger
Mar 27 18:53 UTC
@cluckj Are other apps recommended? I have not heard anything bad about Glimp so far
Katja Jacob
@straykatz
Mar 27 18:53 UTC
All [OK] save one for a while. Now it seems like all services have been started [OK] after the last reboot
~4 plus reboots
Jon Cluck
@cluckj
Mar 27 18:54 UTC
@straykatz okay, bootstrap!
@Volberger I use xdrip+ from https://github.com/NightscoutFoundation/xDrip
I've never used glimp, so I don't know what could be going on with it
sorry :\
(be back in an hour or so....)
Katja Jacob
@straykatz
Mar 27 18:57 UTC
ok, thank you, JOn
Jon Cluck
@cluckj
Mar 27 19:18 UTC
is the bootstrap doing the usual install stuff? or are you getting random reboots?
Katja Jacob
@straykatz
Mar 27 19:54 UTC
@cluckj OK ... so I stopped the attempt with the new antenna-less chip, when it did not recognize WIFI. I am using a NEW new antenna-less chip, that did rcognize WIFI, and it is in a reboot loop right now (about 30 min in)
I am going to reduce the number of variables (maybe) and use another edison - with antenna, and that did work recently.
Jon Cluck
@cluckj
Mar 27 20:00 UTC
okay :)
Katja Jacob
@straykatz
Mar 27 20:03 UTC
Am I correct to assume that I don't need to reinstall homebrew etc on the same computer?
Jon Cluck
@cluckj
Mar 27 20:05 UTC
I don't think you do, but I'm not entirely sure; I've never done the flashing on a mac
Katja Jacob
@straykatz
Mar 27 20:06 UTC
:) considering it's all going onto the mac, I am going to work with that assumption.
Dana Lewis
@danamlewis
Mar 27 20:06 UTC
if you already installed it on that computer, no
yup
Katja Jacob
@straykatz
Mar 27 20:06 UTC
btw - Jon, did you get random reboots as well?
Jon Cluck
@cluckj
Mar 27 20:07 UTC
nope
ran flashall, took about 15 minutes to flash, then I left it alone for about 15 minutes (after flashall said it was finished) to do all its reboots
Katja Jacob
@straykatz
Mar 27 20:08 UTC
aha
I'll try that ...
Jon Cluck
@cluckj
Mar 27 20:08 UTC
ya
I think you may have been running the bootstrap in that second 15 minutes :)
Katja Jacob
@straykatz
Mar 27 20:09 UTC
do I need to do anything before I can run the bootstrap? it's doing #######s right now
<could use a break from staring at the screen> :)
Jon Cluck
@cluckj
Mar 27 20:10 UTC
nope, you could let it sit by itself for a few hours :)
Katja Jacob
@straykatz
Mar 27 20:10 UTC
OK. Sounds like a great idea :)
maybe an hour.
Today is my last day off work, and I am down to one working rig. So I am grateful for your help :) and I want to get a second one going today.
A friend gave me a 515, and ideally I get that going to remove the anxiety that comes with no redundancy :-o
Jon Cluck
@cluckj
Mar 27 20:13 UTC
that redundancy is worth the effort!
Katja Jacob
@straykatz
Mar 27 20:13 UTC
no joke
Jon Cluck
@cluckj
Mar 27 20:14 UTC
if my rig is not playing nice (which is rare), I just turn another one on and poof
that cannot be overrated
Katja Jacob
@straykatz
Mar 27 20:14 UTC
I am looking forward to that!
Oh, apparently, in English, or AE, "redundant" has a negative conotation. I am German, a Safety Engineer and have also Diabetes. Redundancy is a lovely thing for me for all of these reasons.
Dana Lewis
@danamlewis
Mar 27 20:18 UTC
"emergency backup" = amazing :sparkles:
Katja Jacob
@straykatz
Mar 27 20:19 UTC
:)

OK - Debian GNU/Linux 9 jubilinux ttyMFD2

jubilinux login:

I am going for a walk~
Scott Leibrand
@scottleibrand
Mar 27 20:22 UTC
"redundant" is a very good thing in American English, particularly when referring to engineered systems. In British English, they use it to mean "superfluous", and refer to layoffs as "redundancies"
kallnap
@kallnap
Mar 27 20:28 UTC
@scottleibrand I hope that meaning does not have an influence on british engineered devices ;-)
Katja Jacob
@straykatz
Mar 27 20:35 UTC
Hah. Well, from my experience in the US, outside of engineering perhaps, people use "redundant" also as a synonym for "superfluous".
OK, before I get back to this and bootstrap away ... a different question: Why is the 511 not a loopable pump?
What's missing?
Dana Lewis
@danamlewis
Mar 27 20:37 UTC
512 has that partially but not all of it, which is why it required extra file fixing to make it work. but anything before that didn't have a bolus wizard and anything like a normal structure
huh, it missed my first comment
which was: it doesn't have bolus wizard and a lot of other infrastructure needed, or the radio stuff
a ton of infrastructure like the bolus wizard and profile settings etc
Katja Jacob
@straykatz
Mar 27 20:41 UTC
ah, thanks, Dana
oh, no ... reboot loop. I wonder if the bootstrap script is somehow not copying correctly
Jon, can you paste the working bootstrap here?
Jon Cluck
@cluckj
Mar 27 20:42 UTC
#!/bin/bash
(
dmesg -D
echo Scanning for wifi networks:
ifup wlan0
wpa_cli scan
echo -e "\nStrongest networks found:"
wpa_cli scan_res | sort -grk 3 | head | awk -F '\t' '{print $NF}' | uniq
set -e
echo -e /"\nWARNING: this script will back up and remove all of your current wifi configs."
read -p "Press Ctrl-C to cancel, or press Enter to continue:" -r
echo -e "\nNOTE: Spaces in your network name or password are ok. Do not add quotes."
read -p "Enter your network name: " -r
SSID=$REPLY
read -p "Enter your network password: " -r
PSK=$REPLY
cd /etc/network
cp interfaces interfaces.$(date +%s).bak
echo -e "auto lo\niface lo inet loopback\n\nauto usb0\niface usb0 inet static\n  address 10.11.12.13\n  netmask 255.255.255.0\n\nauto wlan0\niface wlan0 inet dhcp\n  wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf" > interfaces
echo -e "\n/etc/network/interfaces:\n"
cat interfaces
cd /etc/wpa_supplicant/
cp wpa_supplicant.conf wpa_supplicant.conf.$(date +%s).bak
echo -e "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev\nupdate_config=1\nnetwork={\n  ssid=\"$SSID\"\n  psk=\"$PSK\"\n}" > wpa_supplicant.conf
echo -e "\n/etc/wpa_supplicant/wpa_supplicant.conf:\n"
cat wpa_supplicant.conf
echo -e "\nAttempting to bring up wlan0:\n"
ifdown wlan0; ifup wlan0
sleep 10
echo -ne "\nWifi SSID: "; iwgetid -r
sleep 5
curl https://raw.githubusercontent.com/openaps/oref0/dev/bin/openaps-install.sh > /tmp/openaps-install.sh
bash /tmp/openaps-install.sh dev
)
Katja Jacob
@straykatz
Mar 27 20:42 UTC
Thank you
Jon Cluck
@cluckj
Mar 27 20:44 UTC
:thumbsup:
Katja Jacob
@straykatz
Mar 27 20:45 UTC
while it is looping, all but one service start OK ... trying to catch the one that is not ... it's been actually the same for all 3 or 4 chips
something "reboot" "mount"
Jon Cluck
@cluckj
Mar 27 20:47 UTC
failed unmounting /tmp and failed unmounting /usr?
Katja Jacob
@straykatz
Mar 27 20:47 UTC
no, I dont think so ... let me try to take a photo if it happens again. right now Bootstrap is working as expected
ok, first part worked, it is reporting back under its new name
Jon Cluck
@cluckj
Mar 27 20:51 UTC
image.png
I've got that one too, but didn't get a reboot loop
Katja Jacob
@straykatz
Mar 27 20:52 UTC
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@blue:~# dir
kernel.config
didnt with your bootstrap text ;) ... who knows.
well ....it's rebooting :-/
Jon Cluck
@cluckj
Mar 27 20:52 UTC
argh
Katja Jacob
@straykatz
Mar 27 20:53 UTC
also, no openaps
in the root directory
Jon Cluck
@cluckj
Mar 27 20:54 UTC
the bootstrap should be taking the better part of an hour to finish :\
Katja Jacob
@straykatz
Mar 27 20:54 UTC
should it reboot at all after the timezone and reset password?
Jon Cluck
@cluckj
Mar 27 20:54 UTC
nope
it shouldn't be rebooting until after you've finished oref0-setup
Katja Jacob
@straykatz
Mar 27 20:54 UTC

erial Getty on ttyMFD2.
[ OK ] Started Getty on tty1.
[ OK ] Reached target Login Prompts.
[ OK ] Reached target Multi-User System.
Starting Update UTMP about System Runlevel Changes...
[ OK ] Started Hostname Service.
[ OK ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 blue ttyMFD2

blue login:

Hm.
rebooting some more
Jon Cluck
@cluckj
Mar 27 20:56 UTC
on its own?
Katja Jacob
@straykatz
Mar 27 20:56 UTC
yes
Jon Cluck
@cluckj
Mar 27 20:56 UTC
okay, let it do its thing :)
Scott Leibrand
@scottleibrand
Mar 27 20:56 UTC
how are you powering the rig?
if you don't have a lipo attached, try plugging one in, in addition to USB power
Katja Jacob
@straykatz
Mar 27 20:57 UTC
this is happening with different chips, different boards.
right now - no LIPO, but before I had one on
Scott Leibrand
@scottleibrand
Mar 27 20:57 UTC
is it abruptly power-cycling, or doing a normal shutdown reboot sequence?
Katja Jacob
@straykatz
Mar 27 20:57 UTC
what's the same is the mac, and the Jubilinux download
Jon Cluck
@cluckj
Mar 27 20:58 UTC
@thanksegon can you scroll up a bit and use the bootstrap script I pasted above? ^
Katja Jacob
@straykatz
Mar 27 20:58 UTC
abruptly
I plugged in a LiPo, and got a reboot
Scott Leibrand
@scottleibrand
Mar 27 20:58 UTC
double-check that your USB cable is thick enough, and ideally that you have two of them plugged in, and that the Edison is firmly (re)seated on the EB
Katja Jacob
@straykatz
Mar 27 20:59 UTC
two fat USB cables
Scott Leibrand
@scottleibrand
Mar 27 20:59 UTC
this sounds like underlying electrical, not software
Katja Jacob
@straykatz
Mar 27 21:01 UTC
well, it's on wifi and on the LiPo
thanksegon
@thanksegon
Mar 27 21:01 UTC
@cluckj Using your new bootstrap now, Jon.
Jon Cluck
@cluckj
Mar 27 21:01 UTC
:thumbsup:
Katja Jacob
@straykatz
Mar 27 21:01 UTC
I'll try the bootstrap again. if that does not work, perhaps a manual install might help ?
Jon Cluck
@cluckj
Mar 27 21:02 UTC
do you have different cables to try?
Katja Jacob
@straykatz
Mar 27 21:02 UTC
rebooted after bootstrap ...
I do. but these cables have taken me thorugh flashing 4 or more edisons today ... sounds weird
Scott Leibrand
@scottleibrand
Mar 27 21:04 UTC
have you tried re-seating the Edison?
Katja Jacob
@straykatz
Mar 27 21:06 UTC
yes. I'll take it apart and notnuse the spacers, just in case
spacers dont seem too high.
alright. 1 new cable. No spacers. reseated edison. LiPo. let's see :)
thanksegon
@thanksegon
Mar 27 21:11 UTC
@cluckj bootstrap finished. I'm starting dev branch install.
Katja Jacob
@straykatz
Mar 27 21:16 UTC
OK, the rig has WIFI and a new name and password. where should I continue? Bootstrap again?
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@blue:~# dir
kernel.config
root@blue:~#
Jon Cluck
@cluckj
Mar 27 21:17 UTC
yep
Katja Jacob
@straykatz
Mar 27 21:18 UTC
this is a bit irregular:

Scanning for wifi networks:
ifup: interface wlan0 already configured
Selected interface 'p2p-dev-wlan0'
OK

Strongest networks found:
bssid / frequency / signal level / flags / ssid
Selected interface 'p2p-dev-wlan0'
/
WARNING: this script will back up and remove all of your current wifi configs.
Press Ctrl-C to cancel, or press Enter to continue:

NOTE: Spaces in your network name or password are ok. Do not add quotes.
Enter your network name:

Shouldnt it be showing the WIFI networks at this time?
Scott Leibrand
@scottleibrand
Mar 27 21:19 UTC
I have no idea what p2p-dev-wlan0 is, or why it's trying to scan that interface for wireless networks
Katja Jacob
@straykatz
Mar 27 21:21 UTC
I entered mine ... let's hope :)
I am at the time zone selection. No "OK" offered needed after the Pac New ... it was already selected.
it's working away now
there is a reboot
thanksegon
@thanksegon
Mar 27 21:26 UTC
@cluckj Finished install and rebooting. I'll let you know if anything weird happens. Otherwise, this seems to have installed stretch with the new bootstrap (above) and dev branch. Thanks for your help.
thanksegon
@thanksegon
Mar 27 21:32 UTC
I spoke too soon. :-) I went though the bootstrap with no errors. Rebooted. None of the edit shortcuts work; looking in the bash_profile is nearly empty. I would expect to see edit-pref and edit-wifi, etc.
Katja Jacob
@straykatz
Mar 27 21:34 UTC
alright ... last attempt on this mac ... maybe time to move to the other and deal with USB-C
oh, hello old friend ...

Current default time zone: 'US/Pacific-New'
Local time is now: Wed Mar 27 14:33:07 PDT 2019.
Universal Time is now: Wed Mar 27 21:33:07 UTC 2019.

Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
Hit:1 http://security.debian.org stretch/updates InRelease
Ign:2 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:3 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-backports InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists... Done
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
root@blue:~#

root@blue:~# dpkg --configure -a
Setting up libquadmath0:i386 (6.3.0-18+deb9u1) ...
Processing triggers for install-info (6.3.0.dfsg.1-1+b2) ...
Setting up linux-libc-dev:i386 (4.9.144-3.1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libc-dev-bin (2.24-11+deb9u4) ...
dpkg: dependency problems prevent configuration of libc6-dev:i386:
libc6-dev:i386 depends on libc6 (= 2.24-11+deb9u4); however:
Version of libc6:i386 on system is 2.24-11+deb9u1.

dpkg: error processing package libc6-dev:i386 (--configure):
dependency problems - leaving unconfigured
Setting up libitm1:i386 (6.3.0-18+deb9u1) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Errors were encountered while processing:
libc6-dev:i386
root@blue:~#

thanksegon
@thanksegon
Mar 27 21:37 UTC
image.png
Katja Jacob
@straykatz
Mar 27 21:39 UTC
had one of those: E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
root@blue:~# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
but ... continueing
i see "progress" - in green, even :)
and then this ... Setting up g++-6 (6.3.0-18+deb9u1) ...
root@blue:~# dir
kernel.config
root@blue:~#
Scott Leibrand
@scottleibrand
Mar 27 21:42 UTC
why are you typing dir from ~root?
Katja Jacob
@straykatz
Mar 27 21:42 UTC
because I want to see if there is a myopenaps present
Scott Leibrand
@scottleibrand
Mar 27 21:43 UTC
to see if myopenaps has been created yet? k, ya, you'll need to re-run things after fixing the apt dependencies
Katja Jacob
@straykatz
Mar 27 21:43 UTC
rerun bootstrap?
Scott Leibrand
@scottleibrand
Mar 27 21:43 UTC
that's probably easiest, ya
Jon Cluck
@cluckj
Mar 27 21:43 UTC
@thanksegon that jq error is okay for now
Katja Jacob
@straykatz
Mar 27 21:43 UTC
in the meantime I have reboots
btw - do I have to run this in terminal, or, since the chip has WIFI, can I use termius?
thanksegon
@thanksegon
Mar 27 21:46 UTC
@cluckj OK. I ran global-install and the setup script again and I can run the edit shortcuts now.
Jon Cluck
@cluckj
Mar 27 21:47 UTC
:thumbsup: thanks, that's what I was about to suggest :)
GMTA
@straykatz I also think the reboots are hardware related, you may not have gotten a proper flash if that had happened in the middle of file copying
does wiggling/moving cables or the rig make it reboot?
Katja Jacob
@straykatz
Mar 27 21:53 UTC
jon, Same thing with all chips. I have been using different chips. different boards. different cables, I am now trying a different computer. I might have to refresh with a different Jubilinux download
Jon Cluck
@cluckj
Mar 27 21:53 UTC
yes, it could be the image too :(
Katja Jacob
@straykatz
Mar 27 21:53 UTC
that's why I am asking if I have to do a serial connection for this
Jon Cluck
@cluckj
Mar 27 21:54 UTC
being on a serial connection the whole way through would probably help
(to cut down the number of things that could go wrong)
Katja Jacob
@straykatz
Mar 27 21:55 UTC
well, with USB-C that is another pain
I switched from the old MacBook to the new one
another restart on the new Mac. I am going to bet on Jubilinux
but first ... one more try with a bootstrap over ssh
Jon Cluck
@cluckj
Mar 27 21:58 UTC
reflash with a new download of the .zip on the new mac?
Katja Jacob
@straykatz
Mar 27 21:58 UTC
that's after the hail Mary
Katja Jacob
@straykatz
Mar 27 22:04 UTC
only change one thing at a time
thanksegon
@thanksegon
Mar 27 22:04 UTC
@cluckj I've a RAFT of errors now in pump-loop. You have your hands full. Let me know when or if you have a moment.
Katja Jacob
@straykatz
Mar 27 22:05 UTC
in addition - if I falsely assume the flashing is defect - I have 3 more chips that I have flashed
and I much rather not redo those unless necessary
I am very quietly watching this go on right now without problems so far.
Jon Cluck
@cluckj
Mar 27 22:07 UTC
don't jinx it :o
Katja Jacob
@straykatz
Mar 27 22:07 UTC
Did I say that out loud???
:-D
Jon Cluck
@cluckj
Mar 27 22:07 UTC
@thanksegon what kind of errors?
thanksegon
@thanksegon
Mar 27 22:09 UTC
Mar 27 18:09:03 Hank pump-loop.log: TypeError: Cannot read property 'map' of undefined
Mar 27 18:09:03 Hank pump-loop.log: at detectCarbAbsorption (/root/src/oref0/lib/determine-basal/cob.js:8:44)
Mar 27 18:09:03 Hank pump-loop.log: at recentCarbs (/root/src/oref0/lib/meal/total.js:104:13)
Mar 27 18:09:03 Hank pump-loop.log: at generate (/root/src/oref0/lib/meal/index.js:20:26)
Mar 27 18:09:03 Hank pump-loop.log: at Object.<anonymous> (/root/src/oref0/bin/oref0-meal.js:122:23)
Mar 27 18:09:03 Hank pump-loop.log: at Module._compile (module.js:653:30)
Mar 27 18:09:03 Hank pump-loop.log: at Object.Module._extensions..js (module.js:664:10)
Mar 27 18:09:03 Hank pump-loop.log: at Module.load (module.js:566:32)
Mar 27 18:09:03 Hank pump-loop.log: at tryModuleLoad (module.js:506:12)
Mar 27 18:09:03 Hank pump-loop.log: at Function.Module._load (module.js:498:3)
Mar 27 18:09:03 Hank pump-loop.log: at Function.Module.runMain (module.js:694:10)
And on and on like that
Jon Cluck
@cluckj
Mar 27 22:12 UTC
is your rig communicating with your pump and with NS?
thanksegon
@thanksegon
Mar 27 22:13 UTC
It doesn;t seem to be communicating yet. I'm watching the log on papertrail
Preflight says OK but so far NS isn;t aware of it.
Katja Jacob
@straykatz
Mar 27 22:16 UTC
based on this result, I am going to say: I know I have a bad USB cable, and potentially I have a problem with the old Mac. BlackBerry ... phhh.
Switched to a new branch 'dev'
Already up-to-date.
Press Enter to run oref0-setup with the current release (dev branch) of oref0,
or press ctrl-c to cancel.
Damn. Thank you!
Now let's see if I can get that new pump to loop
:-D
Jon Cluck
@cluckj
Mar 27 22:22 UTC
do ctrl+c and run npm run global-install first?
Katja Jacob
@straykatz
Mar 27 22:22 UTC
hmm ... it just went for the setup script

but there is a oref0@0.7.0-dev global-install /root/src/oref0

npm install && sudo npm link && sudo npm link oref0 && sudo npm install -g running

how nice - 0 vulnerabilities :)
Katja Jacob
@straykatz
Mar 27 22:29 UTC
do you think I need to do a npm run global-install
and where? root or /myopenaps?
Jon Cluck
@cluckj
Mar 27 22:30 UTC
you'd want to run it in ~/src/oref0, but you might not need it
Katja Jacob
@straykatz
Mar 27 22:31 UTC
right. Thank you.
Katja Jacob
@straykatz
Mar 27 23:07 UTC
ok, rig is looping. talking to pump. waiting for a successful loop :)
Jon Cluck
@cluckj
Mar 27 23:11 UTC
:D
Katja Jacob
@straykatz
Mar 27 23:12 UTC
and while I have all those flashed chips ....
and it seems to be working via ssh ...
:-)
Jon Cluck
@cluckj
Mar 27 23:36 UTC
was that with or without npm run global-install?
Katja Jacob
@straykatz
Mar 27 23:52 UTC
long story. It ran fine without, until I messed it up.
then I ran it with npm run global-install
Now, it's been several times 30 min and the loop has not been successful with the NEW pump

Starting oref0-pump-loop at Wed Mar 27 16:48:05 PDT 2019 with 23 second wait_for_silence:
Waiting up to 4 minutes for new BG: First loop: not waiting

Listening for 23s: ............No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed Mar 27 16:49:54 PDT 2019
Preflight OK. Profile less than 60m old; Profile valid. Full history refreshed through null
meal.json refreshed: {"carbs":80,"nsCarbs":80,"bwCarbs":0,"journalCarbs":0,"mealCOB":41,"currentDeviation":-1.33,"maxDeviation":6.33,"minDeviation":2,"slopeFromMaxDeviation":-1.333,"slopeFromMinDeviation":0,"allDeviations":[-1,2,5,6],"lastCarbTime":1553727600000,"bwFound":false}
Listening for 9s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed Mar 27 16:50:38 PDT 2019
Checking that pump clock: "2019-03-27T16:50:08-07:00" is within 90s of current time: 2019-03-27T16:50:40-0700
Error: pumphistory-24h >5m old (or empty)
oref0-pump-loop failed. pump_loop_completed more than 15m old; waiting for 39 s silence before mmtuning
Listening for 39s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed Mar 27 16:51:20 PDT 2019
Listening for 39 s silence before mmtuning: Listening for 39s: .No interfering pump comms detected from other rigs (this is a good thing!)
Continuing oref0-pump-loop at Wed Mar 27 16:52:00 PDT 2019
mmtune: "916.600", 3, -59 -- "916.650", 3, -60
No wait required.
If pump and rig are close enough, this error usually self-resolves. Stand by for the next loop.
Unsuccessful oref0-pump-loop at Wed Mar 27 16:52:21 PDT 2019

What's also strange is that it does not download a BG from Nightscout, but everything else
I was just thinking about rerunning setup with then OLD pump
Do you know what I can do about the pump history problem?
and I set up the CGM as xdrip, and as G6-upload