Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data loss #4148

Closed
ABHISHEKCHHIKARA opened this issue Dec 27, 2024 · 15 comments · Fixed by #4149
Closed

Data loss #4148

ABHISHEKCHHIKARA opened this issue Dec 27, 2024 · 15 comments · Fixed by #4149
Assignees
Milestone

Comments

@ABHISHEKCHHIKARA
Copy link

ABHISHEKCHHIKARA commented Dec 27, 2024

Describing the bug
So this bug happened as follows :
I first had 3.9 kiwix version , used it for some time , it had the library bugs as stated many times before about zim files not loading and getting detected in the sd card location of app storage .
Then I installed the latest 3.13 version from GitHub , the "standalone" combined version of the app , I downloaded various files for a few days , the process was like : I have an external 2tb hdd so I will charge my Realme Pad X ( Android 12 ) to 100 % , connect the hdd and download the files until it dropped to 20 - 30 % , sometimes I did this , other times I downloaded files in the local storage and then moved them to the same storage location in hdd as it is in local storage and specified by the app.
Now , the app wasn't able to determine the downloaded files in hdd upon disconnection and reconnection even if I saved all things properly and ejected perfectly with interrupting any process . This too wasn't the problem for me for a while as all the files existed and I could see which one I downloaded and which ones I need to download later on ( although the app displayed all the files available for download as it wasn't able to determine the downloaded ones ) (the same functionality was given in previous versions of kiwix like 3.9 or even far back as 3.3.3 , i didn't notice any change in the app's function other than the individual zim file picker being improved however it could only pick 1 file at a time ) , the problem was the fact upon installing the google play store version .
I disconnected the hdd , installed the app to make sure it doesn't destroy the files in hdd , then opened the app set up its storage permissions , plugged in the hdd , saw that the directory was slightly different as it was org.kiwix.mobile so I moved the folder kiwix in this directory and then went to settings to select hdd as storage location , I left it to download khan academy and gutenberg project as there are 2 simultaneous downloads supported . I went outside home and came back after 5 hours , apparently there was a network error and it stopped downloading but also fried all the remaining files .
I believe this issue was not due to internet or file size but rather at the moment when I selected the external storage as download directory in settings , any file during that moment got vanished ( I tried this again )
One more thing to notice is that the app uses the system's download manager which may be good for various number of device able to have the download functionality in sd card working properly but it itself is also a source of error , I noticed many time the realme download manager is laggy and it downloads the files in .zim".oplusdownload" extension and upon full download it removes this .oplusextension extension but often times if there is a small error in internet connection or a moment of disconnection from hdd for whatever reasons , it kills the ongoing download and makes everything buggy as hell . If I try to cancel it and redownload the app is unable to do so because the downloader renamed the new file with -01 at end and doesn't remove the previously failed task , then I would forcefully kill the app or it kills itself often times when I try to stop the download as it will repeat that download process but unable to do anything . I would then deleted both of the files and freshly start the download for it to work .
Let me know if you want more details of any specific event or any other curious point of what happens if I do something else .

Expected behavior

Steps to reproduce the behavior:
1.) Open the app , connected the hdd , change storage location to sd card (Now it shouldn't clear all the files in this directory ) ( I would like an option to force make external as the default directory even if it is not connected and keep it that way , it shouldn't start the download to internal storage immediately as it causes so many conflictions and errors in meanwhile something goes wrong in the connection ) ( the app should ask if I want to start the download in internal storage and a check mark to keep it like that for all the files from now on )
2.) Load up all the .zim files in Kiwix folder in the library of the external directory in Android/media/org.kiwix.mobile and sync them up to the ones available online (I had them downloaded from kiwix but it wasn't able to identify its own downloaded files , something like the size is same if the name changes slightly like -01 in the end shouldn't make it crash and otherwise )
3.) Even if it isn't able to pick them up the + option should allow more than 1 files to be saved all at once in the library .
4.) An option to close all the ongoing downloads all at once in the downloads and a multi select UI to select various files to be downloaded all at once .
5.) Upon downloading all the files to the sd card , stop it from changing the directory to internal and refreshing the library as I need to remove the hdd from the device and the app shouldn't forget all the work it did and the locations .

Screenshots
I could add screenshots of the loading blue bar stuck in the library but which else screenshots should I provide ?

Environment

  • Version of Kiwix Android : 3.13.0
  • Device : Realme Pad X ( RMP2107_11 )
  • OS version : Android 12 , Colour OS 12 , Realme UI 3.0
@kelson42
Copy link
Collaborator

@MohitMaliFtechiz Please treat in priority.

@MohitMaliFtechiz
Copy link
Collaborator

@ABHISHEKCHHIKARA Thanks for opening the issue, and providing the detailed steps. I will get back to you ASAP after testing your provided scenario.

One more thing to notice is that the app uses the system's download manager which may be good for various number of device able to have the download functionality in sd card working properly but it itself is also a source of error , I noticed many time the realme download manager is laggy and it downloads the files in .zim".oplusdownload" extension and upon full download it removes this .oplusextension extension but often times if there is a small error in internet connection or a moment of disconnection from hdd for whatever reasons , it kills the ongoing download and makes everything buggy as hell . If I try to cancel it and redownload the app is unable to do so because the downloader renamed the new file with -01 at end and doesn't remove the previously failed task , then I would forcefully kill the app or it kills itself often times when I try to stop the download as it will repeat that download process but unable to do anything . I would then deleted both of the files and freshly start the download for it to work .

For this, we have already removed the system's DownloadManager from our application in #4143.

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Dec 29, 2024

@ABHISHEKCHHIKARA, I have tested all the scenarios you described, and the ZIM files remain in the storage (They are not deleted from the storage until I uninstall the application). So here i have some questions for you.

You had version 3.13.0 with org.kiwix.kiwixmobile.standalone package name, and you have downloaded some ZIM files to your HDD. Then you have downloaded the playStore version with org.kiwix.kiwixmobile package name. Right? It is a second version of application and its downloaded as a different app in your mobile(So now in your phone there are two kiwix app installed).

Both applications download the ZIM files in ../Android/media/org.kiwix.kiwixmobile, and ../Android/media/org.kiwix.kiwixmobile.standalone folders.

I disconnected the hdd , installed the app to make sure it doesn't destroy the files in hdd , then opened the app set up its storage permissions , plugged in the hdd , saw that the directory was slightly different as it was org.kiwix.mobile so I moved the folder kiwix in this directory and then went to settings to select HDD as storage location

As you described, you saw an org.kiwix.kiwixmobile folder in your HDD so you have plugged in the HDD while using the application because it creates this folder while using the app(Only if this folder does not exist). Then, you have moved the storage "Kiwix" folder from the ".standalone" folder to this folder.

  • Have you checked if the ZIM files exist in the moved folder?
  • So when you have moved the folder in this directory. Have you refreshed the library to see if the ZIM files are showing in the application or not? (Since by default the new ZIM files will not be added to the library, the user has to refresh the library to scan the storage).
  • The folder is correctly moved to this location(org.kiwix.kiwixmobile)? Since this folder vanishes only when the application is uninstalled or "Clearing data of application".
  • Have you deleted the old ".standalone" app? Since I am seeing only one possibility of removing the ZIM files from storage.
    • If you have moved the Kiwix folder to the "org.kiwix.mobile" folder, and uninstalled the same app by mistake since both app icons are same. To confirm this can you please tell me after losing the ZIM file there which folder exists in the HDD, "org.kiwix.kiwixmobile" or "org.kiwix.kiwixmobile.standalone"?
    • One more thing, when losing the data there is still this folder("../Android/media/org.kiwix.kiwixmobile") exist?

I could add screenshots of the loading blue bar stuck in the library

The blur bar shows the progress of scanning the storage, if there are lots of big files in the storage it takes time to scan.

@ABHISHEKCHHIKARA
Copy link
Author

ABHISHEKCHHIKARA commented Dec 29, 2024

@ABHISHEKCHHIKARA, I have tested all the scenarios you described, and the ZIM files remain in the storage (They are not deleted from the storage until I uninstall the application). So here i have some questions for you.

You had version 3.13.0 with org.kiwix.kiwixmobile.standalone package name, and you have downloaded some ZIM files to your HDD. Then you have downloaded the playStore version with org.kiwix.kiwixmobile package name. Right? It is a second version of application and its downloaded as a different app in your mobile(So now in your phone there are two kiwix app installed).

Both applications download the ZIM files in ../Android/media/org.kiwix.kiwixmobile, and ../Android/media/org.kiwix.kiwixmobile.standalone folders.

I disconnected the hdd , installed the app to make sure it doesn't destroy the files in hdd , then opened the app set up its storage permissions , plugged in the hdd , saw that the directory was slightly different as it was org.kiwix.mobile so I moved the folder kiwix in this directory and then went to settings to select HDD as storage location

As you described, you saw an org.kiwix.kiwixmobile folder in your HDD so you have plugged in the HDD while using the application because it creates this folder while using the app(Only if this folder does not exist). Then, you have moved the storage "Kiwix" folder from the ".standalone" folder to this folder.

  • Have you checked if the ZIM files exist in the moved folder?

  • So when you have moved the folder in this directory. Have you refreshed the library to see if the ZIM files are showing in the application or not? (Since by default the new ZIM files will not be added to the library, the user has to refresh the library to scan the storage).

  • The folder is correctly moved to this location(org.kiwix.kiwixmobile)? Since this folder vanishes only when the application is uninstalled or "Clearing data of application".

  • Have you deleted the old ".standalone" app? Since I am seeing only one possibility of removing the ZIM files from storage.

    • If you have moved the Kiwix folder to the "org.kiwix.mobile" folder, and uninstalled the same app by mistake since both app icons are same. To confirm this can you please tell me after losing the ZIM file there which folder exists in the HDD, "org.kiwix.kiwixmobile" or "org.kiwix.kiwixmobile.standalone"?

I could add screenshots of the loading blue bar stuck in the library

The blur bar shows the progress of scanning the storage, if there are lots of big files in the storage it takes time to scan.

Yes kiwix was installed as 2 different apps so I moved the files from kiwix standalone to kiwix mobile folder using z archiver , upon disconnecting the hdd , i delete the right app by checking its data usage ( I used 5g internet connection not wifi ) (as I had downloaded stuff through it ) in app info . Then I reconnected the hdd , opened the new app and started loading them in library , i waited but it didn't load for a long time . There was atleast 50 gbs of data in there , I don't know how much time it should take .
I remember clearing the cache but not the whole data at that time , although it displayed the data to be only 2 mbs or so but I know it may also delete it's media directory .
The next day while disconnected, I deleted the app , reinstalled it and then connected the hdd , i didn't check at that time if the files were still there and started downloading khan academy and gutenberg project , maybe it was the os issue at this moment when I went to settings to select external sd card storage as default , the app or the os resent the command to create the directory and thus also overwriting the stuff within it.

@ABHISHEKCHHIKARA
Copy link
Author

ABHISHEKCHHIKARA commented Dec 29, 2024

@MohitMaliFtechiz
https://www.dropbox.com/scl/fi/8jb6y1pg6dlitd9brno4d/Record_2024-12-29-15-29-10.mp4?rlkey=70fqwcdpu7vowt1wd0t2g2puu&st=8f4pvdq4&dl=0

Here's a link to screen recording the library isn't loading up even when there are just 5 small files

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Dec 29, 2024

Yes kiwix was installed as 2 different apps so I moved the files from kiwix standalone to kiwix mobile folder using z archiver , upon disconnecting the hdd , i delete the right app by checking its data usage ( I used 5g internet connection not wifi ) (as I had downloaded stuff through it ) in app info . Then I reconnected the hdd , opened the new app and started loading them in library , i waited but it didn't load for a long time . There was atleast 50 gbs of data in there , I don't know how much time it should take .

As you describe it is taking time to load the ZIM files, so it means the ZIM files exist in HDD and are not deleted. The application was trying to scan the HDD for ZIM files.

I remember clearing the cache but not the whole data at that time , although it displayed the data to be only 2 mbs or so but I know it may also delete it's media directory .

Clearing the cache does not delete this media directory, it only deletes the cache directory of the application.

The next day while disconnected, I deleted the app , reinstalled it and then connected the hdd , i didn't check at that time if the files were still there and started downloading khan academy and gutenberg project , maybe it was the os issue at this moment when I went to settings to select external sd card storage as default , the app or the os resent the command to create the directory and thus also overwriting the stuff within it.

I have tested this scenario as well, and the ZIM files remain in the HDD. If I disconnected the HDD, uninstalled the app, and reinstalled it, then connected the HDD, and selected the HDD in settings. The ZIM files remain in the storage. There are possibly two reasons behind it:

  • You have cleared the storage along with the cache.
  • While uninstalling, have you checked the HDD is properly disconnected(because it will delete all the related files when uninstalling the application)? The OS will only create this directory when this directory does not exist.

However, if you are thinking it is OS related issue, please do this to confirm:

  • Download a small file in the HDD, clear the application cache, and go to the directory "../Android/media/org.kiwix.kiwixmobile/kiwix", and check whether the file exists or not. Also, check the application's library screen as well.
  • Disconnect the HDD uninstall the application, and reinstall the application(setup permission). Then connect the HDD, and go into the settings screen. Select the HDD to download the ZIM file. Check if the ZIM files exist or not.

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Dec 29, 2024

@MohitMaliFtechiz https://www.dropbox.com/scl/fi/8jb6y1pg6dlitd9brno4d/Record_2024-12-29-15-29-10.mp4?rlkey=70fqwcdpu7vowt1wd0t2g2puu&st=8f4pvdq4&dl=0

Here's a link to screen recording the library isn't loading up even when there are just 5 small files

@ABHISHEKCHHIKARA, For this, can you please share the device logs?

After showing this blue progress bar at least for 10-15 seconds, please go to the "Help" screen, and send a diagnostic report. It will generate the file please attach that here. Also, can you please me is this blue bar always shows or if it hides after some time?

@ABHISHEKCHHIKARA
Copy link
Author

ABHISHEKCHHIKARA commented Dec 29, 2024

@MohitMaliFtechiz https://www.dropbox.com/scl/fi/8jb6y1pg6dlitd9brno4d/Record_2024-12-29-15-29-10.mp4?rlkey=70fqwcdpu7vowt1wd0t2g2puu&st=8f4pvdq4&dl=0
Here's a link to screen recording the library isn't loading up even when there are just 5 small files

@ABHISHEKCHHIKARA, For this, can you please share the device logs?

After showing this blue progress bar at least for 10-15 seconds, please go to the "Help" screen, and send a diagnostic report. It will generate the file please attach that here. Also, can you please me is this blue bar always shows or if it hides after some time?

It shows always once I reload , only hides sometimes if I change apps or there are too many downloads for a long time and when the screen is turned off after 2 minutes or manually , also the most it reaches sometimes is a little less than midway , it never went far from that.

@ABHISHEKCHHIKARA
Copy link
Author

Yes kiwix was installed as 2 different apps so I moved the files from kiwix standalone to kiwix mobile folder using z archiver , upon disconnecting the hdd , i delete the right app by checking its data usage ( I used 5g internet connection not wifi ) (as I had downloaded stuff through it ) in app info . Then I reconnected the hdd , opened the new app and started loading them in library , i waited but it didn't load for a long time . There was atleast 50 gbs of data in there , I don't know how much time it should take .

As you describe it is taking time to load the ZIM files, so it means the ZIM files exist in HDD and are not deleted. The application was trying to scan the HDD for ZIM files.

I remember clearing the cache but not the whole data at that time , although it displayed the data to be only 2 mbs or so but I know it may also delete it's media directory .

Clearing the cache does not delete this media directory, it only deletes the cache directory of the application.

The next day while disconnected, I deleted the app , reinstalled it and then connected the hdd , i didn't check at that time if the files were still there and started downloading khan academy and gutenberg project , maybe it was the os issue at this moment when I went to settings to select external sd card storage as default , the app or the os resent the command to create the directory and thus also overwriting the stuff within it.

I have tested this scenario as well, and the ZIM files remain in the HDD. If I disconnected the HDD, uninstalled the app, and reinstalled it, then connected the HDD, and selected the HDD in settings. The ZIM files remain in the storage. There are possibly two reasons behind it:

  • You have cleared the storage along with the cache.
  • While uninstalling, have you checked the HDD is properly disconnected(because it will delete all the related files when uninstalling the application)? The OS will only create this directory when this directory does not exist.

However, if you are thinking it is OS related issue, please do this to confirm:

  • Download a small file in the HDD, clear the application cache, and go to the directory "../Android/media/org.kiwix.kiwixmobile/kiwix", and check whether the file exists or not. Also, check the application's library screen as well.

Okay I will be testing this , first i will download some files in internal , then I will switch to external , download them again and see the changes in library . Last time this time this happened it got crashed i guess .
If the download starts directly to external , all the files would be shown perfectly until the hdd is disconnected for once.

  • Disconnect the HDD uninstall the application, and reinstall the application(setup permission). Then connect the HDD, and go into the settings screen. Select the HDD to download the ZIM file. Check if the ZIM files exist or not.

I tested this by first deleting the app when hdd is disconnected , then if the hdd is connected and the app is installed through playstore again , the files get destroyed in hdd ( I will try it when manually installing the app through file manager too later on.)
Also I think these will not get removed when the app is installed properly , like you opened it and set up the permission , and then connected the hdd , otherwise it gets destroyed.
I think I will screen record and send the logs lately .

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Dec 29, 2024

It shows always once I reload , only hides sometimes if I change apps or there are too many downloads for a long time and when the screen is turned off after 2 minutes or manually , also the most it reaches sometimes is a little less than midway , it never went far from that.

@ABHISHEKCHHIKARA Please share the device logs for this. It helps us to diagnose the problem.

I tested this by first deleting the app when hdd is disconnected , then if the hdd is connected and the app is installed through playstore again , the files get destroyed in hdd ( I will try it when manually installing the app through file manager too later on.)
Also I think these will not get removed when the app is installed properly , like you opened it and set up the permission , and then connected the hdd , otherwise it gets destroyed.

I have tested this scenario as well. Disconnected the HDD, and removed the app, connected the HDD, installed the app from Play Store. Opened the application, and set up the permission and the ZIM files were showing in the application when I refreshed the library screen.

I think I will screen record and send the logs lately.

Yes, it will be great to have the device logs and videos, to find the exact scenario where you have lost your data to identify whether this is your OS problem or not.

@ABHISHEKCHHIKARA
Copy link
Author

ABHISHEKCHHIKARA commented Dec 29, 2024

It shows always once I reload , only hides sometimes if I change apps or there are too many downloads for a long time and when the screen is turned off after 2 minutes or manually , also the most it reaches sometimes is a little less than midway , it never went far from that.

@ABHISHEKCHHIKARA Please share the device logs for this. It helps us to diagnose the problem.

I tested this by first deleting the app when hdd is disconnected , then if the hdd is connected and the app is installed through playstore again , the files get destroyed in hdd ( I will try it when manually installing the app through file manager too later on.)
Also I think these will not get removed when the app is installed properly , like you opened it and set up the permission , and then connected the hdd , otherwise it gets destroyed.

I have tested this scenario as well. Disconnected the HDD, and removed the app, connected the HDD, installed the app from Play Store. Opened the application, and set up the permission and the ZIM files were showing in the application when I refreshed the library screen.

I think I will screen record and send the logs lately.

Yes, it will be great to have the device logs and videos, to find the exact scenario where you have lost your data to identify whether this is your OS problem or not.

I sent the logs via email to kiwix , please check them , also sending them here --> logs1735479945810.txt

, MountInfo(device=/dev/block/dm-52, mountPoint=/apex/com.android.mediaprovider@351113060, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-50, mountPoint=/apex/com.android.os.statsd, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-51, mountPoint=/apex/com.android.media, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-52, mountPoint=/apex/com.android.mediaprovider, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-53, mountPoint=/apex/com.android.adbd@351010000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-53, mountPoint=/apex/com.android.adbd, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-55, mountPoint=/apex/com.android.cellbroadcast@351111000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-54, mountPoint=/apex/com.android.media.swcodec@351010060, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-55, mountPoint=/apex/com.android.cellbroadcast, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-54, mountPoint=/apex/com.android.media.swcodec, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-56, mountPoint=/apex/com.android.neuralnetworks@351010000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-56, mountPoint=/apex/com.android.neuralnetworks, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-57, mountPoint=/apex/com.android.ipsec@351111040, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-57, mountPoint=/apex/com.android.ipsec, fileSystem=ext4)
, MountInfo(device=/dev/block/loop27, mountPoint=/apex/com.google.mainline.primary.libs@311820000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-58, mountPoint=/apex/com.android.tethering@351110060, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-58, mountPoint=/apex/com.android.tethering, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-59, mountPoint=/apex/com.google.mainline.primary.libs@351061000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-60, mountPoint=/apex/com.android.resolv@351111020, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-60, mountPoint=/apex/com.android.resolv, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-61, mountPoint=/apex/com.android.sdkext@351110000, fileSystem=ext4)
, MountInfo(device=/dev/block/dm-61, mountPoint=/apex/com.android.sdkext, fileSystem=ext4)
, MountInfo(device=tmpfs, mountPoint=/apex/apex-info-list.xml, fileSystem=tmpfs)
, MountInfo(device=tmpfs, mountPoint=/linkerconfig, fileSystem=tmpfs)
, MountInfo(device=tmpfs, mountPoint=/linkerconfig, fileSystem=tmpfs)
, MountInfo(device=none, mountPoint=/config, fileSystem=configfs)
, MountInfo(device=/dev/block/dm-33, mountPoint=/my_product, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-34, mountPoint=/my_engineering, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-35, mountPoint=/my_company, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-36, mountPoint=/my_carrier, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-37, mountPoint=/my_region, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-38, mountPoint=/my_heytap, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-39, mountPoint=/my_stock, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-40, mountPoint=/my_preload, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-41, mountPoint=/my_bigball, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-42, mountPoint=/my_manifest, fileSystem=erofs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/user/0, fileSystem=f2fs)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/oplusreserve/media/log/shutdown, fileSystem=ext4)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/oplusreserve/media/log/hang_oplus, fileSystem=ext4)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/cache/factory, fileSystem=ext4)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/criticallog, fileSystem=ext4)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/oplusreserve/media/log/minidumpbackup, fileSystem=ext4)
, MountInfo(device=/dev/block/by-name/oplusreserve2, mountPoint=/data/persist_log/oplusreserve/media/log/minidumpbackup, fileSystem=ext4)
, MountInfo(device=tmpfs, mountPoint=/data_mirror, fileSystem=tmpfs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data_mirror/data_ce/null, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data_mirror/data_ce/null/0, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data_mirror/data_de/null, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data_mirror/cur_profiles, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data_mirror/ref_profiles, fileSystem=f2fs)
, MountInfo(device=tmpfs, mountPoint=/storage, fileSystem=tmpfs)
, MountInfo(device=/dev/fuse, mountPoint=/storage/emulated, fileSystem=fuse)
, MountInfo(device=/dev/block/dm-43, mountPoint=/storage/emulated/0/Android/data, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/storage/emulated/0/Android/obb, fileSystem=f2fs)
, MountInfo(device=/dev/fuse, mountPoint=/storage/9E56BD0056BCDA6B, fileSystem=fuse)
, MountInfo(device=tmpfs, mountPoint=/data/data, fileSystem=tmpfs)
, MountInfo(device=tmpfs, mountPoint=/data/user, fileSystem=tmpfs)
, MountInfo(device=tmpfs, mountPoint=/data/user_de, fileSystem=tmpfs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/user_de/0/org.kiwix.kiwixmobile, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/data/org.kiwix.kiwixmobile, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/user_de/0/com.google.android.gms, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/data/com.google.android.gms, fileSystem=f2fs)
, MountInfo(device=tmpfs, mountPoint=/data/misc/profiles/cur, fileSystem=tmpfs)
, MountInfo(device=tmpfs, mountPoint=/data/misc/profiles/ref, fileSystem=tmpfs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/misc/profiles/cur/0/org.kiwix.kiwixmobile, fileSystem=f2fs)
, MountInfo(device=/dev/block/dm-43, mountPoint=/data/misc/profiles/ref/org.kiwix.kiwixmobile, fileSystem=f2fs)

