-
Notifications
You must be signed in to change notification settings - Fork 188
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
Storage issue with connections on ubuntu/linux (credential store) #1911
Comments
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 There is still a wierd glitch where the first time mongo-compass is opened after login it immediately exits and subsequent versions work fine. |
Same experience here. MongoDB Compass exits just one time, perhaps trying to open Gnome Keyring. Subsequent opens work fine. |
Getting this issue with:
installing |
This must be documented on the Linux Installation section |
i have gnome-keyring installed but the problem persist. Did you do anything else than installing it? |
Hey @pedrokuper, which OS do you have? Is it also endeavourOS? |
I've got the same problem on KDE with Debian 12, already have
Exact same thing happens to me |
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. |
We are working on adding a message to signal if the secret storage can be accessed or not. We will consider updating the requirements for the linux installation as well.
You can verify if is running:
If is not running, you can try to start it manually once:
and try again to see if compass would allow storing secrets. I'm not sure if more steps are necessary to make sure that the daemon can run properly. If that would work, you may want to create a service to run the daemon at start up. |
@zneix newer versions of Compass use https://www.electronjs.org/docs/latest/api/safe-storage to access the keyring. We never tested a backend different from gnome-keyring, but I would assume that any storage that announces as a valid backend would be picked up. A minimal test script: // testsafestorage.js
const { app, safeStorage } = require('electron');
const assert = require('assert');
app.on('ready', () => {
if (!safeStorage.isEncryptionAvailable()) {
console.error('Safe storage is not available on this system.');
app.quit();
return;
}
if (safeStorage.getSelectedStorageBackend) {
console.log('backend:', safeStorage.getSelectedStorageBackend());
}
const secret = 'MySecret';
const encrypted = safeStorage.encryptString(secret);
const decrypted = safeStorage.decryptString(encrypted);
assert.notEqual(secret.toString('base64'), encrypted.toString('base64'));
assert.equal(secret, decrypted);
console.log('OK');
app.quit();
});
|
Just now, I've tried to comment-out the first The reason why I mention that is because description for |
Another thing that I found after a bit of poking around is that when I start Compass with Note that for |
Even more research has lead me onto the very similar issues with vscode [ 1 ], which seems like it's an issue with electron itself being unable to detect the desktop environment, which turns out to be critical towards being able to determine whether the electron application should look for gnome keyring / kwallet / etc. |
Hello, im on Fedora 40 Workstation and have the same issue. I have gnome-keyring installed and running but its not working. |
Facing similar issue here:
This works though:
Thanks @zneix. Basically, you're saying that fix will come from electron right? For time being, can we set these flags in launch options or any config file for compass? |
Hey everybody, we're trying to figure out if we can apply this option automatically in some cases, but trying to do a solid reproduction takes awhile, so bear with us please while we're doing this. For the time being, making sure that you have gnome-keyring installed and passing |
I run debian stable with i3wm pretty much stock and was running into this issue. I can confirm the running with the additional flag fixes it. If you need help with the repro let me know but thats a very simple vm to create that can reproduce this. |
--password-store="gnome-libsecret" adding this fixed the issue for me. Thanks |
I was trying to run MongoDB Compass using the desktop file in In the original desktop file, the As a workaround, I removed the If anyone has experience with this and knows whether removing |
I am on ArchLinux, i3, and running with this command worked for me. I've been banging my head against the wall trying to fix this for days now... |
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:
WIth a bit of research I found a similar issue Foundry376/Mailspring#681
sudo apt install gnome-keyring
solved the issue but adding it as a dependency would be a good ideaThe text was updated successfully, but these errors were encountered: