keepassxreboot / keepassxc-browser

KeePassXC Browser Extension
GNU General Public License v3.0
1.78k stars 188 forks source link

Cannot connect to KeePassXC on Windows10/Vivaldi #2172

Closed Shadow-Devil closed 7 months ago

Shadow-Devil commented 7 months ago

I am trying to setup KeePassXC on my Windows 10 PC with Vivaldi but currently run into issues.

  1. There was no Registry Entry for the json config file created, so I created it manually. It somehow was created for Chrome so I could copy paste it and changed the file name.
  2. It seems like the keepassxc-proxy is not running automatically. I also tried to run it manually but the Browser extension still doesn't connect to the KeePass Application.

Expected Behavior

Connect the browser extension with the local App.

Current Behavior

The connection can not be established. (Also, see logs below)

Possible Solution

Steps to Reproduce (for bugs)

  1. Install KeePassXC on Windows
  2. Install KeePassXC in Vivaldi
  3. Enable Browser Integration
  4. Try to connect

Debug info

Unchecked runtime.lastError: Cannot create item with duplicate id fill_username_password
Unchecked runtime.lastError: Cannot create item with duplicate id fill_password
Unchecked runtime.lastError: Cannot create item with duplicate id fill_totp
Unchecked runtime.lastError: Cannot create item with duplicate id fill_attribute
Unchecked runtime.lastError: Cannot create item with duplicate id show_password_generator
Unchecked runtime.lastError: Cannot create item with duplicate id save_credentials
Unchecked runtime.lastError: Cannot create item with duplicate id request_autotype
client.js:383 KeePassXC-Browser: Connecting to native messaging host org.keepassxc.keepassxc_browser
global.js:132 [Error client.js:403] KeePassXC-Browser - Failed to connect: Failed to start native messaging host.
global.js:132 [Error keepass.js:313] KeePassXC-Browser - 5: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings.
global.js:132 [Error page.js:132] KeePassXC-Browser - Cannot send activated_tab message: Could not establish connection. Receiving end does not exist.
2global.js:132 [Error keepass.js:313] KeePassXC-Browser - 5: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings.
2global.js:132 [Error keepass.js:941] KeePassXC-Browser - No content script available for this tab.
global.js:132 [Error keepass.js:313] KeePassXC-Browser - 5: Cannot connect to KeePassXC. Check that browser integration is enabled in KeePassXC settings.
client.js:383 KeePassXC-Browser: Connecting to native messaging host org.keepassxc.keepassxc_browser
global.js:132 [Error client.js:403] KeePassXC-Browser - Failed to connect: Failed to start native messaging host.
global.js:132 [Error keepass.js:418] KeePassXC-Browser - 9: Key exchange was not successful.
client.js:383 KeePassXC-Browser: Connecting to native messaging host org.keepassxc.keepassxc_browser
global.js:132 [Error client.js:403] KeePassXC-Browser - Failed to connect: Failed to start native messaging host.
global.js:132 [Error keepass.js:418] KeePassXC-Browser - 9: Key exchange was not successful.

KeePassXC - 2.7.7 KeePassXC-Browser - 1.9.0.3 Operating system: Win Browser: Vivaldi

droidmonkey commented 7 months ago

You need to enable Vivaldi browser within the keepassxc browser settings.

Vivaldi registry configuration is located here: HKEY_CURRENT_USER\\Software\\Vivaldi\\NativeMessagingHosts\\

https://github.com/keepassxreboot/keepassxc-browser/wiki/Troubleshooting-guide#windows

Shadow-Devil commented 7 months ago

I did enable it. There is one button for all Chrome, Vivaldi, and Brave which is checked.

Shadow-Devil commented 7 months ago

Registry was edited like this: image

Shadow-Devil commented 7 months ago

I also restarted my PC

varjolintu commented 7 months ago

Check:

Shadow-Devil commented 7 months ago

I copy pasted the path of the JSON file in the file explorer and it directly opened in Notepad:

{
    "allowed_origins": [
        "chrome-extension://pdffhmdngciaglkoonimfcmckehcpafo/",
        "chrome-extension://oboonakemofpalcgghocfoadofidjkkk/"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "C:\\Program Files\\KeePassXC\\keepassxc-proxy.exe",
    "type": "stdio"
}

I also started the keepassxc-proxy.exe manually but still receive the same error message in the Extension: image

Shadow-Devil commented 7 months ago

I also sometimes get the following errormessage: [Error keepass.js:418] KeePassXC-Browser - 9: Key exchange was not successful.