External Directories
/storage/emulated/0/Android/data/org.kiwix.kiwixmobile/files

/storage/9E56BD0056BCDA6B/Android/data/org.kiwix.kiwixmobile/files

I think the above directory storage/9E56BD0056BCDA6B/Android/data/org.kiwix.kiwixmobile/files is wrong as in hdd it is /kiwix , i don't know why is it showing it as /files

I just changed the directory , but the same error again.. also I am sending the screen recording now of files being deleted due to play store install

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Dec 29, 2024

I think the above directory storage/9E56BD0056BCDA6B/Android/data/org.kiwix.kiwixmobile/files is wrong as in hdd it is /kiwix , i don't know why is it showing it as /files

@ABHISHEKCHHIKARA It is internal files app-specific directory, and we are downloading the ZIM files in our public app-directory. This is normal.

I just changed the directory , but the same error again.. also I am sending the screen recording now of files being deleted due to play store install
@MohitMaliFtechiz
https://www.dropbox.com/scl/fi/m7xsyh9jfbewpkm8wxsaw/Record_2024-12-29-20-06-19.mp4?rlkey=lfcvo335btn2wqlb2dptq5ilb&st=bvckjd5k&dl=0
Recording 👆👆

Okay, by seeing your shared video it seems it is your OS problem. When you are isntalling the Kiwix app from playStore it is deleting the all previous data about this application from the device as well as from all the contented devices, since the app is freshly installed.

The next day while disconnected, I deleted the app , reinstalled it and then connected the hdd ,

As you described in your previous comment, that time this happened and you lost your data. So it is your OS-related problem.

To prevent this type of data loss, when you gonna uninstall the application, before that please move all the data from this directory to another directory to prevent data loss. Since uninstalling and reinstalling the application causes data loss.

The app being glitched ss 👇👇
https://www.dropbox.com/scl/fi/hi3c8m3l57hl52klg53wr/Screenshot_2024-12-29-20-05-31-21_924282dd390cc14aae1af1e29436bb16.jpg?rlkey=ve5p3uytqm1l05qwvm2cqsofq&st=65p57fix&dl=0

Interesting, thanks i will fix this ASAP.

@kelson42
Copy link
Collaborator

@ABHISHEKCHHIKARA We have also open #4150 in an attempt to better warn the user at the app uninstalling time.

@ABHISHEKCHHIKARA
Copy link
Author

ABHISHEKCHHIKARA commented Dec 30, 2024

@ABHISHEKCHHIKARA We have also open #4150 in an attempt to better warn the user at the app uninstalling time.

Nice! Although in my case it happened on reinstall (I did remember to disconnect it when uninstalling) , the hdd was still connected, I will remember not to reinstall or delete apps with the hdd connected next time 👍👍

Here is how it probably happened : https://www.dropbox.com/scl/fi/m7xsyh9jfbewpkm8wxsaw/Record_2024-12-29-20-06-19.mp4?rlkey=lfcvo335btn2wqlb2dptq5ilb&st=bvckjd5k&dl=0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants