keepassium / KeePassium

KeePass-compatible password manager for iOS
https://keepassium.com
Other
1.21k stars 103 forks source link

The file couldn’t be opened on macOS 12.6 #258

Closed Eitot closed 2 years ago

Eitot commented 2 years ago

Description A database file that I store in iCloud Drive is not opening anymore on macOS. It worked fine until some weeks ago, but I cannot say whether this is a problem in the latest version of KeePassium. It works without any issues on my iPhone XS running iOS 16. Also the backup files (the newest I have was created on 13.09.2022) can be opened just fine.

I have also tried to copy the file out of iCloud Drive to my Documents directory instead, but it won't open there either.

How to reproduce

  1. Within Keepassium, when I click on the + button and select the database, nothing happens (also no alerts or dialogs).
  2. When I open the database file directly in Finder, the following error alert appears: Screenshot 2022-10-01 at 12 41 22

Environment:

Additional context Diagosntic log

keepassium commented 2 years ago

I have received a similar report two weeks ago, that it was impossible to add a database from iCloud Drive using KeePassium's UI. The app would just freeze. Adding of local files worked, though. It was also macOS 12.6 (21G115) and KeePassium 1.36.116, but I could not reproduce the issue.

As a test, can you install 1.35.114 and see if the issue remains there? Thanks!

Eitot commented 2 years ago

I have tried the macOS builds 1.35.114, 1.36.115 and 1.36.116 now. The database opens in each of them. Weirdly, when I now open the same database in the above-mentioned iOS version (also 1.36.116), it opens without any issues.

I suppose my problem is resolved now. Nevermind, the same error is back. There was briefly an error message that stated that the backup is unreachable.

keepassium commented 2 years ago

Thank you for the update.

Nevermind, the same error is back. There was briefly an error message that stated that the backup is unreachable.

Do you get the same error with 1.35.114? If yes, does the error remain after reboot?

aztira commented 2 years ago

I have received a similar report two weeks ago, that it was impossible to add a database from iCloud Drive using KeePassium's UI. The app would just freeze. Adding of local files worked, though. It was also macOS 12.6 (21G115) and KeePassium 1.36.116, but I could not reproduce the issue.

I'll chime in here, as the similar report Andrei mentions probably was from me. I could not open my current database in i-Cloud, however, any backup files opened just fine from within KeePassium. Also, double-clicking any DB in Finder opened it in the app (which unfortunately does not help in the Safari extension). The database also opens without problem in KeepassXC and in KeePassium 1.36.116 on my iPhone (iOS 16.0 20A362).

Re-moving KeePassium using App Cleaner and re-installing from the App Store resolved the issue for now even after a reboot - I will report back if something changes.

KeePassium v1.36.116 on MacOS 12.6 (21G115) on an M1 MBP

Eitot commented 2 years ago

Do you get the same error with 1.35.114? If yes, does the error remain after reboot?

I did not get that error with 1.35.114. After a reboot, the error has since not reappeared at all.

keepassium commented 2 years ago

Thanks, everyone!

@aztira , yes, I was referring to your email.

@Eitot , has the error resurfaced since?

Also, as a wild guess: did you happen to install any other KeePass-related app before the issue started? On iOS, there was a frequent problem early on that the system assigned "ownership" of .kdb/.kdbx files to the last-installed compatible app. All the earlier apps were suddenly deemed incompatible and could not pick database files — the system greyed them out as "incompatible". As a workaround, KeePassium now declares that it understands "KeePassium databases", "MiniKeePass databases", "Strongbox databases", etc.

If macOS 12.6 introduced the same issue, perhaps I only need to declare KeePassium as compatible with "KeePassXC databases", "KeeWeb databases", etc :)

Eitot commented 2 years ago

The error has not reappeared since. I have not installed any other KeePass-related apps.

I think the only notable change was that I upgraded to iOS 16 on my iPhone (I have no KeePass-related apps there either, since I am using iCloud Keychain for website passwords ). Could it be that something changed in iCloud Drive?

keepassium commented 2 years ago

@Eitot , thanks! So I guess we'll write it off as a transient macOS glitch then...