-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Merger: Fail at "Sort database" step #1
Comments
Good afternoon! Are you running it from the self-executable file or directly from the .py file? |
I'm running from the EXE file. I ran the .py script file from Ubuntu 18.04.3 LTS, same result. I also find some problems running the script, such as database locking, etc. I'm providing all 5 .db files needed for the script for you to inspect, if you prefer. BTW, it's 11:56 PM here in Malaysia. 😂 |
Hahahaha good night then! The problem is not with the database, seems that I forgot to add to the progressbar counter something and the progress bar is going beyond 100%. That's why I asked if you were running the script directly from the Just append a Database locking problems? Or table locking? They're not the same. If you got database, that means that you left another connection to the database opened by another program. |
Appending
I've inspected what's locking the database, and I found that the same Python process running merger.py is the culprit. I can unlock the database using LockHunter (Windows only) forcibly, but subsequently, errors still occur. Hence, the workaround of adding |
Don't skip step 1 because the database is locked when you obtain it from the VM. That step closes all pending transactions that WhatsApp left and will remove the two files If you are going to start a part of the script and you have three files remaining from the other part, that means that the last step executed didn't go well. So yes, run that. About the calls part, are you sure you have WhatsApp 2.20 and that you're running the process against the correct database? Be sure of that because the error means that the table that the script is trying to query in the database doesn't exist, and that table MUST be always present in WhatsApp (afaik) in order to work correctly. |
Since the error at the "Calls" step occurs at line 102, I assume that it checks in I put And yes, I'm sure I have WhatsApp 2.20.11. |
Okay, just noticed and (supposed) what is your problem. You're not moving a lot of messagss, so I suppose that your Android installation is brand new. Easily explained, the problem is that the script is trying to fetch contact information from the Android database to compare it with the one of the WP and reference it correctly. As I developed the script for me, I already assumed that chats with each one of the contacts that I called in the WP database were already present in the Android one, as that's the usual thing. You're also running this without using WinWazzapMigrator before right? It's the first time I receive reports from somebody doing this, so don't expect that the troubleshooting will end here :P I will push a commit with the fix in a while (if I can, it's late here, so maybe it'll need to wait to tomorrow) About the database thing, you still didn't unlock it properly. Discard the database you have now and repeat the extraction process Run the Once this is done, continue with the step 3 |
In fact, I used 7-Zip to extract the files directly from Or do I need to unfreeze WhatsApp, launch it, freeze it again and get another copy of the database files? |
Update: I've unfreezed WhatsApp, launched it, freezed it again and got another copy of the database files. Same results, I had to skip the "Calls" step and the "Fix mentions" step to work. I'm still waiting for your fix. :p |
Check with my latest commit please @win98se For the database thing, please run the |
What file do I need to run this query on? Edit 1: I ran the query to all 5 files. Outputs are below -
Edit 2: Now the "Calls" step works, but I still have to skip the "Fix mentions" step (it still causes database locking) and append |
@win98se The original msgstore.db |
The output of the query is |
I have a possible fix for the "Fix mentions" step causing database locking - add a line between lines 253 and 254 with the code |
@win98se That means that subsequent queries would not run. The optimization step (and all the script sections) already does that for you when finished. That's why I think you're doing something wrong. Confirm me again. Are you sure that running the optimization step in |
Yes, the first step leaves only one original I'm considering that fix because I've noticed that there are |
You're completely right, I forgot that one. Thank you very much for pointing that out. Pull the changes or add the line to your local copy |
I don't know how to do a pull request... 😂 This tool helps me so much in migrating messages from Windows 10 Mobile to Android at no cost, thank you so much for developing it. Hope to see a new release soon! |
@win98se Everything worked right after re-importing the database then? With pull I mean syncing your local files with the repository. Thank you very much for your reports! |
Yes, messages and call history are there. Oh, but I didn't use |
@win98se Okay, good to know that WinWazzapMigrator is not mandatory then. Thank you for letting me know! Oh, okay, thought you used |
I'm running it from Windows 10 Version 1909, WhatsApp for Android's version is 2.20.11.
The text was updated successfully, but these errors were encountered: