# Binding & Shutdown Issues - Solution in New Release

**URL:** https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455
**Category:** ZYMKEY4
**Created:** [March 14, 2019, 4:24pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455 "2019-03-14T16:24:44Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 14, 2019, 4:24pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/1 "2019-03-14T16:24:44Z")

</div>

**Binding Issues**  
In recent weeks we have learned that some developers are experiencing difficulties when binding zymkey to their host/application. Also some have seen loss of connection to the Zymkey in a soft shutdown/reboot situation. Not all users have experienced this issue.

**Solution in New Code Release**  
After digging into the symptoms and various use cases, we believe we have now identified the root issue, which relates to how I2C is managed under Stretch and the existence of certain edge/system conditions. The problem is more apparent on RPi 3B+, for a variety of reasons.

Our dev team has a working solution that is being run through production testing and should be available in a new release within 48 hours. The new release will contain more details and context.

Thanks to all who have helped us identify the root issue and build a solution.

We’ll update you when the release is available.

_ **UPDATE** _

Ok…the new release is here!

For those of you doing an install on a fresh system, just follow the instructions in our “Getting Started” guide.

For those of you doing an upgrade from a previous installation, just run:  
`sudo apt update`  
`sudo apt -y install --only-upgrade libzk libzymkeyssl zkbootrtc zkifc zkapputilslib zksaapps`  
`sudo pip install zku --upgrade` (use `pip3` for python3 support)

For those of you that have an installation that predates Oct. 2018, you may need to update the GPG key for the zymbit repo before running the above:  
`curl -L "https://zk-sw-repo.s3.amazonaws.com/apt-zymkey-pubkey.gpg" 2> /dev/null | apt-key add - &>/dev/null`

_ **ANOTHER UPDATE** _  
A new release which addresses more timing issues was just issued this morning. The instructions are the same as in the previous update.

Debian package version numbers for this release are:  
libzymkey: 1.1-13  
zkifc: 1.2-17  
zksaapps: 1.0-9  
zkbootrtc: 1.1-12  
zkapputilslib: 1.1-9  
libzymkeyssl: 1.0-8

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 18, 2019, 9:16pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/2 "2019-03-18T21:16:08Z")

</div>

Update on new release:

Our production testing kicked out an issue on Friday that we have been working to resolve over the weekend… this is why we do testing 😉

We’ll update you again in 48 hours. Thanks for your patience.

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 23, 2019, 11:01pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/3 "2019-03-23T23:01:10Z")

</div>

Update:  
OK, so we have been chasing down one last remaining edge condition relating to how 3B+/Stretch supports dm-crypt/LUKS under certain system configuration/load conditions. We are pretty confident the root cause is now understood, and we have a solution that is going through build/production testing this weekend.

We hope to have something for general release 3/25 ~ 3/26

Thanks again to those who have supported us with their application & test data.  
🏋️‍♂️

---

<div class="post-metadata">

### Author: ![mauricebizzarri](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.zymbit.com/mauricebizzarri/32/260_2.png) [@mauricebizzarri](https://community.zymbit.com/u/mauricebizzarri)
#### Post date: [March 23, 2019, 11:42pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/4 "2019-03-23T23:42:28Z")

</div>

You actually do regression testing! WOW! Kudos to your Q/A department, CTO and whomever insists on such actions. Good job!

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 26, 2019, 6:49pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/5 "2019-03-26T18:49:40Z")

</div>

Ok…the new release is here!

For those of you doing an install on a fresh system, just follow the instructions in our “Getting Started” guide.

For those of you doing an upgrade from a previous installation, just run:  
`sudo apt -y install --only-upgrade libzk libzymkeyssl zkbootrtc zkifc zkapputilslib zksaapps`  
`sudo pip install zku --upgrade` (use `pip3` for python3 support)

---

<div class="post-metadata">

### Author: ![zymbittester](https://avatars.discourse-cdn.com/v4/letter/z/3be4f8/32.png) [@zymbittester](https://community.zymbit.com/u/zymbittester)
#### Post date: [March 26, 2019, 7:26pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/6 "2019-03-26T19:26:34Z")

</div>

I tried the --only-upgrade and received this:  
Skipping zksaapps, it is not installed and only upgrades are requested.

Is this needed?

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 26, 2019, 7:51pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/7 "2019-03-26T19:51:36Z")

</div>

That message just indicates that your original install of the software did not have the zksaapps package. Our current installer installs this. If/when you decide to encrypt your root file system, this package will be installed.

---

<div class="post-metadata">

### Author: ![zymbittester](https://avatars.discourse-cdn.com/v4/letter/z/3be4f8/32.png) [@zymbittester](https://community.zymbit.com/u/zymbittester)
#### Post date: [March 26, 2019, 8:05pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/8 "2019-03-26T20:05:17Z")

</div>

When I try to install it with: sudo apt -y install zksaapps

I get this error: Hash Sum mismatch

Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
The following NEW packages will be installed:  
zksaapps  
0 upgraded, 1 newly installed, 0 to remove and 45 not upgraded.  
Need to get 720 kB of archives.  
After this operation, 4,188 kB of additional disk space will be used.  
Get:1 [https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch](https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch) stretch/main armhf zksaapps armhf 1.0-8 [720 kB]  
Err:1 [https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch](https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch) stretch/main armhf zksaapps armhf 1.0-8  
Hash Sum mismatch  
Hashes of expected file:

- SHA256:6ae1416f0fd86bb0dd176630ebdc3321e0ce92112fe83074bd632fe69faea734
- SHA1:cf12624494860a4651f01c6e422b479d108c4a14 [weak]
- MD5Sum:b83db93e805e562b78b57fd0015061dd [weak]
- Filesize:719884 [weak]  
Hashes of received file:
- SHA256:1309e01a80fb0925abeae0082e57afd4a72002e5759928d554dfa75e06ae1cf1
- SHA1:a5d9d954eaf3d7fe1ed7f90a1be076eb00e91793 [weak]
- MD5Sum:b57b31af448695d8f9075f901525c761 [weak]
- Filesize:719560 [weak]  
Last modification reported: Mon, 25 Mar 2019 18:15:00 +0000  
Fetched 720 kB in 1s (577 kB/s)  
E: Failed to fetch [https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch/pool/main/z/zksaapps/zksaapps\_1.0-8\_armhf.deb](https://zk-sw-repo.s3.amazonaws.com/apt-repo-stretch/pool/main/z/zksaapps/zksaapps_1.0-8_armhf.deb)

Hash Sum mismatch  
Hashes of expected file:  
- SHA256:6ae1416f0fd86bb0dd176630ebdc3321e0ce92112fe83074bd632fe69faea734  
- SHA1:cf12624494860a4651f01c6e422b479d108c4a14 [weak]  
- MD5Sum:b83db93e805e562b78b57fd0015061dd [weak]  
- Filesize:719884 [weak]  
Hashes of received file:  
- SHA256:1309e01a80fb0925abeae0082e57afd4a72002e5759928d554dfa75e06ae1cf1  
- SHA1:a5d9d954eaf3d7fe1ed7f90a1be076eb00e91793 [weak]  
- MD5Sum:b57b31af448695d8f9075f901525c761 [weak]  
- Filesize:719560 [weak]  
Last modification reported: Mon, 25 Mar 2019 18:15:00 +0000  
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

---

<div class="post-metadata">

### Author: ![Bob\_of\_Zymbit](https://avatars.discourse-cdn.com/v4/letter/b/82dd89/32.png) [@Bob\_of\_Zymbit](https://community.zymbit.com/u/Bob_of_Zymbit)
#### Post date: [March 27, 2019, 6:56pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/9 "2019-03-27T18:56:30Z")

</div>

Looks like I forgot to add `sudo apt update` to the beginning of the reinstall instructions. Full instructions have been edited at the top post.

If that doesn’t work, try updating you gpg key as per the new instructions at the top.

---

<div class="post-metadata">

### Author: ![zymbittester](https://avatars.discourse-cdn.com/v4/letter/z/3be4f8/32.png) [@zymbittester](https://community.zymbit.com/u/zymbittester)
#### Post date: [March 27, 2019, 7:11pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/10 "2019-03-27T19:11:18Z")

</div>

I ended up using “sudo apt-get update”.

That worked. Thanks.

---

<div class="post-metadata">

### Author: ![mauricebizzarri](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.zymbit.com/mauricebizzarri/32/260_2.png) [@mauricebizzarri](https://community.zymbit.com/u/mauricebizzarri)
#### Post date: [March 27, 2019, 11:17pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/11 "2019-03-27T23:17:59Z")

</div>

Updated my software and running my little test bench. 10 minutes and counting. Will go walk my dog and let it run for the time I’m gone. It used to fail after 8 minutes. Great job!

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [March 28, 2019, 12:56am UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/12 "2019-03-28T00:56:10Z")

</div>

@mauricebizzarri would be interesting to know how long a dog walk it took to complete your file encryption ? 🙂

---

<div class="post-metadata">

### Author: ![mauricebizzarri](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.zymbit.com/mauricebizzarri/32/260_2.png) [@mauricebizzarri](https://community.zymbit.com/u/mauricebizzarri)
#### Post date: [March 28, 2019, 1:30am UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/13 "2019-03-28T01:30:17Z")

</div>

Ha ha sorry I’m a little obscure. I walked my dog for an hour. I have a test script that loops forever, timestamping each successful loop. The loop includes encrypting and decrypting a random small file, and also does a tap sense and some other useful things. It was still working after an hour. It’s written in GO and uses the GO Cgo library to access your C library. It seems to work fine. I will now integrate it into my system to secure IoT devices. I’ll let you know when I’m done.

---

<div class="post-metadata">

### Author: ![Phil\_S\_Zymbit\_1](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@Phil\_S\_Zymbit\_1](https://community.zymbit.com/u/Phil_S_Zymbit_1)
#### Post date: [March 28, 2019, 3:35pm UTC](https://community.zymbit.com/t/binding-shutdown-issues-solution-in-new-release/455/14 "2019-03-28T15:35:06Z")

</div>

> [@mauricebizzarri](#):
>
> ems to work fine. I will now integrate it into my system to secure IoT devices. I’ll let you know when I’m done.

Thanks for the update, and putting zymkey encryption through its paces with GO. We look forward to hearing more about your progress.
