-
-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot connect to database in chromium installed via snap on ubuntu #1823
Comments
Possible duplicate of #1426. This is entirely Snap's fault. There's nothing we can do about it. |
It is not a duplicate of #1426 because for firefox it is working as I mentioned. I installed both browsers using snap:
Hence, there is a way to get this running in the context of snap. I am unsure, if this something keepassxc or chromium developers have to deal with. |
@EHJ-52n I've only heard that Firefox Snap works with Native Messaging. I have no idea if Chromium behaves the same. |
It is not available for chromium or chrome yet, so the behavior is entirely expected. |
I can confirm that switching to Linux Mint driven chromium solves this issue for me. |
I face the same issue, but only on a freshly setup machine with Ubuntu 22.10. I have another machine with Ubuntu 22.10 that I used for several years now and updated Ubuntu there over and over again to get to the current version. There the Chromium Snap worked with .deb KeepassXC even before the Firefox Snap problem was fixed, and still is working. I would like to find out the differences on the two machines, but had no luck so far. Maybe you can guide me where specifically I could try to spot the differences on the two machines? |
To my understanding the chromium snap still doesn't have support for native messaging. Double check that the working box actually has chromium snap installed and not chromium native. Also make sure you are actually running the snap even if it is installed. You might still be running the native version (both installed at same time). |
@droidmonkey thx for the hint, I investigated further: I did not install a non-snap version to the working box, but I did an ugly hack to start the version that is installed via the Snap Store without the snap environment (simple symlink to the binary inside). I don't know what exact steps I took that it works, because when I try to reproduce it on the new machine, Chromium behaves super weird, far from a working state. And of course when I start the snap in the intended way, the KeePassXC plugin stops working. |
Expected Behavior
I installed the extension and tried to connect it to my database.
I expect to connect to my open database when clicking on "Reload" on the extension pop-up or "Connect" on the "Connected Databases" tab in the settings page.
Current Behavior
I receive the error message "Key exchange was not successful." when clicking on "Reload".
"Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings." is displayed when clicking on the extension icon.
I can connect and use the extension within firefox, hence the keepassxc application is working correctly.
I tried to use the advanced configuration and configured two different locations, so I tested three different configurations:
~/snap/chromium/common/chromium/NativeMessagingHosts
~/.config/chromium/NativeMessagingHosts
Possible Solution
none
Steps to Reproduce (for bugs)
Select the browsers: Google Chrome, Firefox, Tor Browser, Chromium
On the General tab, select "Request to unlock the database if it is locked", "Match URL scheme", "Allow returning expired credentials", "Search in all opened databases".
On the "Advanced" tab, select "Return advanced string fields which start with 2KPH:", "Update native messaging manifest files at startup". Optinally select "Use a custom browser configuration location" with "Browser type" "Chromium".
Debug info
Versions
From KeePassXC-Browser:
In the debug mode, I received the following error messages:
Please tell me, if you need any additional information.
And thank you very much for your time and providing KeePassXC!
The text was updated successfully, but these errors were encountered: