# Can't migrate from V2 to V3 because the migrate app is not allowed to delete

**URL:** <https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954>\
**Category:** Migrating Devices to V3\
**Created:** [August 24, 2021, 2:40pm UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954 "2021-08-24T14:40:48Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![guiz8](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/guiz8/32/35697_2.png) [@guiz8](https://www.thethingsnetwork.org/forum/u/guiz8)\
**Post date:** [August 27, 2021, 8:23am UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954/21 "2021-08-27T08:23:54Z")

</div>

Thanks for the formatting help. I’ve run the following command:  
`ttn-lw-migrate application --verbose --source ttnv2 "kommunales_personenzaelen" devices_kommunales_personenzaelen.json`

---

<div class="post-metadata">

**Author:** ![KrishnaIyerEaswaran2](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/krishnaiyereaswaran2/32/44663_2.png) [@KrishnaIyerEaswaran2](https://www.thethingsnetwork.org/forum/u/KrishnaIyerEaswaran2)\
**Post date:** [August 27, 2021, 9:22am UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954/22 "2021-08-27T09:22:16Z")

</div>

````auto
~ » ttn-lw-migrate application --source ttnv2 "myapp" --verbose > myapp.json
 DEBUG [core]parsed scheme: ""
 DEBUG [core]scheme "" not registered, fallback to default scheme
 DEBUG [core]ccResolverWrapper: sending update to cc: {[{discovery.thethings.network:1900 <nil> 0 <nil>}] <nil> <nil>}
 DEBUG [core]ClientConn switching balancer to "pick_first"
 DEBUG [core]Channel switches to new LB policy "pick_first"
 DEBUG [core]Subchannel Connectivity change to CONNECTING
 DEBUG [core]Subchannel picks a new address "discovery.thethings.network:1900" to connect
 DEBUG [core]pickfirstBalancer: UpdateSubConnState: 0xc00075fac0, {CONNECTING <nil>}
 DEBUG [core]Channel Connectivity change to CONNECTING
 DEBUG [core]Subchannel Connectivity change to READY
 DEBUG [core]pickfirstBalancer: UpdateSubConnState: 0xc00075fac0, {READY <nil>}
 DEBUG [core]Channel Connectivity change to READY
 DEBUG rpc-client: call done auth-type=key duration=72.726973ms method=/discovery.Discovery/GetByAppID service-name=ttn-lw-migrate service-version=2.x.x
 DEBUG [core]parsed scheme: ""
 DEBUG [core]scheme "" not registered, fallback to default scheme
 DEBUG [core]ccResolverWrapper: sending update to cc: {[{eu.thethings.network:1904 <nil> 0 <nil>}] <nil> <nil>}
 DEBUG [core]ClientConn switching balancer to "pick_first"
 DEBUG [core]Channel switches to new LB policy "pick_first"
 DEBUG [core]Subchannel Connectivity change to CONNECTING
 DEBUG [core]Subchannel picks a new address "eu.thethings.network:1904" to connect
 DEBUG [core]pickfirstBalancer: UpdateSubConnState: 0xc0001704e0, {CONNECTING <nil>}
 DEBUG [core]Channel Connectivity change to CONNECTING
 DEBUG [core]Subchannel Connectivity change to READY
 DEBUG [core]pickfirstBalancer: UpdateSubConnState: 0xc0001704e0, {READY <nil>}
 DEBUG [core]Channel Connectivity change to READY
 DEBUG rpc-client: call done auth-type=key duration=133.805999ms method=/handler.ApplicationManager/GetDevicesForApplication service-name=ttn-lw-migrate service-version=2.x.x
 DEBUG rpc-client: call done auth-type=key duration=25.996441ms method=/handler.ApplicationManager/GetDevice service-name=ttn-lw-migrate service-version=2.x.x
  INFO Clearing device keys dev_eui=xxxx device_id=home-node-1
 DEBUG rpc-client: call done auth-type=key duration=54.338871ms method=/handler.ApplicationManager/SetDevice service-name=ttn-lw-migrate service-version=2.x.x
 DEBUG rpc-client: call done auth-type=key duration=27.921412ms method=/handler.ApplicationManager/GetDevice service-name=ttn-lw-migrate service-version=2.x.x
  INFO Clearing device keys dev_eui=xxxx device_id=home-uno-b199
 DEBUG rpc-client: call done auth-type=key duration=34.82058ms method=/handler.ApplicationManager/SetDevice service-name=ttn-lw-migrate service-version=2.x.x
 DEBUG rpc-client: call done auth-type=key duration=36.46346ms method=/handler.ApplicationManager/GetDevice service-name=ttn-lw-migrate service-version=2.x.x
  INFO Clearing device keys dev_eui=xxxx device_id=uno-1707
 DEBUG rpc-client: call done auth-type=key duration=27.273897ms method=/handler.ApplicationManager/SetDevice service-name=ttn-lw-migrate service-version=2.x.x
 DEBUG [core]Channel Connectivity change to SHUTDOWN
 DEBUG [core]Subchannel Connectivity change to SHUTDOWN
 DEBUG [core]Channel Connectivity change to SHUTDOWN
 DEBUG [core]Subchannel Connectivity change to SHUTDOWN
```

I just did a check and it works for me. When did you attempt this? Also is there any difference between
`pax_heltecv2_10521c5ad67cfeff ` and `pax_heltecv2_10521c5ad70cfeff `?
````

---

<div class="post-metadata">

**Author:** ![577e4e6de7caf50f0070](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/577e4e6de7caf50f0070/32/35697_2.png) [@577e4e6de7caf50f0070](https://www.thethingsnetwork.org/forum/u/577e4e6de7caf50f0070)\
**Post date:** [August 27, 2021, 10:15am UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954/23 "2021-08-27T10:15:37Z")

</div>

The migrate tool is now working for me.  
Thank you for the assistance!

---

<div class="post-metadata">

**Author:** ![guiz8](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/guiz8/32/35697_2.png) [@guiz8](https://www.thethingsnetwork.org/forum/u/guiz8)\
**Post date:** [August 27, 2021, 12:08pm UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954/25 "2021-08-27T12:08:47Z")

</div>

I migrated an other application without any problems.  
Don’t know what is special in the other one, migrated it manually.  
Thanks for your support.

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [August 28, 2021, 12:09pm UTC](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954/26 "2021-08-28T12:09:44Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

[Previous page](https://www.thethingsnetwork.org/forum/t/cant-migrate-from-v2-to-v3-because-the-migrate-app-is-not-allowed-to-delete/50954.md?page=1)
