Skip to content
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

KeePassXC-Browser can't connect to database #439

Closed
ghost opened this issue Mar 16, 2019 · 72 comments
Closed

KeePassXC-Browser can't connect to database #439

ghost opened this issue Mar 16, 2019 · 72 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 16, 2019

KeePassXC-Browser doesn't connect to the database "No connected databases found." error:

KeePassXC-Browser has encountered an error:

Timeout or not connected to KeePassXC.

No problem with chrome.

Debug info

KeePassXC - 2.3.4
KeePassXC-Browser - 1.3.2
Operating system: Ubuntu 18.10
Browser: Chromium 73.0.3683.75

@ghost ghost changed the title KeePassXC-Browser can't connect to database KeePassXC-Browser can't connect to database platform: Linux browser: Chrome bug Mar 16, 2019
@ghost ghost changed the title KeePassXC-Browser can't connect to database platform: Linux browser: Chrome bug KeePassXC-Browser can't connect to database Mar 16, 2019
@varjolintu
Copy link
Member

Have you enabled the support for Chromium in KeePassXC's Browser Integration settings? If you still have problems after that, check: https://github.com/keepassxreboot/keepassxc-browser/wiki/Troubleshooting-guide

@XtraLarge
Copy link

Sometimes I'have a similar problem.
I found that if I kill all Chromium processes. (For every Extensionthere is one under details in the Task-Manager), or you kill an running chromium with "kill task" in the processes tab in the "Windows Task-Manager". The probem is after a new start of Chromium away.

Please test it and give me feedback. ;)

If it helps, I will try to debug it on the next time.

@diraol
Copy link

diraol commented Jun 27, 2019

Hi, I'm facing the same issue.
But with:

  • Debian Buster (10)
  • Firefox 66.0.5
  • KeepassXC 2.4.3
  • KeePassXC-Browser 1.4.6

I just can't connect to the database (The Connect button does nothing at all, not even logs errors).

@varjolintu
Copy link
Member

@diraol Check the guide linked above.

@varjolintu varjolintu added the bug label Jul 4, 2019
@mandarvaze
Copy link

on ubuntu (19.04) I had to manually start keepassxc.proxy
How to start automatically ? (and in the background. I can start with & but that seems like a hack.)

@varjolintu
Copy link
Member

@mandarvaze Starting the proxy manually will not actually work. Native Messaging API in the browser should start it. If that doesn't happen, the path is wrong.

If you are using KeePassXC as a Snap, please run https://raw.githubusercontent.com/keepassxreboot/keepassxc/master/utils/keepassxc-snap-helper.sh.

@mandarvaze
Copy link

@varjolintu At first I installed it from snap, but then realized it was "bad" version.
So I installed it via apt-get - got "better" version.

The path changed from /snap/bin to /usr/bin - But same problem.
If I start /usr/bin/keepassxc.proxy the browser extension works.
But I need to keep it in a separate terminal in foreground.

@varjolintu
Copy link
Member

@mandarvaze Please check the path from ~/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json file that it really points to the correct binary.

@mandarvaze
Copy link

Everything looks OK :

mandar@mandar-ubuntu:~$ more ~/.mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json
{
    "allowed_extensions": [
        "keepassxc-browser@keepassxc.org"
    ],
    "description": "KeePassXC integration with native messaging support",
    "name": "org.keepassxc.keepassxc_browser",
    "path": "/usr/bin/keepassxc-proxy",
    "type": "stdio"
}
mandar@mandar-ubuntu:~$ ls -l /usr/bin/keepassxc-proxy
-rwxr-xr-x 1 root root 30864 Aug 31  2018 /usr/bin/keepassxc-proxy
mandar@mandar-ubuntu:~$ file /usr/bin/keepassxc-proxy
/usr/bin/keepassxc-proxy: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=9abe19d50fe75f65b6ede2c5e23cd2fa82279234, stripped

@varjolintu
Copy link
Member

@mandarvaze Is your Firefox installed via Snap also?

@mandarvaze
Copy link

I don't know. It came pre-installed with Ubuntu 19.04 "out of the box"

@HorstBaerbel
Copy link

I don't know. It came pre-installed with Ubuntu 19.04 "out of the box"

I had a similar problem. After I uninstalled the snap version and installed the distribution version of chromium everything worked. It seems that the snap version was not able to start and to connect to keepassxc-proxy. Starting it by hand didn't help.

This should probably be mentioned the wiki, as in many distributions Firefox or Chromium will be installed as Snap / Flatpak versions and that might cause problems!

@mandarvaze
Copy link

