keeweb / keeweb

Free cross-platform password manager compatible with KeePass
https://keeweb.info
Other
12.33k stars 1.09k forks source link

Cannot connect to browser #1865

Open pschuchmann opened 3 years ago

pschuchmann commented 3 years ago

Describe the bug KeeWeb not able to connect to browsers due to JavaScript Error.

To Reproduce Steps to reproduce the behavior:

  1. Open settings
  2. Click on browser
  3. Try to check a browser
  4. See error

Expected behavior KeeWeb connecting to Browser. On my notebook everything runs smooth, but on my desktop I couldn't make it work

Screenshots image

Environment KeeWeb v1.18.7 (dfc6201, 2021-07-18) Environment: electron v12.0.7 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) KeeWeb/1.18.7 Chrome/89.0.4389.128 Electron/12.0.7 Safari/537.36

Kdbx File The database is shared via OneDrive, the file is opened on both devices, but the connection to browsers only works on notebook.

Logs The log seems fine here, sometimes I can see an error coming from ykman, not quite sure, why it is missing here.

[INFO ] 2021-07-29T14:31:32.083Z [start-profiler] Electron app started in 396ms: loading app requires=2ms, single instance lock=1ms, portable check=0ms, userdata dir=0ms, defining args=0ms, setting env=0ms, app on ready=26ms, loading settings key=1ms, reading app settings=10ms, creating main window=16ms, configuring main window=5ms, restoring main window position=1ms, setting ipc handlers=9ms, setting global shortcuts=0ms, subscribing to power events=0ms, setting request handlers=0ms, main window ready=225ms, main window shown=23ms
[DEBUG] 2021-07-29T14:31:32.087Z [settings-manager] Theme changed dark
[INFO ] 2021-07-29T14:31:32.088Z [usb-listener] Starting USB listener
[DEBUG] 2021-07-29T14:31:32.088Z [native-module-connector] Starting native module host
[INFO ] 2021-07-29T14:31:32.144Z [start-profiler] App started in 342ms: fetching=130ms, pre-init=184ms, loading modules=48ms, document ready=8ms, creating app model=2ms, loading configs=40ms, initializing modules=2ms, loading remote config=1ms, checking features=0ms, initializing storage=0ms, starting usb=0ms, first view rendering=56ms, app ready event=0ms
[INFO ] 2021-07-29T14:31:32.656Z [updater] Next update check will happen in 85791s
[INFO ] 2021-07-29T14:31:35.721Z [open:pass] File open request
[INFO ] 2021-07-29T14:31:35.721Z [open:pass] Open file from cache, will sync after load onedrive
[DEBUG] 2021-07-29T14:31:35.721Z [storage-cache] Load f50102bc-851c-c75d-11b8-ab2b9651fda4
[DEBUG] 2021-07-29T14:31:35.725Z [storage-cache] Loaded f50102bc-851c-c75d-11b8-ab2b9651fda4 1ms
[INFO ] 2021-07-29T14:31:35.725Z [open:pass] Loaded file from cache null
[INFO ] 2021-07-29T14:31:35.783Z [file] Opened file pass: 58ms, 6000 rounds, 20 kB
[DEBUG] 2021-07-29T14:31:35.783Z [app] Add last open file f50102bc-851c-c75d-11b8-ab2b9651fda4 pass onedrive /drive/root:/pass.kdbx aNjRCRERBQUQwQzA1QzkxRSE0MTE2OS40MA
[INFO ] 2021-07-29T14:31:35.824Z [open:pass] Sync just opened file
[INFO ] 2021-07-29T14:31:35.829Z [sync:pass] Sync started onedrive /drive/root:/pass.kdbx {}
[INFO ] 2021-07-29T14:31:35.829Z [sync:pass] Stat file
[DEBUG] 2021-07-29T14:31:35.830Z [storage-onedrive] Stat /drive/root:/pass.kdbx
[INFO ] 2021-07-29T14:31:35.830Z [storage-onedrive] HTTP request GET https://graph.microsoft.com/v1.0/me/drive/root:/pass.kdbx
[INFO ] 2021-07-29T14:31:36.152Z [storage-onedrive] HTTP response GET https://graph.microsoft.com/v1.0/me/drive/root:/pass.kdbx 200 {"date":"Thu, 29 Jul 2021 14:31:34 GMT","content-type":"application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8","cache-control":"no-store","transfer-encoding":"chunked","content-encoding":"gzip","vary":"Accept-Encoding","strict-transport-security":"max-age=31536000","request-id":"765d265a-4c51-4ed4-a498-77ed46b3b5d7","client-request-id":"765d265a-4c51-4ed4-a498-77ed46b3b5d7","x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West Europe\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"005\",\"RoleInstance\":\"AM4PEPF0000D6EA\"}}","odata-version":"4.0"}
[INFO ] 2021-07-29T14:31:36.153Z [storage-onedrive] HTTP response 200
[DEBUG] 2021-07-29T14:31:36.153Z [storage-onedrive] Stated /drive/root:/pass.kdbx aNjRCRERBQUQwQzA1QzkxRSE0MTE2OS40MA 323ms
[INFO ] 2021-07-29T14:31:36.153Z [sync:pass] Stat found same version, not modified
[INFO ] 2021-07-29T14:31:36.153Z [sync:pass] Sync finished no error
[INFO ] 2021-07-29T14:31:56.311Z [browser-extension-connector] Started
[INFO ] 2021-07-29T14:31:56.311Z [browser-extension-connector] Enable Chrome KWC
[INFO ] 2021-07-29T14:32:16.671Z [browser-extension-connector] Stopped
antelle commented 3 years ago

Hi! What happens if you run reg in terminal? It's strange that it's not installed, how is it possible?

pschuchmann commented 3 years ago

Sorry for taking so long, you mean in CMD?

antelle commented 3 years ago

yes

pschuchmann commented 3 years ago

I am not quite sure, if this was the right place, but entering reg in Windows CMD results in a syntax error, even on the machine where KeeWeb is working. Going with REG /? at least returns a message with the parameter options.

antelle commented 3 years ago

Interesting, so reg is present but we can't find it. Strange, I don't understand how this can happen.

pschuchmann commented 3 years ago

I also tried to uninstall KeeWeb, maybe there are some folders not deleted by the routine?

antelle commented 3 years ago

I don't think uninstalling / installing will help, it's something in the system that I don't understand. KeeWeb that you're using is x64 too, right?

pschuchmann commented 3 years ago

The x64 Installer Version yes.

antelle commented 3 years ago

Very weird, any idea would be very welcome. Maybe there's something like an app is running in a sandbox where it can't call other apps?

pschuchmann commented 3 years ago

image This has been in the dev console lately.