compass icon indicating copy to clipboard operation
compass copied to clipboard

Storage issue with connections on ubuntu/linux (credential store)

Open Tofandel opened this issue 5 years ago • 21 comments

Mongodbcompass: 1.20.5 Kubuntu: 19.04

None of my connections/settings are stored, when I restart the app my favorite or recent connections are lost

I'm getting this error:

Remote error from secret service: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.secrets was not provided by any .service files
(node:10188) UnhandledPromiseRejectionWarning: ReferenceError: error is not defined
    at /usr/share/mongodb-compass-community/resources/app.asar/node_modules/storage-mixin/lib/backends/secure-main.js:87:42

WIth a bit of research I found a similar issue https://github.com/Foundry376/Mailspring/issues/681

sudo apt install gnome-keyring solved the issue but adding it as a dependency would be a good idea

Tofandel avatar Mar 04 '20 11:03 Tofandel

The issue for me was related to mongo-compass being unable to access https://en.wikipedia.org/wiki/GNOME_Keyring.

I tried a couple solutions online such as https://bbs.archlinux.org/viewtopic.php?id=224652 to no avail. I read that most login managers (lightdm, ssdm, gdm, etc.) will unlock it at the time of login -> I now use lightdm instead of logging into my computer from the terminal with a call to startx and it's working okay.

There is still a wierd glitch where the first time mongo-compass is opened after login it immediately exits and subsequent versions work fine.

molten-firescar96 avatar Jul 15 '20 15:07 molten-firescar96

Same experience here. MongoDB Compass exits just one time, perhaps trying to open Gnome Keyring. Subsequent opens work fine.

myknbani avatar Oct 24 '22 00:10 myknbani

Getting this issue with:

  • mongodb-compass 1.33.1-1
  • endeavourOS

installing gnome-keyring also solved it for me

niconiconiconiconiconi avatar Oct 27 '22 05:10 niconiconiconiconiconi

This must be documented on the Linux Installation section

SiNONiMiTY avatar Feb 12 '23 09:02 SiNONiMiTY

Getting this issue with:

  • mongodb-compass 1.33.1-1
  • endeavourOS

installing gnome-keyring also solved it for me

i have gnome-keyring installed but the problem persist. Did you do anything else than installing it?

pedrokuper avatar Mar 07 '24 15:03 pedrokuper

Hey @pedrokuper, which OS do you have? Is it also endeavourOS?

alenakhineika avatar Apr 05 '24 16:04 alenakhineika

I've got the same problem on KDE with Debian 12, already have gnome-keyring installed as well.

Same experience here. MongoDB Compass exits just one time, perhaps trying to open Gnome Keyring. Subsequent opens work fine.

Exact same thing happens to me

dladeira avatar Apr 28 '24 15:04 dladeira

Could this please be looked into? As much as I hate to be this person "bumping up" the issues, I do want to report I have been facing the same issue of credentials not being read/written from/into the keyring for at least few months now - I am pretty sure this wasn't always the case (I do have some passwords that were used by mongodb-compass saved in it) yet I haven't changed anything on my side with my setup or installed packages. I am on Arch Linux 6.8.9.arch1-2 with mongodb-compass 1.43.0-1 package installed from the AUR. I do use a non-standard keyring implementation (pass-secrets-git), however I have verified with other applications that make use of keyring that it fully re-implements regular secret store and its interfaces. If there is anything I could do to help with resolving this issue, I'd be happy to help.

zneix avatar May 14 '24 15:05 zneix