[SOLVED] New v1.8.1 rejecting .emb database password

MMEX4Desktop, incl. Windows, macOS, and Most Unix variants using the GTK+ toolkit

Moderator: Renato

Post Reply
josh555
New User
Posts: 6
Joined: Thu Apr 30, 2020 8:22 pm
Are you a spam bot?: No

[SOLVED] New v1.8.1 rejecting .emb database password

Post by josh555 »

I am elated to see that version 1.8.1 for Windows 64bit is available especially as it contains the much awaited 256bit encryption. However, when I try and open my existing .emb database with the usual password, an error message appears saying that it is an incorrect password for this database. Do I need to change anything? I have now reverted to v1.8.0 and all is working fine.
KenK
New User
Posts: 13
Joined: Wed Aug 30, 2017 12:42 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by KenK »

@josh555 you need to
- save your 1.8.0 database as a .mmb
- open that with 1.8.1
- save it again as a .emb
Remember to delete the .mmb afterwards.
thiruma71
New User
Posts: 4
Joined: Fri Apr 03, 2009 11:22 am

Re: New v1.8.1 rejecting .emb database password

Post by thiruma71 »

Following these steps didn't help. Receiving SQL Lite error.
Giapo
New User
Posts: 3
Joined: Thu Feb 02, 2023 6:16 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by Giapo »

i had the same problem.
Has anyone solved it?
thank you
josh555
New User
Posts: 6
Joined: Thu Apr 30, 2020 8:22 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by josh555 »

Thank you Kenk, that has worked for me. However, I have opened the same encrypted database on my android phone and marked an entry as reconciled but even after synchronising the phone app, the change is not registering in the Windows desktop app (even after closing and reopening). Is there something else that I need to do? Both apps are definitely pointing to the same .emb file. The same applies in reverse and a change on the desktop is not registering on the android app.
Eduardommex
Senior User
Posts: 36
Joined: Sat Jun 26, 2021 2:40 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by Eduardommex »

Hi
I am reporting the same problem. After updating Flatpak MMEx 1.8.1 version opened the mmb file and trying to save as encrypted emb file this error message come up: "SQL logic error[1]: Rekeying failed. Pagesize cannot be changed for an encrypted database." Could somebody help me?
fenman
New User
Posts: 1
Joined: Sat Nov 30, 2024 4:02 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by fenman »

+1

On Windows 11, it says that the password for this database is incorrect or the file is not a database.
hxigor
New User
Posts: 5
Joined: Mon Apr 12, 2021 7:35 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by hxigor »

Same error here :shock:
SQL logic error[1]: Rekeying failed. Pagesize cannot be changed for an encrypted database
guanlisheng
Developer
Posts: 472
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No
Contact:

Re: New v1.8.1 rejecting .emb database password

Post by guanlisheng »

can anyone share a mini database to reproduce the issue?
hxigor
New User
Posts: 5
Joined: Mon Apr 12, 2021 7:35 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by hxigor »

guanlisheng wrote: Sat Nov 30, 2024 5:30 pm can anyone share a mini database to reproduce the issue?
Here you are
Test_181_EMB.mmb
(113 KiB) Downloaded 28 times
Open the file and try to save it as EMB file, a password dialog will pop out and when you enter any password, the sql error occurs:
SQL logic error[1]: Rekeying failed. Pagesize cannot be changed for an encrypted database.

The database is an EMB file from version 1.8.0, where I saved is as MMB and then opened in 1.8.1, deleted everything except 1 account and 1 transaction, then optimized it and finally saved as MMB and then tried to save as EMB.
yopiglop
New User
Posts: 1
Joined: Sat Nov 30, 2024 6:43 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by yopiglop »

Same as hxigor here
User avatar
Renato
MVP User
Posts: 768
Joined: Mon Apr 25, 2011 7:36 pm
Are you a spam bot?: No
Location: near Zurich

Re: New v1.8.1 rejecting .emb database password

Post by Renato »

I would suggest that users revert to version 1.8 or not use encryption until the bug is fixed.
Renato Forum Administrator
guanlisheng
Developer
Posts: 472
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No
Contact:

Re: New v1.8.1 rejecting .emb database password

Post by guanlisheng »

Thanks @hxigor and also the guy from the Github, we know it is page_size that triggers the issue now.

for some very old databases (e.g. before 2014), the page_size is 1024, while newer ones are 4096.

you can run PRAGMA page_size in wxSQLitePlus or any SQLite clients to tell the result.
  • 4096, it will be fine to re-encryption
  • 1024, you might have to update page size to 4096 via next reply
391296795-ff5eaba1-5a2a-4956-8c4b-3cc9c7937e70.png
391296795-ff5eaba1-5a2a-4956-8c4b-3cc9c7937e70.png (97.3 KiB) Viewed 1350 times
guanlisheng
Developer
Posts: 472
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No
Contact:

Re: New v1.8.1 rejecting .emb database password

Post by guanlisheng »

here is the instruction to update the legacy page size (1024) to the default page size (4096).

run the following code to update page size in place

Code: Select all

PRAGMA page_size = 4096;
VACUUM;
391297483-133c6503-74f5-4c1b-b9a9-c64899198041.png
391297483-133c6503-74f5-4c1b-b9a9-c64899198041.png (108.71 KiB) Viewed 1214 times
hxigor
New User
Posts: 5
Joined: Mon Apr 12, 2021 7:35 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by hxigor »

@guanlisheng
Thanks for the analysis and fix, changing the page size to 4096 worked!
Giapo
New User
Posts: 3
Joined: Thu Feb 02, 2023 6:16 pm
Are you a spam bot?: No

Re: New v1.8.1 rejecting .emb database password

Post by Giapo »

Could you explain in detail the steps to take?
Thank you
User avatar
Renato
MVP User
Posts: 768
Joined: Mon Apr 25, 2011 7:36 pm
Are you a spam bot?: No
Location: near Zurich

Re: New v1.8.1 rejecting .emb database password

Post by Renato »

Renato Forum Administrator
Post Reply