# Failure to Get started with Coral Dev Board and Python (balena push - unsigned repo)

**URL:** <https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574>\
**Category:** Product support\
**Tags:** google\
**Created:** [April 4, 2022, 6:55pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574 "2022-04-04T18:55:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 4, 2022, 6:55pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/1 "2022-04-04T18:55:32Z")

</div>

Trying out Balena OS on by Google Coral Dev Board, going through the tutorial here: [Get started with Coral Dev Board and Python - Balena Documentation](https://www.balena.io/docs/learn/getting-started/coral-dev/python/#add-release)

Unfortunately, I’m unable to push the python example referenced in the tutorial. More information about the failure can be found in the github issue:

> <https://github.com/balena-io-examples/coral-getting-started/issues/2>
>
> Just starting with Balena OS, so I may be overlooking something.
> 
> Going throug…h the tutorial here: https://www.balena.io/docs/learn/getting-started/coral-dev/python/
> 
> which leads me to this repo. However, when building it, I get this error:
> 
> \`\`\`\[Info\] Starting build for {FLEET}, user {USER}
> \[Info\] Dashboard link: {DASH}
> \[Info\] Building on arm05
> \[Info\] Pulling previous images for caching purposes...
> \[Success\] Successfully pulled cache images
> \[edge-logic\] Step 1/9 : FROM balenalib/coral-dev-debian:latest
> \[model\] Step 1/3 : FROM balenalib/coral-dev-debian
> \[edge-logic\] ---\> 664ecf7af092
> \[edge-logic\] Step 2/9 : RUN install\_packages python3-pip
> \[edge-logic\] ---\> Running in 3e61ec6f5d49
> \[model\] ---\> 664ecf7af092
> \[model\] Step 2/3 : COPY . .
> \[edge-logic\] Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/):
> \[edge-logic\] Architecture: ARM v8
> \[edge-logic\] OS: Debian Buster
> \[edge-logic\] Variant: run variant
> \[edge-logic\] Default variable(s): UDEV=off
> \[edge-logic\] Extra features:
> \[edge-logic\] - Easy way to install packages with \`install\_packages \<package-name\>\` command
> \[edge-logic\] - Run anywhere with cross-build feature (for ARM only)
> \[edge-logic\] - Keep the container idling with \`balena-idle\` command
> \[edge-logic\] - Show base image details with \`balena-info\` command
> \[model\] ---\> 79b6e5a65f6b
> \[model\] Step 3/3 : CMD \["bash","run.sh"\]
> \[model\] ---\> Running in f103ebdc897d
> \[edge-logic\] W: GPG error: https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease: The following signatures couldn't be verified because the public key is not available: NO\_PUBKEY FEEA9169307EA071 NO\_PUBKEY 8B57C5C2836F4BEB
> \[edge-logic\] E: The repository 'https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease' is not signed.
> \[edge-logic\]
> \[edge-logic\] apt failed, retrying
> \[model\] Removing intermediate container f103ebdc897d
> \[model\] ---\> 5b284c165f67
> \[model\] Successfully built 5b284c165f67
> \[edge-logic\] apt failed, retrying
> \[edge-logic\] W: GPG error: https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease: The following signatures couldn't be verified because the public key is not available: NO\_PUBKEY FEEA9169307EA071 NO\_PUBKEY 8B57C5C2836F4BEB
> \[edge-logic\] E: The repository 'https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease' is not signed.
> \[edge-logic\]
> \[edge-logic\] W: GPG error: https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease: The following signatures couldn't be verified because the public key is not available: NO\_PUBKEY FEEA9169307EA071 NO\_PUBKEY 8B57C5C2836F4BEB
> \[edge-logic\] E: The repository 'https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease' is not signed.
> \[edge-logic\]
> \[edge-logic\] Removing intermediate container 3e61ec6f5d49
> \[edge-logic\] The command '/bin/sh -c install\_packages python3-pip' returned a non-zero code: 100
> \[Info\] Uploading images
> \[Success\] Successfully uploaded images
> \[Error\] Some services failed to build:
> \[Error\] Service: edge-logic
> \[Error\] Error: The command '/bin/sh -c install\_packages python3-pip' returned a non-zero code: 100
> \[Info\] Built on arm05
> \[Error\] Not deploying release.
> Remote build failed\`\`\`

I’m able to push the node example just fine, but that’s not what I need 😛

Any thoughts?

---

<div class="post-metadata">

**Author:** ![vipulgupta2048](https://avatars.discourse-cdn.com/v4/letter/v/a183cd/32.png) [@vipulgupta2048](https://forums.balena.io/u/vipulgupta2048)\
**Post date:** [April 5, 2022, 2:12pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/3 "2022-04-05T14:12:07Z")

</div>

Hello Daniel,  
Thanks for reporting this issue and eventually helping to fix this as well. Your contribution is greatly appreciated. I have approved your PR and it’s good to go now. Please let us know if this resolved your issue.

---

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 5, 2022, 5:11pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/4 "2022-04-05T17:11:11Z")

</div>

Thanks.

The solution builds, but I’m not seeing the result output as indicated in the tutorial:

```auto
21.04.20 09:48:10 (+0200) edge-logic ---------------------------
21.04.20 09:48:10 (+0200) edge-logic macaw
21.04.20 09:48:10 (+0200) edge-logic Score : 0.99609375

```

I may not be looking in the right place, but in the summary tab of my device, I get no output from the edge-logic service, despite trying to stop & start or restart that service.

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [April 6, 2022, 9:21am UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/5 "2022-04-06T09:21:38Z")

</div>

@dt1900 could you please share what you see on your logs? is the service running? or not started?

---

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 6, 2022, 2:27pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/7 "2022-04-06T14:27:02Z")

</div>

Local terminal:

```auto
$ balena push {fleet}
--------------------------------------------------------------------------------
[Warn] Node.js version "14.19.1" does not satisfy requirement ">=12.8.0 <13.0.0"
[Warn] This may cause unexpected behavior.
--------------------------------------------------------------------------------
[Info] Starting build for {fleet}, user {name}
[Info] Dashboard link: https://dashboard.balena-cloud.com/apps/1921001/devices
[Info] Building on arm06
[Info] Pulling previous images for caching purposes...
[Success] Successfully pulled cache images
[edge-logic] Step 1/10 : FROM balenalib/coral-dev-debian:latest
[model] Step 1/3 : FROM balenalib/coral-dev-debian
[edge-logic] ---> 664ecf7af092
[edge-logic] Step 2/10 : RUN curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
[edge-logic] ---> Running in 94e3d57519b2
[model] ---> 664ecf7af092
[model] Step 2/3 : COPY . .
[edge-logic] Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/):
[edge-logic] Architecture: ARM v8
[edge-logic] OS: Debian Buster
[edge-logic] Variant: run variant
[edge-logic] Default variable(s): UDEV=off
[edge-logic] Extra features:
[edge-logic] - Easy way to install packages with `install_packages <package-name>` command
[edge-logic] - Run anywhere with cross-build feature (for ARM only)
[edge-logic] - Keep the container idling with `balena-idle` command
[edge-logic] - Show base image details with `balena-info` command
[edge-logic] % Total % Received % Xferd Average Speed Time Time Time Current
[edge-logic] Dload Upload Total Spent Left Speed
  0ge-logic]
