# Problem deploying to OpenBalena

**URL:** <https://forums.balena.io/t/problem-deploying-to-openbalena/36475>\
**Category:** openBalena\
**Created:** [October 12, 2019, 12:45pm UTC](https://forums.balena.io/t/problem-deploying-to-openbalena/36475 "2019-10-12T12:45:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [October 12, 2019, 12:45pm UTC](https://forums.balena.io/t/problem-deploying-to-openbalena/36475/1 "2019-10-12T12:45:16Z")

</div>

Hi,

I’m having a strange problem deploying. I’ve dropped back to trying the example “sense-snake” with #OpenBalena and it’s failing to deploy with this error

```
ajlennon@ajlennon-spriteguard:/data_drive/ignatia/sense-snake$ balena deploy ignatia-sensor-app-1 --logs --source . --emulated --build
Debug: original argv0="balena" argv=[/home/ajlennon/balena-cli/balena,/snapshot/versioned-source/bin/balena,deploy,ignatia-sensor-app-1,--logs,--source,.,--emulated,--build] length=9
[Debug] Parsing input...
[Debug] Loading project...
[Debug] Resolving project...
[Debug] Failed to resolve project: 
[Debug] AggregateError of:
[Debug] Error: ENOENT: no such file or directory, open '/data_drive/ignatia/sense-snake/docker-compose.yml'
[Debug] Error: ENOENT: no such file or directory, open '/data_drive/ignatia/sense-snake/docker-compose.yaml'
[Info] Creating default composition with source: /data_drive/ignatia/sense-snake
[Debug] Creating project...
[Info] Building for armv7hf/raspberrypi3
[Build] Building services...
[Build] main Preparing...
[Info] Emulation is enabled
[Debug] Found build tasks:
[Debug] main: build [.]
[Debug] Resolving services with [raspberrypi3|armv7hf]
[Debug] Found project types:
[Debug] main: Dockerfile.template
[Debug] Prepared tasks; building...
[Build] Built 1 service in 0 seconds
[Error] Deploy failed
SecretRemovalError: The command '/bin/sh -c apk update && apk add jq' returned a non-zero code: 1
    at Object.<anonymous> (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:122:19)
    at Generator.throw (<anonymous>)
    at rejected (/snapshot/versioned-source/node_modules/resin-multibuild/build/index.js:5:65)

If you need help, don't hesitate in contacting our support forums at
https://forums.balena.io

For bug reports or feature requests, have a look at the GitHub issues or
create a new one at: https://github.com/balena-io/balena-cli/issues/

ajlennon@ajlennon-spriteguard:/data_drive/ignatia/sense-snake$ 

```

Any ideas?

Thanks!

Alex

---

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [October 12, 2019, 1:13pm UTC](https://forums.balena.io/t/problem-deploying-to-openbalena/36475/2 "2019-10-12T13:13:14Z")

</div>

OK I see lots of other people have had this problem. I’ve updated to the latest balena-cli release and it’s gone away. Now I seem to have some certificate problem to deal with

```
[Info] Pushing images to registry...
Retrying "registry.sensorcity.io/v2/e4653979beff4bc80275f572fa0da9a9:latest" after 2.00s (1 of 3) due to: Error: Get https://registry.sensorcity.io/v2/: x509: certificate signed by unknown authority
Retrying "registry.sensorcity.io/v2/e4653979beff4bc80275f572fa0da9a9:latest" after 2.80s (2 of 3) due to: Error: Get https://registry.sensorcity.io/v2/: x509: certificate signed by unknown authority
Retrying "registry.sensorcity.io/v2/e4653979beff4bc80275f572fa0da9a9:latest" after 3.92s (3 of 3) due to: Error: Get https://registry.sensorcity.io/v2/: x509: certificate signed by unknown authority
[Debug] Saving image registry.sensorcity.io/v2/e4653979beff4bc80275f572fa0da9a9
[Debug] Untagging images...
[Info] Saving release...
[Error] Deploy failed
```

---

<div class="post-metadata">

**Author:** ![ajlennon](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ajlennon/32/63_2.png) [@ajlennon](https://forums.balena.io/u/ajlennon)\
**Post date:** [October 12, 2019, 1:18pm UTC](https://forums.balena.io/t/problem-deploying-to-openbalena/36475/3 "2019-10-12T13:18:36Z")

</div>

My bad again. Needed to add the ca.crt to the certificate store and then restart docker.

Seems ok now 🙂

---

<div class="post-metadata">

**Author:** ![sradevski](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sradevski/32/1609_2.png) [@sradevski](https://forums.balena.io/u/sradevski)\
**Post date:** [October 14, 2019, 7:50am UTC](https://forums.balena.io/t/problem-deploying-to-openbalena/36475/4 "2019-10-14T07:50:53Z")

</div>

Glad to hear you sorted it out 🙂
