ProtonMail / proton-bridge

Proton Mail Bridge application
GNU General Public License v3.0
1.14k stars 152 forks source link

Server did not provide gRPC service configuration in time. (Ubuntu 23.04) #422

Closed janjaromirhorak closed 10 months ago

janjaromirhorak commented 11 months ago

Protonmail Bridge does not start - it hangs for a while and then shows a popup saying Server did not provide gRPC service configuration in time..

Expected Behavior

Protonail Bridge starts normally.

Current Behavior

Protonmail Bridge does not start - it hangs for a while and then shows a popup saying Server did not provide gRPC service configuration in time.. I am using pass as the keychain of choice. This behavior has been consistent for me on the following versions: 3.3.2-1 and 3.4.2-1. I am running Ubuntu 23.04 and I have followed the official docs for installing the bridge.

This is what I see after running protonmail-bridge in the terminal:

INFO[Sep 11 17:57:18.728] bridge-gui starting
INFO[Sep 11 17:57:18.728] Using Qt 6.3.2
INFO[Sep 11 17:57:18.733] lock file created /home/[USERNAME]/.cache/protonmail/bridge-v3/bridge-v3-gui.lock
INFO[Sep 11 17:57:18.733] New Sentry reporter - id: MHdRfeTrprEO1J6GpE8ZJdIU4Q2513qP5B/Kk3dVAjE=.
DEBU[Sep 11 17:57:18.735] Bridge executable path: /usr/lib/protonmail/bridge/bridge
INFO[Sep 11 17:57:18.735] Launching bridge process with command "/usr/lib/protonmail/bridge/bridge" --grpc --parent-pid 6267 --session-id 20230911_175718698 --launcher /usr/lib/protonmail/bridge/proton-bridge
INFO[Sep 11 17:57:18.735] Retrieving gRPC service configuration from '/home/[USERNAME]/.config/protonmail/bridge-v3/grpcServerConfig.json'
time="2023-09-11T17:57:18+02:00" level=warning msg="Failed to add test credentials to keychain" error="failed to create item: Object does not exist at path “/org/freedesktop/secrets/collection/login”" helper="*keychain.SecretServiceDBusHelper"
reportID: 5c81b95f7eb34a7f522f17300923582b Captured exception :waitAndRetrieveServiceConfig(): Server did not provide gRPC service configuration in time.
FATA[Sep 11 18:00:34.033] Failed to launch                              error="exit status 1" exe_path=/usr/lib/protonmail/bridge/bridge-gui exe_to_launch=bridge-gui launcher_path=/usr/lib/protonmail/bridge/proton-bridge launcher_version=3.4.2

Steps to Reproduce

  1. Follow the instructions to install protonmail-bridge on Ubuntu 23.04.
  2. Launch protonmail-bridge, find out that a password manager in required, install pass from repository.
  3. Launch protonmail-bridge, everything works fine.
  4. Restart computer, protonmail-bridge fails to launch.

Version Information

LBeernaertProton commented 11 months ago

Is it possible that the pass service is not initialized after reboot?

I'm not very familiar with pass, but I recall that with KeePassXC one needs to unlock the vault before the service becomes available.

janjaromirhorak commented 10 months ago

It is possible that the bridge starts before pass does, but even restarting the bridge (thus starting it after pass is already initialized) didn't help.

Currently, after several restarts, everything now seems to work without issues. Since I am not able to provide steps for reliably reproduce this problem, I will close this issue.

ckpinguin commented 6 months ago

Just had the same on my Mac. Was the first time since 2 months, but reproducing it, as said, is not really possible.