Having a problem with WhatsApp not being able to find it’s storage.
I can send and receive messages, but not images/files.
Receiving an image gives this error:
Download failed
Can’t download because no internal storage is available. Please unmount it as a disk drive, and try again.
I also get an error trying to attach from gallery:
Internal storage required
Please turn off USB storage and try again.
And for images I sent previously:
Sorry, this media file doesn’t exist on your internal storage.
In the WhatsApp logs (/home/.android/data/data/com.whatsapp/files/Logs/whatsapp.log) it’s looking for /storage/emulated/0/WhatsApp/Media/…
...
2023-02-12 03:14:58.376 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/WhatsApp Video
2023-02-12 03:14:58.379 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/WhatsApp Images
2023-02-12 03:14:58.379 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/WhatsApp Documents
2023-02-12 03:14:58.380 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/WallPaper
2023-02-12 03:14:58.380 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/WhatsApp Profile Photos
2023-02-12 03:14:58.382 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/.Links
2023-02-12 03:14:58.382 LL_D W [313:WhatsApp Worker #4] fmessageio/prepareFolder/nomedia doesn't exist, creating in /storage/emulated/0/WhatsApp/Media/.Links
2023-02-12 03:14:58.383 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder /storage/emulated/0/WhatsApp/Media/.Links; exception=java.io.IOException: No such file or directory
2023-02-12 03:14:58.386 LL_E W [313:WhatsApp Worker #4] fmessageio/prepareFolder/mkdirs failed: /storage/emulated/0/WhatsApp/Media/.Statuses
...
*lots* more just like it
Weird thing is my chats are still all there and accessible, so I’m not sure where it’s picking those up from.
My old data still exists in
/home/defaultuser/android_storage/WhatsApp
Because I’m not sure that the root dir looks like to Android apps I tried a few mappings:
/storage/emulated/0 → /home/defaultuser/android_storage
/home/defaultuser/android_storage/emulated/0 → /home/defaultuser/android_storage
/home/defaultuser/android_storage/storage/emulated/0 → /home/defaultuser/android_storage
I’m assuming this is to do with the new scoped storage in Android 11.
I’m also wondering if because I think I “cheated” a while ago to create space the easy way I mapped android_storage straight to the sdcard it messed things up in this migration:
/home/defaultuser/android_storage → sdcard
So does anyone know how Android 11 “scoped storage” works? It’s is different structure or just permissions?
Any suggestions on how to handle this?
I also can’t backup my chats because no internal storage was found.
Everything else with 4.5 so far seems to be working well for me.