-
Notifications
You must be signed in to change notification settings - Fork 9
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
Export error: No such file or directory #4
Comments
Same error, tried WhatsAppKeyDBExtract.bat and WhatsAppKeyDBExtract.ps1 OS: Windows 10 |
Notice the quoted line, which means the legacy WhatsApp is not installed, hence, nothing is extracted.
EDIT: The problem could also be caused by the fact that https://whatcrypt.com/WhatsApp-2.11.431.apk is no longer available. If this is the case, you may try to download the APK from the mentioned links in README file or the same APK from Web Archive. |
Had the same problem, solved with:
|
I updated the source of the APK and forgot to put an update here. Could you verify that the script from the master branch works without any manual steps? |
sorry for the delay I got caught up in life... still not working: full log PS C:\Users\gekigek99\WhatsApp-Key-DB-Extractor> .\WhatsAppKeyDBExtract.ps1
=========================================================================
= This script will extract the WhatsApp Key file and DB on Android 4.0+ =
= You DO NOT need root for this to work but you DO need Java installed. =
= If your WhatsApp version is greater than 2.11.431 (most likely), then =
= a legacy version will be installed temporarily in order to get backup =
= permissions. You will NOT lose ANY data and your current version will =
= be restored at the end of the extraction process so try not to panic. =
= Script by: TripCode (Greets to all who visit: XDA Developers Forums). =
= Thanks to: dragomerlin for ABE and to Abinash Bishoyi for being cool. =
= ### Version: v5.1 (22/02/2022) ### =
=========================================================================
Please connect your Android device with USB Debugging enabled:
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
WhatsApp 2.23.7.78 installed
Downloading legacy WhatsApp 2.11.431 to local folder
curl: (1) Protocol "https" not supported or disabled in libcurl
Backing up WhatsApp 2.23.7.78
4999 KB/s (49224281 bytes in 9.614s)
Backup complete
Removing WhatsApp 2.23.7.78 skipping data
Success
Removal complete
Installing legacy WhatsApp 2.11.431
Invalid APK file: tmp\LegacyWhatsApp.apk
Install complete
Now unlock your device and confirm the backup operation.
*clik on backup data on phone*
Please enter your backup password (leave blank for none) and press Enter:
Invlaid Magic:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:119)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Invalid Magic
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:516)
at org.nick.abe.Main.main(Main.java:142)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
... 2 more
Caused by: java.lang.IllegalArgumentException: Invalid Magic
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:337)
... 4 more
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Cannot open tmp\whatsapp.tar: No such file or directory
C:\Users\gekigek99\WhatsApp-Key-DB-Extractor\bin\tar.exe: Error is not recoverable: exiting now
Cleaning up temporary files ...
Done
Restoring WhatsApp 2.23.7.78
3916 KB/s (49224281 bytes in 12.272s)
Success
Restore complete
Removing WhatsApp 2.23.7.78 temporary apk
Operation complete
Premere un tasto per continuare . . .
PS C:\Users\gekigek99\WhatsApp-Key-DB-Extractor> I think that once the script fails to download the legacy executable or legacy executable is invalid, it should just exit and report the command that failed. (otherwise people see the java error and followings snowballing which distracts from the real issue that is a curl fail) |
I updated the curl binary for Windows in 9a7e246. It should fix the problem? I guess. As for @gekigek99's suggestion regarding exit when failing, I implemented it in my development environment. But given the new law of Hong Kong regarding SIM card registration, I currently don't have a testing environment for me to test my changes. Once it is tested, I will commit that. |
For me this error is coming up:
Earlier I was getting the same error as you guys, I then replaced the Let me if anyone is able to remediate this issue! |
@AdMediastic I notice this from your log
Where did you get the APK file, and can you check if it is an old version APK? Also, please make sure the password to the backup is correct. |
Hey @KnugiHK I have downloaded the WhatsApp APK which was mentioned by @gekigek99 in his comment. Let me know if you if I can help in anyway? |
The APK mentioned should be the same file downloaded by the script. Could you compare the checksum of the manually downloaded APK and the APK downloaded by the script? |
I am getting the same errors. I tried playing around with the backup file a bit and it seems there's no com.whatsapp directory in there at all. Do you know what could be wrong @KnugiHK? |
Hi. What OS are you using? |
Hi, I've tried on Windows and macOS, but hit the same issue. Everything seems to work fine (old Whatsapp version download, install, backup is started, existing Whatsapp is restored) there just doesn't seem to be anything about Whatsapp in the backup.
…________________________________
From: Knugi ***@***.***>
Sent: Friday, September 15, 2023 4:11:13 am
To: KnugiHK/WhatsApp-Key-DB-Extractor ***@***.***>
Cc: Daan Lenaerts ***@***.***>; Comment ***@***.***>
Subject: Re: [KnugiHK/WhatsApp-Key-DB-Extractor] Export error: No such file or directory (Issue #4)
I am getting the same errors. I tried playing around with the backup file a bit and it seems there's no com.whatsapp directory in there at all. Do you know what could be wrong @KnugiHK<https://github.com/KnugiHK>?
Hi. What OS are you using?
—
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABRTOAYE75H3U26C4TLMMHTX2O2LZANCNFSM6AAAAAATOE5TWU>.
You are receiving this because you commented.Message ID: ***@***.***>
|
I tried it on Windows and Linux. It works fine in Windows but not in Linux. Not sure if it is the problem of ADB. It will need further investigation. |
I had the similar issue I was semi-able to get around some of the issues by modifying the script. Im about to go to work where I wont have my phone for 10hrs to continue testing and seeing how to possibly identify and patch/solution but would like to know if this output would be sufficient to do a WA backup?
Note the first tar error Android 10. No Google Backup or associate Google Backup Account on Device btw |
Back and came to attempt to complete where I left off this morning. After when Im prompted by my added line. I manually opened the WA application on my mobile device. After that as the script proceeds I successfully get
BUT There is another problem. When trying to use the key in the companion WA-Exporter I get an error that basically states
So in my case the key doesnt work. On the road again to playing around some more OS: Android 10 |
Upon further review. The key was that was obtained after granting requested permissions and launching WA is correct. My issue was understanding Androids storage/saving locations ever since KitKat. They showed up last nites. I had WA backups under PR incoming |
@SavSanta Really appreciate your persistence in finding the issue. I will check out your PR later. |
@KnugiHK Aint no thang. I've got to thank you more as Im glad this worked exceptionally to backup my database. I also intend to open a PR though for the documentation btw. As some of it can be cleared. Thanks again |
Hi everyone. Thanks to @SavSanta, the issue should be fixed now. Feel free to try the latest scripts and remember to follow the latest instructions. If the fix can be confirmed, I will release a new version. |
@KnugiHK Right on! Im currently away from.dev computer for a while....but i think i have ADB on my netbook. Ill try and give it ago. Thx |
EDIT: i think my issue is different but i solved the issue by first manually placing the apk to the tmp folder and then allowing "install via usb" in phone on developer options. thanks
edit: i manually downloaded the apk from the archive link but it still doesn't work. it says user cancelled. i still have the issue. windows 10. xiaomi note 8 pro. android version 11 these are the files in the tmp folder when cmd is like this: and this is cmd after i enter password. i need to manually download and install whatsapp from play store after everything is done. any help would be greatly appreciated. |
Still not working on latest Galaxy S22.
Exactly the same issue on S22 with latest android. I put the legacywhatsapp apk and installed manually because of ADB showing downgrade errors, but running the second part of the script always has this behaviour as seen above. Ideas? |
The nearest one I can possibly get is S21. I will try to reproduce it when I have the phone. |
The script doesn't extract files to
extracted
folder. The log:OS: macOS Monterey 12.6
Android version: 13
The text was updated successfully, but these errors were encountered: