# Subscriptions/episodes lost after app update

**URL:** https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497
**Category:** Support
**Created:** [December 24, 2020, 1:19pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497 "2020-12-24T13:19:47Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SonicT](https://forum.antennapod.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@SonicT](https://forum.antennapod.org/u/SonicT)
#### Post date: [December 24, 2020, 1:19pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/1 "2020-12-24T13:19:47Z")

</div>

**App version** : 2.1.1 (a7c6e697c) installed from F-Droid

**Android version** : 10 /e/OS 0.13-2020120789006

**Device model** : Fairphone 3+

**Expected behaviour** : App to update to new version without affecting stats/subscriptions/episode data.

**Current behaviour** : App appears as first installed with no subscriptions/episodes/data. The folder structure of subscriptions with downloaded episodes is still present at Android/Data/de.danoeh.antennapod/files/media. In AntennaPod ‘settings/storage/choose data folder’ the location /storage/emulated/0/Android/data/de.danoeh.antennapod/files is selected, unable to change this.

**First occurred** : 24/12/2020

Can anyone suggest a way to re-link the app to the data still on the phone or should I delete everything and re-subscribe? I haven’t tried adding a new subscription yet in case that overwrites a recoverable database.

Thanks!

---

<div class="post-metadata">

### Author: ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)
#### Post date: [December 24, 2020, 2:33pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/2 "2020-12-24T14:33:34Z")

</div>

That’s sad to hear. When AntennaPod detects a corrupted database, it creates a backup in `/storage/emulated/0/Android/data/de.danoeh.antennapod/files/CorruptedDatabaseBackup.db`. It might be possible to repair most of the database but that requires some development experience. Because AntennaPod 2.1.1 contains some changes related to the database, I would be interested to know if the corruption happened just before the update or after the update. Would it be okay for you to send me the corrupted version? It might contain sensitive information (your exact subscriptions, etc), so (if you agree to send it) it would probably be best to do this via email. My address is `info@<my user name>.com`

---

<div class="post-metadata">

### Author: ![SonicT](https://forum.antennapod.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@SonicT](https://forum.antennapod.org/u/SonicT)
#### Post date: [December 24, 2020, 4:08pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/3 "2020-12-24T16:08:17Z")

</div>

Hi ByteHamster, thanks for the info. I’m afraid I can’t see a corrupted database file. Is the /emulated/0/Android folder different to the one I mentioned earlier? Like a hidden folder?

---

<div class="post-metadata">

### Author: ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)
#### Post date: [December 24, 2020, 5:18pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/4 "2020-12-24T17:18:50Z")

</div>

Hmm, does it disply something interesting on the “report bug” screen?

---

<div class="post-metadata">

### Author: ![SonicT](https://forum.antennapod.org/letter_avatar_proxy/v4/letter/s/b2d939/32.png) [@SonicT](https://forum.antennapod.org/u/SonicT)
#### Post date: [December 24, 2020, 5:34pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/5 "2020-12-24T17:34:25Z")

</div>

‘no crash report recorded’, nothing else interesting. I’ve deleted my media folder and re-subscribed to all the podcasts (I made a list first). Hopefully this doesn’t happen again next update!

---

<div class="post-metadata">

### Author: ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)
#### Post date: [December 24, 2020, 7:24pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/6 "2020-12-24T19:24:06Z")

</div>

Okay, thanks. I hope that it actually happened just before the update 🙂

---

<div class="post-metadata">

### Author: ![keunes](https://forum.antennapod.org/user_avatar/forum.antennapod.org/keunes/32/61_2.png) [@keunes](https://forum.antennapod.org/u/keunes)
#### Post date: [December 26, 2020, 7:34am UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/7 "2020-12-26T07:34:14Z")

</div>

@ByteHamster Does Android clean up files during an update process? If yes, could we indicate corrupt database backups should be maintained? (This sounds like a corrupted database indeed, and it would be oddirf it wasn’t created in the first place - or do we only save this file since 2.1?)

---

<div class="post-metadata">

### Author: ![marcocucinato](https://forum.antennapod.org/user_avatar/forum.antennapod.org/marcocucinato/32/417_2.png) [@marcocucinato](https://forum.antennapod.org/u/marcocucinato)
#### Post date: [December 29, 2020, 10:49am UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/8 "2020-12-29T10:49:24Z")

</div>

Hey @ByteHamster, I have the same issue and I found the corrupted db file. Should I send it to you to analyse?

---

<div class="post-metadata">

### Author: ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)
#### Post date: [December 29, 2020, 1:20pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/9 "2020-12-29T13:20:32Z")

</div>

> [@keunes](#):
>
> or do we only save this file since 2.1?

We have that backup code in place for a pretty long time. At least AntennaPod 1.8.x, I think.

> [@marcocucinato](#):
>
> Should I send it to you to analyse?

Sad to hear that you are affected, too. It would be great if you could send it to me, yes 🙂

---

<div class="post-metadata">

### Author: ![ByteHamster](https://forum.antennapod.org/user_avatar/forum.antennapod.org/bytehamster/32/4041_2.png) [@ByteHamster](https://forum.antennapod.org/u/ByteHamster)
#### Post date: [December 31, 2020, 5:49pm UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/10 "2020-12-31T17:49:33Z")

</div>

Thanks @marcocucinato. I received your email. Unfortunately, that database is completely shattered. I can’t even find the version. Over the last few years, we have received some reports of database corruptions (see [https://github.com/AntennaPod/AntennaPod/issues/2463](https://github.com/AntennaPod/AntennaPod/issues/2463)) but the number of users affected is extremely small and it can not reliably be reproduced. That makes it really hard to track down ☹

---

<div class="post-metadata">

### Author: ![system](https://forum.antennapod.org/uploads/default/original/2X/3/3c7b7383b59ca5ff7c2c145444e45bd1436aa6c1.png) [@system](https://forum.antennapod.org/u/system)
#### Post date: [February 25, 2022, 8:11am UTC](https://forum.antennapod.org/t/subscriptions-episodes-lost-after-app-update/497/11 "2022-02-25T08:11:18Z")

</div>


