I am unable to perform searches in encrypted rooms with element-desktop. When I try, I get the following message:
Message search initialisation failed, check your settings for more information
And in the settings, I get this:
Error opening the database: SqlCipherError(“Sqlcipher support is missing”)
Have I got it configured wrong? Or is this a bug in the package? Should I file an issue on GitHub?
1 Like
yes, probably be useful to have it on the tracker, at a wild guess it will be that this needs to be compiled in as a option. Sounds like a pretty crucial function… so it should be a default.
austin
January 2, 2022, 10:49pm
3
From what I recall getting encrypted search working on NixOS was a nightmare for the person who managed to solve it…
Anyways, some possibly relevant upstream issues:
opened 04:23AM - 13 Sep 21 UTC
T-Defect
X-Needs-Info
S-Minor
Z-Upstream
A-Search
A-Indexing
O-Uncommon
### Steps to reproduce
1. Open an encrypted chat in the People category.
2. Cl… ick the search button.
### What happened?
### What did you expect?
Search works.
### What happened?
I see a message saying "Message search initialisation failed, check your settings for more information".
### Operating system
Windows 10 x64
### Application version
Element version: 1.8.2, Olm version: 3.2.3
### How did you install the app?
`winget install element`, subsequently upgraded within Element
### Homeserver
matrix.org
### Have you submitted a rageshake?
No
opened 05:29PM - 29 Sep 21 UTC
bug
Seshat stopped working for me inside Element Desktop 1.9.0 with the following me… ssage:
> Error opening the database: SqlCipherError("Sqlcipher support is missing")
Which is weird because sqlcipher is installed and I haven't changed my setup. I'm not sure when it stopped working and I'm failing to trace it to a particular update.
The problem seems to be that [this query](https://github.com/matrix-org/seshat/blob/7930413986f15225dc7d27848e8b60fea94bb226/src/database/mod.rs#L207) returns 0 results. This then makes [this check](https://github.com/matrix-org/seshat/blob/7930413986f15225dc7d27848e8b60fea94bb226/src/database/mod.rs#L210) fail. Recompiling element-desktop with that check disabled makes seshat work again (though it triggered a reindexing for some reason).
1 Like
austin
January 2, 2022, 11:01pm
4
The workaround from the seshat issue above does work for me: LD_PRELOAD=/nix/store/9w7j6xxlfzawixh7gh00wr0b766gkz04-sqlcipher-4.5.0/lib/libsqlcipher.so element-desktop
austin
January 2, 2022, 11:33pm
5
2 Likes
Wow, that was epic! I only just found the time to look back in and there’s already a PR ready. Thanks so much!
2 Likes
I can safely say Nix/OS is epic.
Tell your friends (real and virual) , tweet successes, get engineers at companies interested. Nix, break things, but we can fix things quickly with reduced side effects and regressions (AND build from source if needed).
We need more engineers to join the rebel alliance.
1 Like