# Device not updating after push

**URL:** <https://forums.balena.io/t/device-not-updating-after-push/2776>\
**Category:** Product support\
**Created:** [March 21, 2018, 1:20pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776 "2018-03-21T13:20:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixbanguera](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@felixbanguera](https://forums.balena.io/u/felixbanguera)\
**Post date:** [March 21, 2018, 1:20pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/1 "2018-03-21T13:20:08Z")

</div>

I have been having some trouble updating my code in the repo on Resin.

I first tried manually copying the multicontainer example provided by the getting-started page, but it didn’t work, it kept trying to find a **Dockerfile** in the root directory.

Then I clone the exact same project, and added resin remote from within it, then the push succeeded.

When I tried to go back to the manually updated folder it gave me some errors like I have to pull first, but the pull failed due to unrelated stories and even fixing that, gave me a fail in push. So eventually what I did was erase the **.git** folder, run `git init` again, added the resin remote, move all manual content to a different branch (for testing purposes), then pulling from resin and merging with previously saved branch. I fixed some conflicts and run `git push resin master`, the build run ok, and it showed that it pushed the changes to resin master, however, the changes are not being downloaded by my device.

i’m using an **Intel NUC** with **Resin OS 2.12.0+rev1 (dev)**

I attach an image in which you will appreciate the difference in commits.

 ![36%20AM](https://global.discourse-cdn.com/balena/original/1X/9d0991d5069efee8eb88c1545017017152136ee0.png)

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![lucianbuzzo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lucianbuzzo/32/615_2.png) [@lucianbuzzo](https://forums.balena.io/u/lucianbuzzo)\
**Post date:** [March 21, 2018, 1:39pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/4 "2018-03-21T13:39:30Z")

</div>

If your source code has changed significantly from the code you last pushed to our git server then the push will fail and you will need to use `git push resin master --force` to force the git server to accept the push.

---

<div class="post-metadata">

**Author:** ![felixbanguera](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@felixbanguera](https://forums.balena.io/u/felixbanguera)\
**Post date:** [March 21, 2018, 2:15pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/6 "2018-03-21T14:15:41Z")

</div>

@lucianbuzzo yes and thanks, I have already passed that problem thg.

The problem I have right now is that even with the build and push passing, and even seeing that new release in the **releases** section, but the Device itself won’t update to the lates commit.

I attach an image with both views **releases** and **Devices list** so you can appreciate it is currently behind.

![38%20AM](https://global.discourse-cdn.com/balena/original/1X/9368af967761bcbeaae09af4ae23ad9e0fc8a2af.png)

---

<div class="post-metadata">

**Author:** ![lucianbuzzo](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lucianbuzzo/32/615_2.png) [@lucianbuzzo](https://forums.balena.io/u/lucianbuzzo)\
**Post date:** [March 21, 2018, 2:17pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/7 "2018-03-21T14:17:14Z")

</div>

Hi @felixbanguera  
Looking at your screenshots I can see you are using resinOS v2.12.0 which has some known issues with pulling updates. Updating to the latest OS version should fix this issue for you.

---

<div class="post-metadata">

**Author:** ![felixbanguera](https://avatars.discourse-cdn.com/v4/letter/f/c67d28/32.png) [@felixbanguera](https://forums.balena.io/u/felixbanguera)\
**Post date:** [March 21, 2018, 2:28pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/8 "2018-03-21T14:28:04Z")

</div>

ok @lucianbuzzo , thanks, will do and let you know.

Thanks for the help in advance.

---

<div class="post-metadata">

**Author:** ![sajayi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/sajayi/32/877_2.png) [@sajayi](https://forums.balena.io/u/sajayi)\
**Post date:** [March 22, 2018, 3:02pm UTC](https://forums.balena.io/t/device-not-updating-after-push/2776/10 "2018-03-22T15:02:49Z")

</div>

Updating to the latest OS version worked for me. Thanks @lucianbuzzo
