# Issues with upgrading from 1.7.0 to 2.1.0

**URL:** <https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116>\
**Category:** General Discussions\
**Created:** [October 3, 2019, 11:02am UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116 "2019-10-03T11:02:28Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [October 9, 2019, 2:35pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/21 "2019-10-09T14:35:59Z")

</div>

Inside the .mender file without migration I still have the “ArtifactCommit\_Enter\_10\_migrate-configuration” script

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 9, 2019, 2:37pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/22 "2019-10-09T14:37:01Z")

</div>

Yeah, that is the problem and why it fails.

Unclear why it would be still there though. Might be a sstate cache problem again

---

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [October 9, 2019, 3:06pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/23 "2019-10-09T15:06:35Z")

</div>

Yes it could be a sstate cache problem. But I’m not so sure, because “bitbake -c clean mender && bitbake -c cleansstate mender && bitbake -c my-image && bitbake -c cleansstate my-image” should fix the problem, but not in this case.

The migration script is always included in the mender file, also with everything disabled in local.conf.

Do you have suggestions to fix this issue? Is there a trick?

PS: If remove quickly the script from the mender file, can I try to install the update without break something? Only to be sure that everything is ok, except for the script problem, at least I want to understand If I can upgrade successfully with this configuration.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 9, 2019, 3:20pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/24 "2019-10-09T15:20:59Z")

</div>

Try removing this folder,

`${DEPLOY_DIR_IMAGE}/mender-state-scripts`

Looking through the code there is nothing that would clean this up and the Mender Artifact bbclass will include scripts from this folder if they exist

---

<div class="post-metadata">

**Author:** ![Ks89](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/ks89/32/86_2.png) [@Ks89](https://hub.mender.io/u/Ks89)\
**Post date:** [October 9, 2019, 3:36pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/25 "2019-10-09T15:36:06Z")

</div>

Removing that folder, It worked perfectly. You are right, that folder was always there. It should be removed or ignored when unused.

So I successfully migrated from 1.7.0 to 2.1.0 and then to 2.1.0 to 2.1.0, removing that folder.

Thanks for the support  
👍

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 9, 2019, 3:40pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/26 "2019-10-09T15:40:16Z")

</div>

Thank you for reporting back all the way and you testing this flow is very valuable to us.

We will need to take a look at how we can improve the documentation on this, making the migration easier.

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 10, 2019, 3:23pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/27 "2019-10-10T15:23:19Z")

</div>

Update in progress,

> <https://github.com/mendersoftware/mender-docs/pull/776>

---

<div class="post-metadata">

**Author:** ![SuicidalLabRat](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/suicidallabrat/32/311_2.png) [@SuicidalLabRat](https://hub.mender.io/u/SuicidalLabRat)\
**Post date:** [October 21, 2019, 10:42pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/28 "2019-10-21T22:42:47Z")

</div>

Hey guys,

Has documentation outlining the 1.7 -\> 2.1 upgrade been published yet? If so, where?

Thanks!  
SLR-

---

<div class="post-metadata">

**Author:** ![SuicidalLabRat](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/suicidallabrat/32/311_2.png) [@SuicidalLabRat](https://hub.mender.io/u/SuicidalLabRat)\
**Post date:** [October 23, 2019, 8:47pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/29 "2019-10-23T20:47:45Z")

</div>

Bump.

We have a production release scheduled for the last week of November that was expected to include a client update. Based on what I am reading here, there isn’t yet an official path from 1.7 to 2.1, at least not documented. Is such a document imminent? I’m trying to gauge whether we need to pivot to mitigate the apparent risk in this upgrade.

SLR-

---

<div class="post-metadata">

**Author:** ![mirzak](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/mirzak/32/2056_2.png) [@mirzak](https://hub.mender.io/u/mirzak)\
**Post date:** [October 23, 2019, 9:33pm UTC](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116/30 "2019-10-23T21:33:24Z")

</div>

Sorry for the delay. It is currently documented here,

[https://docs.mender.io/2.2/troubleshooting/running-yocto-project-image#upgrading-from-thud-to-warrior-fails-with-dual-rootfs-configurat](https://docs.mender.io/2.2/troubleshooting/running-yocto-project-image#upgrading-from-thud-to-warrior-fails-with-dual-rootfs-configurat)

Even though it is under the 2.2 version of release docs, I believe is is applicable for 2.1 as well.

Also not that we are releasing 2.2 at the beginning of next week.

[Previous page](https://hub.mender.io/t/issues-with-upgrading-from-1-7-0-to-2-1-0/1116.md?page=1)