BTW, after apt get version, I needed to reboot (Didn't know - accidentlally discovered)
So now everything works fine 🎉

@varjolintu
Copy link
Member

@HorstBaerbel There's a snap helper script availeble at https://keepassxc.org/download/#linux

@HorstBaerbel
Copy link

Nice. Thanks! Would be cool if this was linked in the Wiki, or did I miss that?. Where do I copy it? Do I have to check the "native bla" checkbox in KeepassXC?

@varjolintu
Copy link
Member

@HorstBaerbel I think it will be in the new documentation when it's finally released. It doesn't matter where you copy it, just run it.

@twt2
Copy link

twt2 commented Oct 25, 2019

I just ran into this; I just upgraded to 19.10 Eoan and the browser extension could no longer even attempt to connect to the KeePassXC database.

According to Ubuntu's upgrade script Chromium is now and from this point forward to be delivered as a snap. I just downloaded the helper script mentioned above, only to be informed by the script that browsers installed as snaps are not supported.

Chrome (installed as deb from Google's repository) obviously still works. If there's a Chromium PPA or something I haven't yet looked for it, but any folks running non-LTS Ubuntu will be seeing this.

KeePassXC - KeePassXC - Version 2.4.3 Revision: 5d6ef0c
KeePassXC-Browser - 1.5.3
Operating system: Linux x86_64
Browser: Chrome/Chromium 78.0.3904.70

@varjolintu
Copy link
Member

varjolintu commented Oct 25, 2019

@twt2 Snap would need to accept Native Messaging API creating child processes. If that is something that cannot be configured, there's no way to fix it.

EDIT: Found the following issues related to this:
https://forum.snapcraft.io/t/firefox-support-native-messaging/11068/2
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1741074

@varjolintu varjolintu pinned this issue Oct 31, 2019
@ba32107
Copy link

ba32107 commented Nov 10, 2019

I have the same issue as @twt2. Updated to Ubuntu 19.10, and since then the extension does not work. I have double checked the guide, but the proxy is not running (starting it manually does not help). The json file is in ~/snap/chromium/current/.config/chromium/NativeMessagingHosts as expected, and points to an existing binary. My Chromium is a snap package (as everyone's in 19.10) and KeePassXC is not a snap.

I checked the bugreports that @varjolintu linked, and indeed it seems that the snap Chromium is unable to use the native host connector. Visiting https://extensions.gnome.org/ gives the same error:
Although GNOME Shell integration extension is running, native host connector is not detected. Refer documentation for instructions about installing connector.

Do I understand correctly that there's nothing you can do to fix this? If that is true, I think this should be made very clear in the twiki and on keepassxc.org as well, as @HorstBaerbel said.

@ba32107
Copy link

ba32107 commented Nov 10, 2019

@HorstBaerbel There's a snap helper script availeble at https://keepassxc.org/download/#linux

Isn't this script for when KeePassXC is installed as snap? @HorstBaerbel was referring to Chromium being snap - the script won't work in this case.

@varjolintu
Copy link
Member

varjolintu commented Nov 10, 2019

The script is only meant for snap version of KeePassXC. Browsers using snap probably won't work great with Native Messaging. Need to investigate how this situation could be solved.

@HorstBaerbel
Copy link

HorstBaerbel commented Feb 20, 2020

I'm by all means no expert in this, but as I understand it NativeMessaging is a crutch anyways. A new interface in snapd would be needed to support NativeMessaging. The problem is it would expose a lot of functionality which undermines encapsulation / security of snap packages (one of the key reasons for snap / flatpak). The maintainers of all snap-packaged apps or the maintainers of plugins for those apps can't do anything about this issue, so I think a general solution needs to be found. I commented on the Launchpad issue.

@droidmonkey
Copy link
Member

Native messaging is not a crutch, it's a security feature

@HorstBaerbel
Copy link

HorstBaerbel commented Feb 20, 2020

Well, I might be wrong about that. Applications could always connect to a service on localhost. Not sure what can be made more secure.
Anyways, snapd needs to build an API of any sort to support this, while not compromising security. All issues here are useless unless something is done in snap.

@Mogekoff
Copy link

Mogekoff commented Mar 2, 2020

ArchLinux KDE Plasma Vivaldi same problem

@spi43984
Copy link

spi43984 commented Aug 3, 2020

@spi43984 Sadly no. You need to use strace to see where the connection fails, and what files it's trying to look at.

Ok, would it be something like this you're interested in?

strace: Process 27855 attached
restart_syscall(<... resuming interrupted poll ...>) = 1
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-databasehash\",\"me"..., 307) = 307
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [345])               = 0
read(5, "{\"action\":\"get-databasehash\",\"me"..., 345) = 345
write(1, "Y\1\0\0{\"action\":\"get-databasehash\""..., 349) = 349
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-logins\",\"message\""..., 533) = 533
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [1183])              = 0
read(5, "{\"action\":\"get-logins\",\"message\""..., 1183) = 1183
write(1, "\237\4\0\0{\"action\":\"get-logins\",\"mess"..., 1187) = 1187
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -

Used strace -p <process # of </usr/bin/keepassxc-proxy>.

@varjolintu
Copy link
Member

@spi43984 Yes. If you can reproduce the situation where it doesn't have connection anymore, are you still seeing these messages?

@spi43984
Copy link

spi43984 commented Aug 4, 2020

I got another error today.

The KeePass icon to enter username/password on a website is green. But clicking it doesn't enter any credentials. Strace doesnt show any messages, the devtools console shows:

Connecting to native messaging host org.keepassxc.keepassxc_browser
keepass.js:608 Server public key: xxx...=
keepass.js:1188 Error: No content script available for this tab.
20browserAction.js:96 Uncaught (in promise) TypeError: Cannot read property 'stack' of undefined
    at Object.browserAction.stackUnshift (browserAction.js:96)
    at Object.browserAction.showDefault (browserAction.js:49)
browser-polyfill.min.js:1 Uncaught (in promise) Object
77browserAction.js:96 Uncaught (in promise) TypeError: Cannot read property 'stack' of undefined
    at Object.browserAction.stackUnshift (browserAction.js:96)
    at Object.browserAction.showDefault (browserAction.js:49)

Restarting the Chromium app resolves the issue. Icon is (still) green and clicking it enters credentials.

I am trying to reproduce the other error but fortunately or not I can't at the moment.

@varjolintu
Copy link
Member

@spi43984 This would need debugging the content script to see where it fails. Those stack errors you see are just because of the extension page you are viewing.

@spi43984
Copy link

spi43984 commented Aug 4, 2020

@spi43984 This would need debugging the content script to see where it fails. Those stack errors you see are just because of the extension page you are viewing.

Ok, how woould I do that? strace doesn't show anything.

Is there a way to monitor keepassxc-proxy with strace -p <initial pid> and catch the new pid as soon keepassxc-proxy gets restarted? To solve my issues I need to restart keepassxc-proxy, then the pid changes and strace terminates. I have to re-run strace with the new pid but am missing then the initial messages.

@spi43984
Copy link

spi43984 commented Aug 4, 2020

Ok, I got the error again.

Here's the strace from the hanging keepassxc-proxy.

strace: Process 19116 attached
restart_syscall(<... resuming interrupted poll ...>) = 1
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}], 1, -1)    = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
futex(0x557fd31fe690, FUTEX_WAKE_PRIVATE, 2147483647) = 1
futex(0x557fd31fe5a0, FUTEX_WAIT_PRIVATE, 0, NULL) = 0
futex(0x557fd31fe550, FUTEX_WAKE_PRIVATE, 1) = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Unfortunately I have to restart keepassxc-proxy in Chromium so it gets a new pid with which I have to run strace again. So I don't catch the initial messages... Here's the strace from the restarted keepassxc-proxy (after restarting I hit F5 twice):

strace: Process 27933 attached
restart_syscall(<... resuming interrupted poll ...>) = 1
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-databasehash\",\"me"..., 307) = 307
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 2 ([{fd=3, revents=POLLIN}, {fd=5, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
ioctl(5, FIONREAD, [345])               = 0
read(5, "{\"action\":\"get-databasehash\",\"me"..., 345) = 345
write(1, "Y\1\0\0{\"action\":\"get-databasehash\""..., 349) = 349
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-logins\",\"message\""..., 409) = 409
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [78])                = 0
read(5, "{\"action\":\"get-logins\",\"error\":\""..., 78) = 78
write(1, "N\0\0\0{\"action\":\"get-logins\",\"erro"..., 82) = 82
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-databasehash\",\"me"..., 330) = 330
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [345])               = 0
read(5, "{\"action\":\"get-databasehash\",\"me"..., 345) = 345
write(1, "Y\1\0\0{\"action\":\"get-databasehash\""..., 349) = 349
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\1\0\0\0\0\0\0\0", 16)         = 8
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
write(5, "{\"action\":\"get-logins\",\"message\""..., 409) = 409
write(3, "\1\0\0\0\0\0\0\0", 8)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\2\0\0\0\0\0\0\0", 16)         = 8
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1) = 1 ([{fd=5, revents=POLLIN}])
ioctl(5, FIONREAD, [78])                = 0
read(5, "{\"action\":\"get-logins\",\"error\":\""..., 78) = 78
write(1, "N\0\0\0{\"action\":\"get-logins\",\"erro"..., 82) = 82
poll([{fd=3, events=POLLIN}, {fd=5, events=POLLIN}], 2, -1

@varjolintu
Copy link
Member

@spi43984 Right mouse click on a page, select "Inspect". Switch to "Sources" tab. Using the double arrow at top left, make sure Content Scripts are selected. Put a breakpoint here: https://github.com/keepassxreboot/keepassxc-browser/blob/develop/keepassxc-browser/content/keepassxc-browser.js#L1381

@spi43984
Copy link

spi43984 commented Aug 5, 2020

Set breakpoint, checked code flow. When clicking on green icon on web page I see:

  • line 1410: const credentials = await browser.runtime.sendMessage({ gets executed
  • after that code jumps into browser-polyfill.min.js twice and terminates with line 734 without returning anymore to keepassxc-browser.js

Can I somehow record (I don't mean a video ;-) the code debugging for sharing?

Until then some more details:

keepassxc-browser.js, line 1410: const credentials = await browser.runtime.sendMessage({ calls
browser-polyfill.min.js, line 746: if (C in y), returns then to keepassxc-browser.js, line 1410: const credentials = await browser.runtime.sendMessage({ again

Then jumps into browser-polyfill.min.js, line 733: return x.call(z, v, ...A), then executes the lines 849, 851, 853, 854, 858, 860, 862, 734 and ends here.

In case I re-start the app in Chromium code returns from browser-polyfill.min.js, line 734 back to keepassxc-browser.js.

@varjolintu
Copy link
Member

@spi43984 Use "Step over" with those browser.runtime functions. Debugging the polyfill doesn't help. You can set a breakpoint to line 1416 and see if the credentials and combinations variables are correctly set.

@spi43984
Copy link

spi43984 commented Aug 6, 2020

@spi43984 Use "Step over" with those browser.runtime functions. Debugging the polyfill doesn't help. You can set a breakpoint to line 1416 and see if the credentials and combinations variables are correctly set.

That's what I did - line 1410: const credentials = await browser.runtime.sendMessage({ gets executed but the script then terminates and never reaches line 1416. If I understand line 1410 correctly the browser asks KeePassXC for the credentials. It looks like the browser fails to connect to KeePassXC and never gets an answer. The only thing I saw in debugging, is that the code execution gets stuck in browser-polyfill.min.js.

@varjolintu
Copy link
Member

@spi43984 This would probably need debugging with the KeePassXC side also. It would be much easier if I could reproduce the issue.

@spi43984
Copy link

spi43984 commented Aug 7, 2020

@spi43984 This would probably need debugging with the KeePassXC side also. It would be much easier if I could reproduce the issue.

Definitely - I've learned a lot about debugging within the last few days... So thanks a lot for your support so far. I can dig into this issue even further but would need some advice how to do that properly.

I don't know exactly what's different with my setup - but there is no such thing as two identical setups. The error I reported in the beginning seems to be the same I am having now with the difference that the icon looks different now (now it's permanently green).

What I do know is:

  • with previous KeePassXC versions I've never had this issue
  • issues occured with update of KeePassXC (or Chromium as I keep this at the current version)
  • with KeepassXC 2.5.4 (and current Chromium) I don't experience that issue
  • I have some Chromium apps/extensions installed, maybe one of them is causing the issue in combination with the new KeePassXC, from a quick review maybe the Chromium extension "The Great Suspender" is causing the troubles now - it's the only one which actively monitors web sites and suspends them after some time to save resources (I disabled it now to see if it is causing the trouble)

@varjolintu
Copy link
Member

@spi43984 Thanks for you patience. I appreciate the amount of testing and debugging you've made with this issue.

I find it strange that 2.5.4 would still work normally. We made some major refactor changes to the Browser Integration in 2.6.0 but it should make things less problematic, not the other way around. The proxy seems to be running at all time because you don't see error messages related to a Native Messaging disconnect, and looking at the strace logs it really seems the messages are just not passing through properly.

Have you tried if the same happens with another browser, for example Firefox? It could help narrowing down the issue.

@spi43984
Copy link

spi43984 commented Aug 7, 2020

@spi43984 Thanks for you patience. I appreciate the amount of testing and debugging you've made with this issue.

Thank you for your support!

I find it strange that 2.5.4 would still work normally. We made some major refactor changes to the Browser Integration in 2.6.0 but it should make things less problematic, not the other way around. The proxy seems to be running at all time because you don't see error messages related to a Native Messaging disconnect, and looking at the strace logs it really seems the messages are just not passing through properly.

From my previous debugging sessions I get the idea that (and as a rookie this might me complete nonsense)

  • the proxy tries to establish a connection with the DB as soon the browser gets started
  • with a working connection line 1410 in keepassxc-browser.js does not get execetud (my breakpoint at lines 1410 and 1416 don't hit)
  • without a working connection if I re-enable the proxy extension I see the breakpoints being hit
  • without a working connection and without re-enabling the proxy extension I see the breakpoints being hit but keepassxc-browser.js just terminates at line 1410

Is there anything in the changed code that could explain the behaviour, that the script just exits with line 1410?
Or are there parts of code from the previous KeePassXC version I could check to narrow it down to a specific changed code block?

Have you tried if the same happens with another browser, for example Firefox? It could help narrowing down the issue.

I've just setup Firefox and will check it too.

@spi43984
Copy link

spi43984 commented Aug 7, 2020

While testing with the disabled extension "The Great Suspender" the issue hasn't turned up yet (and usually it did within minutes). I'll monitor further...

@spi43984
Copy link

The error occured again both in Chromium with disabled extension "The Great Suspender" and in Firefox. It happens after some time of inactivity with my notebook going into suspend mode.

@varjolintu
Copy link
Member

@spi43984 So the suspend is the main problem after all?

@spi43984
Copy link

spi43984 commented Aug 14, 2020

@spi43984 So the suspend is the main problem after all?

Hard to tell. Might be, might be a timeout as well after some time of inactivity. In any case the issue effects both Chromium and Firefox, so it's not just a Chromium issue.
I wonder why the extension doesn't try and reconnect to KeePassXC. Is there some logic to detect a connection loss?

@varjolintu
Copy link
Member

@spi43984 There's the experimental Auto-Reconnect feature you can try to enable from extension settings.

@spi43984
Copy link

@spi43984 There's the experimental Auto-Reconnect feature you can try to enable from extension settings.

I saw that feature and if I remember right I've already tried it without success. Will check again.

@spi43984
Copy link

spi43984 commented Aug 17, 2020

@spi43984 There's the experimental Auto-Reconnect feature you can try to enable from extension settings.

I saw that feature and if I remember right I've already tried it without success. Will check again.

Ok, issue happened again in Chromium, this time with activated experimental feature Auto-Reconnect. Funny though - I got this error by visiting this very github page.

Connection loss happened in Firefox as well - Auto-Reconnect has been enabled as well.

Bildschirmfoto von 2020-08-17 09-04-51

@yichangshengwu
Copy link

system: arch linux (rolling)
keepassxc version: 2.6.1
browser: vivaldi (latest version in aur)
keepassxc-browser version: 1.6.6

things that happens to me is :

if i install the extension from google chrome webstore, it works normally;

but if i install it from the *.zip downloaded from github release,
the extension will not able to connect to keepassxc,
although the version is the same 1.6.6 !

@varjolintu
Copy link
Member

@yichangshengwu If you try to load the extension manually the extension ID changes. You need to modify the Native Messaging script file to include the temporary ID. See https://github.com/keepassxreboot/keepassxc-browser/wiki/Loading-the-extension-manually

If you do this, it's also good to disable the advanced Browser Integration setting Update native messaging manifest files at startup because it can override your custom setting on KeePassXC start.

@yichangshengwu
Copy link

@yichangshengwu If you try to load the extension manually the extension ID changes. You need to modify the Native Messaging script file to include the temporary ID. See https://github.com/keepassxreboot/keepassxc-browser/wiki/Loading-the-extension-manually

If you do this, it's also good to disable the advanced Browser Integration setting Update native messaging manifest files at startup because it can override your custom setting on KeePassXC start.

sorry, my bad, didn't read the wiki, thanks!

@ghost
Copy link

ghost commented Sep 29, 2020

disable the advanced Browser Integration setting "Update native messaging manifest files at
startup" because it can override your custom setting on KeePassXC start.

@varjolintu, this helpful tip isn't in the wiki page and editing seems to be disabled.

@varjolintu
Copy link
Member

@anon324875693 Editing should be enabled with non-Snap versions.

@ghost
Copy link

ghost commented Sep 29, 2020

@varjolintu, I meant I can't edit the wiki page myself to include this information.

Github help

@ghost
Copy link

ghost commented Sep 29, 2020

Thanks.

@gadflysu
Copy link

For Google Chrome Beta, check ~/.config/google-chrome-beta/NativeMessagingHosts/org.keepassxc.keepassxc_browser.json, which wasn't auto-generated.

@varjolintu varjolintu unpinned this issue Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests