Linux Open password protected file error

First, let me say I have no problem opening this file using another distro on my pc. I dual boot 2 different linux distros. This problem showed up on my “daily driver” pclos distro. I tried to open a password protected ods sheet by double-clicking and it did not respond. I tried several times making sure I was using the correct password.

I then tried starting calc and using Open…File… and got an error message (can’t open file…) which I should have written down but did not. I tried safe mode with no success.

I then booted into my debian based distro and tried opening the exact same file (it is on a separate partition). I provided the password and it opened without any problem.

The version of Calc that threw the error is 26.2.5.2. I am 99% sure that version had no problem a few days ago but my days are busy so who knows. The version that opened the file is 25.2.3.2.

I will certainly defer to the experts here but my guess is some sort of corruption or bug on my installed version. I am certain that I used the correct password each time because I unmasked to check.

Anyone have a clue? More importantly how do I fix it. Will a simple reinstall work or something more elaborate?

I certainly appreciate any ideas that will help.
Thanks!

Are the distros installed in separate partitions? Is your /home directory shared between the distros (meaning you open the exact same file, not a copy)? Have you tried copying the file onto a USB stick and check-open it with the problematic LO in the other distro?

Yes, separate nvme disks, No home shared,. It DOES open in the debian distro.
All of this says something is corrupted (at least to my mind).

Something comes to my mind: depending on how you created your user accounts and how you copied the problematic file, you may stumble on a nasty access right issue. The user name can be the same on both distros but the numeric id different. If the owner numeric id is kept while copying (as might be the case in some root contexts), the file is considered owned by another (unknown) account. Then “-o” (others, not user not group) access rights apply. But this does not explain why it does not open read-only at least.

Does it happen also on other (non password-protected) files?

I tried a removal and re-install of LO. It did not work.
I still can’t open the file.

I probably could have explained this better. I have an nvme partition where I save data.
I saved a few ods files with the same password. That password worked as of 3 days ago, now none of the files open no matter what I try. I tried making a new file and saving with a password and that did not work. This was after a re-install of LO. I could make new files with a few rows and save them without passwords. But new files also get:
Error saving the document
General Error
General input/output error

if I try to save with password

I eventually decided to see if my other distro (residing on a completely different drive that also has LO installed) could open the file using the password and it DID.

I guess one of my questions would be… what is the mechanism for the password? I assume it is stored internally in the ods file else how could it be opened with a different instance of calc?

So that leads me to something in the system is obviously borked. Unknown is whether it is an LO bug or something larger. It is a rolling distro but not bleeding edge. Also 26 vs 25 for versions of calc.

At this point I just want LO to work again.

Some progress. I had a backup image from July 31 that I restored (Thanks to foxclone).
All the passwords worked again yay!

Sometime in the last 2 days there was a big Plasma KDE update along with some other stuff. 175 packages were installed. Since I had gone back in time I did not install those packages again until I had tested passwords. But after the update…

Something in that update broke the password functionality. The updates did not include LO so it is something changed elsewhere.

I’m going to try and get help on the pclos forum but narrowing things down from 175 possible packages is going to take time. I want to thank all of those who offered to help. If I come up with an answer I’ll update this post.
:wave:

I generally wouldn’t recommend a Linux distribution like that (one of a gazillion), especially when such fundamental errors occur.

I’ve been using it for over a decade. Very helpful community.

I hope nobody is stupid enough to do this theese days. (That was the kind of “protection” easily removed from older MS-Office files.)
If you have the password you can encrypt the file. No need to have it in the file.

Sources are available online and as your versions are quite new you have to check for the newer “wholesome” encryption.
As a starting point:

This issue is solved by some updates to lib64sqlite files. Seems like it was distro specific.
Thanks to everyone who helped.