# Balena Push Failure

**URL:** <https://forums.balena.io/t/balena-push-failure/104713>\
**Category:** balenaFin\
**Created:** [May 4, 2020, 6:43pm UTC](https://forums.balena.io/t/balena-push-failure/104713 "2020-05-04T18:43:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 6:43pm UTC](https://forums.balena.io/t/balena-push-failure/104713/1 "2020-05-04T18:43:35Z")

</div>

Hello,  
My balena fin board is in a very strange state. This morning I tried purging data (as I have done many times before). Since the purge, I have not been able to push a new image. When I try to push a new image, I get the following output:

BUILD SUCCESSFUL in 2s  
8 actionable tasks: 8 executed  
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,192.168.2.113,–nolive] length=5  
[debug] Using . as build source  
[Debug] Checking we can access device  
[Debug] Sending request to [http://192.168.2.113:48484/ping](http://192.168.2.113:48484/ping)  
Could not communicate with local mode device at address 192.168.2.113

My balena fin is connected via Ethernet. I can ping it, and I can ssh to the Balena OS (using “balena ssh {ip\_address}”). I cannot ssh to our application container, which appears to have been deleted with the purge.

I ran the Balena cloud diagnostics and the check\_image\_corruption test failed. I verified this is not due to a disk space issue.

What else can I do, or look at? I’d like to figure out what happened and how this can be repaired (if possible) in case this happens to any of our devices in the field.

Thank you!

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 7:00pm UTC](https://forums.balena.io/t/balena-push-failure/104713/2 "2020-05-04T19:00:23Z")

</div>

Hi dstewart,

Can you tell us what version of balenaOS (and supervisor) you’re working with? Also, have you tried using the `prune` command from the Host OS shell ```balena system prune [–volumes]`` to clear away any previous artifacts`?

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 7:41pm UTC](https://forums.balena.io/t/balena-push-failure/104713/4 "2020-05-04T19:41:56Z")

</div>

Hi John,  
Thank you for the fast response! I ran “balena system prune --volumes”, but still get the same error when I try to push a new image.  
Balena OS: 2.48.0+rev1  
Supervisor: 10.8.0

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 7:46pm UTC](https://forums.balena.io/t/balena-push-failure/104713/5 "2020-05-04T19:46:39Z")

</div>

Hi @dstewart,

Is the project you’re pushing public? I can try on a balenaFin and see if I get any errors. Do you get the same result when pushing different project code? Also, is the application in “local node”? If so, try disabling that (for now).

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 7:59pm UTC](https://forums.balena.io/t/balena-push-failure/104713/7 "2020-05-04T19:59:29Z")

</div>

The project is not public. I have pushed this same project many times, so I don’t expect that to be part of the problem. The gateway is not running in local mode currently.  
Would you like me to grant support access? Would that be helpful?

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:01pm UTC](https://forums.balena.io/t/balena-push-failure/104713/8 "2020-05-04T20:01:23Z")

</div>

Hi @dstewart,

Go ahead and grant support access. There’s nothing on the device currently that you want, right? I’ll take a look at the logs and prompt you before I take any actions (unless you instruct me otherwise).

Thanks,  
John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:02pm UTC](https://forums.balena.io/t/balena-push-failure/104713/9 "2020-05-04T20:02:56Z")

</div>

Okay, I just granted access. Correct - nothing we want. We are hoping to understand what happened and how we could recover the gateway if this happens again.  
Thank you!

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:03pm UTC](https://forums.balena.io/t/balena-push-failure/104713/10 "2020-05-04T20:03:38Z")

</div>

Can you provide the device UUID?

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:07pm UTC](https://forums.balena.io/t/balena-push-failure/104713/11 "2020-05-04T20:07:06Z")

</div>

UUID: de16851e66820403c2e27712a180d90c

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:16pm UTC](https://forums.balena.io/t/balena-push-failure/104713/14 "2020-05-04T20:16:21Z")

</div>

Hi,

If you’re not in local mode, try pushing using the application name, i.e. `balena push gateway`. Using the device IP address only works if you’re in local mode.

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:19pm UTC](https://forums.balena.io/t/balena-push-failure/104713/15 "2020-05-04T20:19:41Z")

</div>

I have tried that approach too (balena push {gateway}), and get the same error.

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:26pm UTC](https://forums.balena.io/t/balena-push-failure/104713/18 "2020-05-04T20:26:14Z")

</div>

Hi,

Can you add an environment variable DEBUG=1 and paste the complete logs you get? Also, the device ID you sent appears to show an active, running container.

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:30pm UTC](https://forums.balena.io/t/balena-push-failure/104713/19 "2020-05-04T20:30:23Z")

</div>

Yes, here is the full output:  
damon@:~/Development/github/gateway$ balena push de16851.local --nolive  
[debug] original argv0="/usr/local/lib/balena-cli/bin/node" argv=[/usr/local/lib/balena-cli/bin/node,/usr/local/lib/balena-cli/bin/run,push,de16851.local,–nolive] length=5  
[debug] Using . as build source  
[Debug] Checking we can access device  
[Debug] Sending request to [http://de16851.local:48484/ping](http://de16851.local:48484/ping)  
Could not communicate with local mode device at address de16851.local

If you need help, don’t hesitate in contacting our support forums at  
[https://forums.balena.io](https://forums.balena.io)

For CLI 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/](https://github.com/balena-io/balena-cli/issues/)

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:32pm UTC](https://forums.balena.io/t/balena-push-failure/104713/20 "2020-05-04T20:32:26Z")

</div>

Thanks. Can you try the push with the application name? balena push gateway?

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:37pm UTC](https://forums.balena.io/t/balena-push-failure/104713/22 "2020-05-04T20:37:29Z")

</div>

It was running, but I got nervous and aborted it. We have a bunch of gateways. How does this know to only update the gateway here at my desk, and to not update all of our gateways?

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:39pm UTC](https://forums.balena.io/t/balena-push-failure/104713/23 "2020-05-04T20:39:54Z")

</div>

Hi,

Do you have multiple applications named “gateway”? If so, that could be a problem. Try renaming the application “gateway-1” (or something like that) from application’s Actions menu. Then do `balena push gateway-1`.

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:42pm UTC](https://forums.balena.io/t/balena-push-failure/104713/24 "2020-05-04T20:42:02Z")

</div>

I’m not familiar with the “balena push {application\_name}” command. That seems to push the image to the balena cloud, right? If so, will all of my gateways in the field update to this image? This is a dev image and I need to be certain it will only be uploaded to the one gateway at my desk, and not all gateways.

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:42pm UTC](https://forums.balena.io/t/balena-push-failure/104713/25 "2020-05-04T20:42:48Z")

</div>

If you have multiple devices in a single app, all will be updated at the same time with the latest unless you pin the other devices to a previous release. You can Pin from the chevron menu (next to the Restart button).

---

<div class="post-metadata">

**Author:** ![jtonello](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/jtonello/32/3246_2.png) [@jtonello](https://forums.balena.io/u/jtonello)\
**Post date:** [May 4, 2020, 8:50pm UTC](https://forums.balena.io/t/balena-push-failure/104713/27 "2020-05-04T20:50:57Z")

</div>

You can also create a new application (`gateway-dev`) and move the device to that application. Do your push to `balena push gateway-dev`). When you move the device back to “gateway” it will receive the last push you did to the application. There’s a 10-device limit on free accounts, but no limit on applications.

Generally speaking, all devices in an application are typically set to run the same version of the code you push, creating a fleet of that version. That way, each new device you deploy to any application automatically gets provisioned to that application. You can pin devices to avoid having them all (or some) get the latest push, but it can get tricky to manage all the pinned versions. Better to create separate applications for different versions of an application or use environment variables to manage specific difference.

John

---

<div class="post-metadata">

**Author:** ![dstewart](https://avatars.discourse-cdn.com/v4/letter/d/54ee81/32.png) [@dstewart](https://forums.balena.io/u/dstewart)\
**Post date:** [May 4, 2020, 8:59pm UTC](https://forums.balena.io/t/balena-push-failure/104713/28 "2020-05-04T20:59:46Z")

</div>

One more question. Doing the balena push {application} will push a new image through the cloud, which may or may not work. But it doesn’t explain why I can’t push an image locally (when the gateway is in local mode). Do you have any idea why that isn’t working? Or do you know why the “check\_image\_corruption” test is failing? (The gateway is not in local mode now.)

[Next page](https://forums.balena.io/t/balena-push-failure/104713.md?page=2)
