Keepassxc-browser: Browser extension disconnects from database after some time

Created on 28 May 2019  路  20Comments  路  Source: keepassxreboot/keepassxc-browser

After a period of inactivity, the Chrome brower extension shows the message below:

image

However, KeePassXC is running in the system tray and browser integration is already enabled. Clicking Reload resolves the issue for a while longer, until it happens again.

Expected Behavior

The browser extension should not lose connectivity with the KeePassXC client while it's running.

Current Behavior

After a period of time, it seems that the browser extension stops connecting to the client and a reload is required.

Possible Solution

I'm not aware of any.

Steps to Reproduce (for bugs)

I'm still struggling to understand exactly what triggers this, so forgive me if the steps below lack some info.

  1. Ensure KeePassXC is running and the browser plugin is installed and connected
  2. Ensure you can login to a website with KeePassXC
  3. Stop using KeePassXC for several minutes
  4. Notice that the browser plugin disconnects with the screenshot shown above

Debug info

KeePassXC - 2.4.1
KeePassXC-Browser - 1.4.5
Operating system: Win
Browser: Chrome

Any help is greatly appreciated, this is the only issue I've encountered with this otherwise wonderful software! 馃槃

Huge thanks
Fotis

bug

All 20 comments

Does it help if you disable Automatic reconnect from the settings? It has been a PITA lately.

Does it help if you disable Automatic reconnect from the settings? It has been a PITA lately.

Thanks for the reply, I'm afraid that Automatically reconnect to KeePassXC. is already enabled 馃槩

Yes, but does it help if you disable it?

Yes, but does it help if you disable it?

I'm so sorry, I misread your message. I'll attempt this and let you know how it goes.

So far so good it! However, I don't want to jump the gun so I'll continue to use the app in this state for the next day or two before confirming that this was the cause.

Thanks heaps
Fotis

I can confirm that the issue has never occurred for me since disabling the option above so it absolutely seems to be related. Any ideas folks?

We need to disable the reconnect tries from the popup also. This is the reason for the behaviour.

Please try the current 1.4.6 version.

Does this still happen? If there's no reply for the issue, it will be closed.

Not sure this is the same issue, but for me with Automatically reconnect to KeePassXC setting set to off, once in a while the extension notifies me that the database has been disconnected and a new connection identifier needs to be specified.

@roded Does this happen with the KeePassXC 2.5.0 snapshot also? There was an issue that the database hash was calculated including the recycle bin hash, which is just stupid. So any deletion or recreation of recycle bin can cause this.

@varjolintu I'm on 2.4.3. Will gladly test 2.5.0 once it's out.

@roded If you don't want to wait: https://snapshot.keepassxc.org/latest/

@varjolintu, thanks! Though I get my KeePassXC via pacman so I'm not sure I have that option. Any idea when 2.5.0 will be out? Thanks

@roded Pretty soon. In a week or two.

I'm now running KeePassXC 2.5.1 and KeePassXC-Browser 1.5.3 and this issue is still present unfortunately. I've tried playing with the "Automatically reconnect to KeePassXC" option as well.

I'm using both Firefox and Firefox-Dev to connect to the same KeePassXC database. When attempting to fill in login details, it is usually the case that the KeePassXC-Browser is not connected to the database and a new connection needs to be established. (of course, I'm using a different connection ID for each browser).

@roded When this happens, does the Connected Databases tab still show both connections?

@varjolintu, once connected each browser shows itself in the Connected Databases tab. I.e., on my Firefox I see the 'firefox' connection I've created for it and on my Firefox Developer Edition I see its 'firefox-dev' connection. These connections don't seem to be shared between the browsers in my case.

Also, at the point when a browser is disconnected from the database and asks me to pair with KeePassXC, the Connected Databases tab shows the last connection.

And another issue: My Firefox browser is currently not connected to the KeePassXC database. The following is shown in the Connected Databases tab:

image

If I delete the connection and recreate it with the same name, it doesn't necessarily overwrite the previous connection. The first time I tried I did not see a overwrite warning and the connection reappeared with the same creation date at the last, the second time I've tried it did actually overwrite the connection. Actually, as my existing connections are rather old, I'll try recreating them to see if that helps.

@roded I suggest you to try removing all the connection keys from KeePassXC (Database Settings -> Browser Integration) and from both browsers. If that doesn't help, try a new temporary database and see if you can reproduce the problem with that one.

Please suggest reopening the issue if the problem still persists.

Was this page helpful?
0 / 5 - 0 ratings