[edge-logic] 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[edge-logic] Warning: apt-key output should not be parsed (stdout is not a terminal)
[edge-logic]
100 2537 100 2537 0 0 9093 0 --:--:-- --:--:-- --:--:-- 9093
[edge-logic]
[model] ---> 3da5024275fd
[model] Step 3/3 : CMD ["bash","run.sh"]
[model] ---> Running in f6b27adac1fe
[edge-logic] OK
[model] Removing intermediate container f6b27adac1fe
[model] ---> db5520bdfd3f
[model] Successfully built db5520bdfd3f
[edge-logic] Removing intermediate container 94e3d57519b2
[edge-logic] ---> 05c4a2a5f2f3
[edge-logic] Step 3/10 : RUN install_packages python3-pip
[edge-logic] ---> Running in 4eaf93a1f5ab
[edge-logic] Reading package lists...
[edge-logic] Building dependency tree...
[edge-logic] Reading state information...
[edge-logic] The following package was automatically installed and is no longer required:
[edge-logic] libidn11
[edge-logic] Use 'apt autoremove' to remove it.
[edge-logic] The following additional packages will be installed:
[edge-logic] python-pip-whl python3-distutils python3-lib2to3
[edge-logic] Recommended packages:
[edge-logic] build-essential python3-dev python3-setuptools python3-wheel
[edge-logic] The following NEW packages will be installed:
[edge-logic] python-pip-whl python3-distutils python3-lib2to3 python3-pip
[edge-logic] 0 upgraded, 4 newly installed, 0 to remove and 52 not upgraded.
[edge-logic] Need to get 1980 kB of archives.
[edge-logic] After this operation, 3772 kB of additional disk space will be used.
[edge-logic] Get:1 http://deb.debian.org/debian buster/main arm64 python-pip-whl all 18.1-5 [1591 kB]
[edge-logic] Get:2 http://deb.debian.org/debian buster/main arm64 python3-lib2to3 all 3.7.3-1 [76.7 kB]
[edge-logic] Get:3 http://deb.debian.org/debian buster/main arm64 python3-distutils all 3.7.3-1 [142 kB]
[edge-logic] Get:4 http://deb.debian.org/debian buster/main arm64 python3-pip all 18.1-5 [171 kB]
[edge-logic] debconf: delaying package configuration, since apt-utils is not installed
[edge-logic]
[edge-logic] Fetched 1980 kB in 0s (6934 kB/s)
[edge-logic] Selecting previously unselected package python-pip-whl.
[edge-logic] (Reading database ...
(Reading database ... 75%tabase ... 5%
[edge-logic] (Reading database ... 80%
[edge-logic] (Reading database ... 85%
[edge-logic] (Reading database ... 90%
[edge-logic] (Reading database ... 95%
(Reading database ... 11395 files and directories currently installed.)
[edge-logic] Preparing to unpack .../python-pip-whl_18.1-5_all.deb ...
[edge-logic] Unpacking python-pip-whl (18.1-5) ...
[edge-logic] Selecting previously unselected package python3-lib2to3.
[edge-logic] Preparing to unpack .../python3-lib2to3_3.7.3-1_all.deb ...
[edge-logic] Unpacking python3-lib2to3 (3.7.3-1) ...
[edge-logic] Selecting previously unselected package python3-distutils.
[edge-logic] Preparing to unpack .../python3-distutils_3.7.3-1_all.deb ...
[edge-logic] Unpacking python3-distutils (3.7.3-1) ...
[edge-logic] Selecting previously unselected package python3-pip.
[edge-logic] Preparing to unpack .../python3-pip_18.1-5_all.deb ...
[edge-logic] Unpacking python3-pip (18.1-5) ...
[edge-logic] Setting up python-pip-whl (18.1-5) ...
[edge-logic] Setting up python3-lib2to3 (3.7.3-1) ...
[edge-logic] Setting up python3-distutils (3.7.3-1) ...
[edge-logic] Setting up python3-pip (18.1-5) ...
[edge-logic] Removing intermediate container 4eaf93a1f5ab
[edge-logic] ---> 9ae7fc6edc6e
[edge-logic] Step 4/10 : ENV UDEV=1
[edge-logic] ---> Running in b6bc35b0cac3
[edge-logic] Removing intermediate container b6bc35b0cac3
[edge-logic] ---> 17845a30bae6
[edge-logic] Step 5/10 : COPY 99-tpu.rules /etc/udev/rules.d/99-tpu.rules
[edge-logic] ---> 6191069f19ee
[edge-logic] Step 6/10 : WORKDIR /usr/src/app
[edge-logic] ---> Running in ef0a62c030fb
[edge-logic] Removing intermediate container ef0a62c030fb
[edge-logic] ---> a05680f67e66
[edge-logic] Step 7/10 : COPY src src
[edge-logic] ---> 16d8fc8537f3
[edge-logic] Step 8/10 : COPY images images
[edge-logic] ---> 8b07d4568658
[edge-logic] Step 9/10 : COPY run.sh run.sh
[edge-logic] ---> 24be0b0d4b6c
[edge-logic] Step 10/10 : CMD ["bash","run.sh"]
[edge-logic] ---> Running in 7128aa673481
[edge-logic] Removing intermediate container 7128aa673481
[edge-logic] ---> 44b8277cc790
[edge-logic] Successfully built 44b8277cc790
[Info] Generating image deltas from release 0de381bce6b48a65587650682db6decd (id: 2125283)
[Success] Successfully generated image deltas
[Info] Uploading images
[Success] Successfully uploaded images
[Info] Built on arm06
[Success] Release successfully created!
[Info] Release: 32786f02795741f98be320aeb8c0f84b (id: 2125948)
[Info] ┌────────────┬────────────┬────────────┬──────────────────────┐
[Info] │ Service │ Image Size │ Delta Size │ Build Time │
[Info] ├────────────┼────────────┼────────────┼──────────────────────┤
[Info] │ edge-logic │ 222.39 MB │ 15.35 MB │ 1 minute, 11 seconds │
[Info] ├────────────┼────────────┼────────────┼──────────────────────┤
[Info] │ model │ 219.94 MB │ 3.89 MB │ 27 seconds │
[Info] └────────────┴────────────┴────────────┴──────────────────────┘
[Info] Build finished in 5 minutes, 42 seconds
			    \
			     \
			      \\
			       \\
			        >\/7
			    _.-(6' \
			   (=___._/` \
			        ) \ |
			       / / |
			      / > /
			     j < _\
			 _.-' : ``.
			 \ r=._\ `.
			<`\\_ \ .`-.
			 \ r-7 `-. ._ ' . `\
			  \`, `-.`7 7) )
			   \/ \| \' / `-._
			              || .'
			               \\ (
			                >\ >
			            ,.-' >.'
			           <.'_.''
			             <'
(base)

```

Dashboard Logs (post reboot after re-deployment):

```auto
Rebooting
Supervisor starting
Starting service 'model sha256:db5520bdfd3f35467fb1cbb8f59d431845dcbc1a457e22ffb4bb434d8121da16'
Started service 'model sha256:db5520bdfd3f35467fb1cbb8f59d431845dcbc1a457e22ffb4bb434d8121da16'
 model Copying Model to shared volume...
 model 'model.tflite' -> 'shared-model/model.tflite'
 model 'labels.txt' -> 'shared-model/labels.txt'

```

There are no logs for edge-logic service. It is listed as downloaded and can be started, stopped, or restarted.

From what I can tell, the model service runs to the point that it copies the models but edge-logic does not run successfully.

---

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 7, 2022, 8:29pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/8 "2022-04-07T20:29:06Z")

</div>

I’m still hacking around on this. in altering the docker-compose.yml file to remove nearly all attributes that differ from the model service, the edge-logic service did run. However, I’m sure some of those attributes are needed, so I’m re-adding them one-by-one 😢

---

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 8, 2022, 1:35am UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/9 "2022-04-08T01:35:43Z")

</div>

It seems that the:

```auto
depends_on:
      - model

```

parameter in docker-compose.yml was the culprit.

I’ve submitted a pull request that also updates the sample to correspond with the current version of the Google Coral classify\_image example here: [pycoral/classify\_image.py at master · google-coral/pycoral · GitHub](https://github.com/google-coral/pycoral/blob/master/examples/classify_image.py)

---

<div class="post-metadata">

**Author:** ![mpous](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/mpous/32/4742_2.png) [@mpous](https://forums.balena.io/u/mpous)\
**Post date:** [April 8, 2022, 11:27am UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/11 "2022-04-08T11:27:40Z")

</div>

Hello @dt1900 just to confirm.

- You are trying to deploy this project [GitHub - balena-io-examples/coral-streaming-object-detector: This example will help you deploy a streaming camera feed with realtime people detection using the Coral Edge TPU for on-device ML inferencing.](https://github.com/balena-io-examples/coral-streaming-object-detector)
- Your `edge-logic` service is restarting all the time and not working.

Is that correct? did i understand properly?

if not, could you please share more Dashboard logs? could you please check the `Diagnostics` from your device and share the results?

Thanks

---

<div class="post-metadata">

**Author:** ![dt1900](https://avatars.discourse-cdn.com/v4/letter/d/7ab992/32.png) [@dt1900](https://forums.balena.io/u/dt1900)\
**Post date:** [April 8, 2022, 12:56pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/14 "2022-04-08T12:56:21Z")

</div>

Hi Marc,

That’s not quite correct…

- I was trying this project: [GitHub - balena-io-examples/coral-getting-started: A getting started example project for Coral.ai on balenaCloud](https://github.com/balena-io-examples/coral-getting-started)
- It has two services: model & edge-logic
- When deployed to my Google Coral Dev Board, the model service ran correctly, but there was no output from the edge-logic service.
- by removing the

```auto
depends_on:
      - model

```

parameter from docker-compose.yml, the edge-logic service would execute with logs displaying in the dashboard.

- I’ve submitted a pull request: [Updated to correspond with latest (as of 4/2022) Google Coral classify\_image example by dt1900 · Pull Request #4 · balena-io-examples/coral-getting-started · GitHub](https://github.com/balena-io-examples/coral-getting-started/pull/4) which not only addresses that issue, but updates the code to utilize the latest starting documentation from Google’s own classify\_image.py example that this repo was derived from.

From my standpoint, I’ve solved this issue on my own, but did want to point out that the depends\_on: parameter was causing issues. I’m not super experienced with docker, so I don’t have an explanation for what/why that is this case.

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [May 19, 2022, 6:34pm UTC](https://forums.balena.io/t/failure-to-get-started-with-coral-dev-board-and-python-balena-push-unsigned-repo/355574/15 "2022-05-19T18:34:45Z")

</div>

Hello @dt1900, just following up here. The `depends_on` merely starts the containers in a predefined order. In this case, the edge-logic service won’t start unless the model service has already started. This is so the model service can copy the models first. I also see that edge-logic is not producing any output, but was able to easily solve that by idling the model service after it has finished copying. Thanks for submitting your pull request though - I’ll take a look at it and post any comments regarding it there.
