Cake wallet on Bazzite Linux

I’m trying to setup Cake wallet on bazzite linux but i keep running into consistent SQLite FFI errors. i tried both flatpak and portable tar.xz version but after the installation it shows the same error and i can’t seem to find a fix.

Is there anything i should try or someone can help me?

What is the error exactly? That seems important to know.

1 Like

My issue may be similar to OP. I’m trying to upgrade my Flatpak version on CachyOS Linux. Here are some snippets from the log:

SqliteFfiException(error, Invalid argument(s): Couldn't resolve native function 'sqlite3_initialize' in 'package:sqlite3/src/ffi/bindings.dart' : Failed to load dynamic library 'libsqlite3.so': Failed to load dynamic library 'libsqlite3.so': libsqlite3.so: cannot open shared object file: No such file or directory.)

I’m upgrading from a working instance of 6.2.0 to 6.3.0. I’m using Cake_Wallet_v6.3.0_Linux.flatpak

Well the problem is it can’t locate the shared objects. Are they missing in the flatpak or just somehow not on the search path?

Or it does find them but can’t load them for some obscure reason, like wrong cpu architecture but I doubt that’s the issue. It could be some new Linux protection blocking it.

1 Like

I’ll continue to troubleshoot a bit later. They do appear to be in the flatpak:

[09:34:34] jason@CachyOS-Desktop /home/jason/Apps/Cake_Wallet_v6.3.0_Linux/lib
> ls -la
drwxr-xr-x    - jason 25 Jul 17:36  .
drwxr-xr-x    - jason 25 Jul 17:36  ..
.rw-r--r--  33M jason 24 Jul 08:45  libapp.so
.rw-r--r--  23k jason 24 Jul 08:46  libbitbox_flutter_plugin.so
.rw-r--r--  23k jason 24 Jul 08:46  libdevicelocale_plugin.so
.rw-r--r-- 596k jason 24 Jul 08:45  libdnssec_proof.so
.rw-r--r--  43k jason 24 Jul 08:45  libfile_selector_linux_plugin.so
.rw-r--r--  43M jason 24 Jul 08:46  libflutter_linux_gtk.so
.rw-r--r--  19k jason 24 Jul 08:46  libflutter_local_authentication_plugin.so
.rw-r--r--  35M jason 24 Jul 08:46  libmonero_wallet2_api_c.so
.rw-r--r-- 1.7M jason 24 Jul 08:46  libsp_scanner.so
.rw-r--r-- 2.0M jason 24 Jul 08:45  libsqlite3_flutter_libs_plugin.so
.rw-r--r--  24k jason 24 Jul 08:46  liburl_launcher_linux_plugin.so
.rw-r--r--  19M jason 24 Jul 08:46  libwarp_api_ffi.so
.rw-r--r--  34M jason 24 Jul 08:46  libwownero_wallet2_api_c.so

cc. @omar, in case you may have further insights, or someone else from the team. (:dog_face:)

1 Like

The error message complained it couldn’t find libsqlite3.so.

Your directory listing does not contain that name. It does contain a libsqlite3_flutter_libs_plugin.so which is a slightly different name.

Your flatpak has a problem with a missing file.

You can try renaming the file or creating a symlink to it.

2 Likes

Thanks, I’ll give that a try and report back.

UPDATE: 6.3.0 runs with the symlink!

I created the symlink:

cd ~/Apps/Cake_Wallet_v6.3.0_Linux/lib # my path, yours may vary
ln -s libsqlite3_flutter_libs_plugin.so libsqlite3.so

Then I can launch Cake Wallet with this:

cd ~/Apps/Cake_Wallet_v6.3.0_Linux
LD_LIBRARY_PATH=./lib ./cake_wallet
1 Like

Okay cool so seems like a build issue with the Linux flatpak. Not using the names it’s expecting.

1 Like

I am getting the same error on 24.04 Ubuntu with Cake_Wallet_v6.3.0_Linux.flatpak …Going to wait for a fix… would rather not need to symlink and do a cli launch to use the wallet. Also has anyone done a hardened config with Flatseal? For example filesystem=home it probably does not need ‘All user files’ space permissions to operate, and should be directory access specific.

1 Like

I was getting this same error a few days ago and thought it was bazzite. But I installed it on my mint environment and that gave me the same error. I just downloaded an old version - 6.2.0 and 6.1.2 both worked

Although there was another unrelated issue I ran into - when adding an existing ETH wallet first, it just won’t let me in. It creates the wallet and says “A wallet with that name already exists” when restarting to try again. But I couldn’t get it to open until I added a monero wallet. Then I got in and I could see all of the wallets I tried to add before