bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
8.72k stars 1.14k forks source link

Can't log in Bitwarden via the desktop app in Tails. #6312

Open iwnc opened 10 months ago

iwnc commented 10 months ago

Steps To Reproduce

  1. Go to 'https://vault.bitwarden.com/download/?app=desktop&platform=linux' and download the app.
  2. Make it executable.
  3. Launch the app and enter the e-mail and password.
  4. Click on 'Authenticate with Master Password'

Expected Result

If the 2FA has been setup the app should ask for 2FA otherwise I should be able to login immediately.

Actual Result

I get the message "Unexpected error: Failed to fetch."

Screenshots or Videos

Captură de ecran de la 2023-09-15 20-11-10

Additional Context

sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: (node:19377) DeprecationWarning: file property is deprecated and will be removed in v5.
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: (Use `bitwarden --trace-deprecation ...` to show where the warning was created)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: [19377:0915/202036.225894:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser”
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: [19377:0915/202036.225932:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
sep 15 20:20:36 amnesia org.gnome.Nautilus[19412]: libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'init')
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at BiometricsService.<anonymous> (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:47195:55)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at Generator.next (<anonymous>)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at /tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:47161:71
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at new Promise (<anonymous>)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at biometrics_service_awaiter (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:47157:12)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at BiometricsService.init (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:47194:16)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at Main.<anonymous> (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:53060:46)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at Generator.next (<anonymous>)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]:     at fulfilled (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:52957:58)
sep 15 20:20:36 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of null (reading 'null')
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]:     at new Menubar (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:45541:131)
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]:     at MenuMain.<anonymous> (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:45595:56)
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]:     at Generator.next (<anonymous>)
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]:     at fulfilled (/tmp/.mount_BitwarJCrABo/resources/app.asar/main.js:45565:58)
sep 15 20:20:38 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 3)
sep 15 20:20:41 amnesia org.gnome.Nautilus[15357]: scheduling to check sse in 10 seconds
sep 15 20:20:41 amnesia org.gnome.Nautilus[15357]: sse info not available, skip reconnect
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]: 20:20:41.692 › Checking for update
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]: 20:20:41.910 › Error: Error: net::ERR_CONNECTION_REFUSED
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]:     at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:49549)
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]:     at SimpleURLLoaderWrapper.emit (node:events:513:28)
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: Error: net::ERR_CONNECTION_REFUSED
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]:     at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:49549)
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]:     at SimpleURLLoaderWrapper.emit (node:events:513:28)
sep 15 20:20:41 amnesia org.gnome.Nautilus[19377]: (node:19377) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)

Operating System

Linux

Operating System Version

Tails 5.17.1

Installation method

Direct Download (from bitwarden.com)

Build Version

2023.8.4

Issue Tracking Info

kavemang commented 10 months ago

I'm finding both the appimage and the RPM hangs in this exact way on F38/KDE as of the latest version

atjbramley commented 9 months ago

Hi @iwnc,

Thank you for your report!

I was able to reproduce this issue, and I have flagged this to our engineering team.

If you wish to add any further information/screenshots/recordings etc., please feel free to do so at any time - our engineering team will be happy to review these.

Thanks once again!

jacklund commented 6 months ago

I'm running into the same issue.

Since the Tor Browser can access the web vault, I'm guessing that whatever is trying to make the HTTPS call to the web vault in the app isn't paying attention to the SOCKS5_SERVER environmental variable, so it's hitting a brick wall rather than going through the proxy. FWIW, I tried using proxychains with it to force it to use the proxy, but it exited with the error Trace/breakpoint trap.

Not...great. :disappointed:

moloko commented 1 month ago

Any update on this one? Accessing the web vault via the Tor browser seems to be quite problematic these days (I have flagged this to BW support) so it would be great to have this fixed so as to have the app as an alternative to the web vault...