# Upgrade from v1 to v2 failed

**URL:** <https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111>\
**Category:** Product support\
**Created:** [November 1, 2017, 5:22pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111 "2017-11-01T17:22:43Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 1, 2017, 5:22pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/1 "2017-11-01T17:22:43Z")

</div>

Howdy, could you please take a look at the reason device `apps/273905/devices/594068` failed during Resin OS upgrade?

Cheers!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 1, 2017, 5:33pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/4 "2017-11-01T17:33:45Z")

</div>

Checking it out, can you enable support access?

Also, should we finish up the update for you on this device?

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 1, 2017, 5:45pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/5 "2017-11-01T17:45:37Z")

</div>

Done. You can finish the upgrade.

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 1, 2017, 6:46pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/6 "2017-11-01T18:46:45Z")

</div>

Hey. So finished the update. It looks like the update hit a rare race condition in a bad way, just digging into that and making sure that it does not happen again.

When finishing up the update manually, unfortunately I’ve missed one step, and that means that your application’s `/data` content wasn’t backed up and restored over the update. Really sorry about this, taking it very seriously and checking how to prevent such things in the future…☹

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 1, 2017, 6:48pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/7 "2017-11-01T18:48:10Z")

</div>

That’s awesome that you were able to kick it to the new version. Don’t worry about `/data`, it’s all transient.

Thank you!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 1, 2017, 6:49pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/8 "2017-11-01T18:49:49Z")

</div>

Phew, lucky this time. Much appreciated for the feedback, and let us know if there’s any other issue with the device!  
Just working now to fix both things mentioned.

Have you updated any other device yet, that went through fine, or was this the first one you tried?

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 1, 2017, 6:52pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/9 "2017-11-01T18:52:31Z")

</div>

This is the first and only v1 to v2 I’ve tried. I’ve taken one from v2 to v2 without any issues.

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 1, 2017, 6:54pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/10 "2017-11-01T18:54:13Z")

</div>

Makes sense, thanks! I wonder if you have many 1.x devices left in your fleet?

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 1, 2017, 6:55pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/11 "2017-11-01T18:55:19Z")

</div>

There are a few `/apps/273905/devices`. Happy to try an upgrade them to help you test out the changes…

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 1, 2017, 6:57pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/12 "2017-11-01T18:57:49Z")

</div>

That’s a very kind offer, thanks! Will keep you posted!

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 28, 2017, 2:13pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/13 "2017-11-28T14:13:24Z")

</div>

Hello again, if you have time, here is another v1 -\> v2 that’s gone funny.

(PM sent)

Cheers!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 28, 2017, 4:11pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/17 "2017-11-28T16:11:45Z")

</div>

Thanks, checking it out!

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [November 28, 2017, 4:56pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/18 "2017-11-28T16:56:03Z")

</div>

Fixed up, the device is now running the updated resinOS.  
This is an issue that we see rarely and looking for ways to reproduce, thanks for the heads up.

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [November 28, 2017, 5:10pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/19 "2017-11-28T17:10:18Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [February 18, 2018, 2:05am UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/20 "2018-02-18T02:05:02Z")

</div>

@imrehg hello again, I found another device that finally popped back online on v1 (5a2b5498dd6010f46f8b84ddeedeed827fc1103ef33809e5354b5fb7f3a392) any chance to get this upgraded to v2? The automatic upgrade failed…

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [February 18, 2018, 8:32am UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/21 "2018-02-18T08:32:37Z")

</div>

Hey @ab1, that looks like our good friend of btrfs again. Fortunately it was pretty straightforward to straighten it out - rebooted the device and retried the update from the dashboard. Now it is running `2.3.0+rev1` properly, and you can continue update it to the 2.x version that you wanted to get to.

Thanks for the heads up! 🙂

---

<div class="post-metadata">

**Author:** ![ab1](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab1/32/301_2.png) [@ab1](https://forums.balena.io/u/ab1)\
**Post date:** [February 18, 2018, 5:23pm UTC](https://forums.balena.io/t/upgrade-from-v1-to-v2-failed/2111/22 "2018-02-18T17:23:46Z")

</div>

Thanks again!
