22

Installed successfully MongoDB Compass on Ubuntu 18.10. But when I try to run it, it refuses to start without showing anything. I am a newbie in MongoDB. What to do?

1
  • 4
    I have the same problem, if I try to open from terminal I get this message: Segmentation fault (core dumped).
    – xmarston
    Commented Nov 12, 2018 at 10:45

9 Answers 9

24

Try with following commands. These steps worked for me.

wget https://downloads.mongodb.com/compass/mongodb-compass_1.15.1_amd64.deb
sudo dpkg -i mongodb-compass_1.15.1_amd64.deb
sudo apt --fix-broken install
sudo apt -y install libgconf2-4
mongodb-compass;
3
  • 1
    Worked on Ubuntu 18 with mongodb-compass_1.20.1_amd64.deb . Commented Dec 10, 2019 at 13:55
  • Yes.. seems 1.15.1 has some issues with latest versions of Ubuntu.. Has issues with Ubuntu 19.10 eoan. Tried with 1.20.1 Commented Mar 3, 2020 at 9:56
  • When I download mongodb compass for ubuntu if shows this file is harm for your computer. Commented May 13, 2021 at 3:41
24

Try these command in terminal :

1. $ wget https://downloads.mongodb.com/compass/mongodb-compass_1.12.1_amd64.deb; (Try to get the latest one)

2. $ sudo dpkg -i mongodb-compass_1.12.1_amd64.deb

  1.  $ mongodb-compass;
    

Worked for me.I'm also using Ubuntu 18.10

(Try to change the version of the mongodb compass - lower than 15- v)

6
  • Thank you Nimesh. It worked but I need minimum 1.15.1 and theres already 1.16.0 released. How to get them? Commented Nov 15, 2018 at 15:06
  • 1
    Segmentation fault (core dumped). After following the exact same thing on the Mongo official website, MongoDB, I have the above error! Please, any solution to this? Reading around, I saw it means it's trying to access an area of memory it doesn't have permission to.
    – Sammy65
    Commented Nov 18, 2018 at 21:43
  • 2
    Thanks Nimesh. I had to perform one extra step to get mine to work. Adding it here as it may be convenient for people who had the same issue as me. sudo apt install libgtk2.0-0:i386 Reference: askubuntu.com/questions/836142/… answer by askubuntu.com/users/256317/fkraiem. Commented Nov 26, 2018 at 5:58
  • Perfect. The latest 1.16.x version would give me about 10 seconds of UI time after the loading screen then hangup requiring a process kill.
    – Andy Brown
    Commented Dec 13, 2018 at 10:15
  • Works fine on 1804 LTS too Commented Feb 13, 2019 at 8:45
8

I had the same issue with ubuntu 18.10. This issue still exists with versions 15 and 16. Earlier versions works fine in ubuntu 18.10.

1) wget https://downloads.mongodb.com/compass/mongodb-compass_1.14.1_amd64.deb

2) sudo dpkg -i mongodb-compass_1.14.1_amd64.deb

3) mongodb-compass

2
6

We just released Compass 1.18-beta.1, Compass will work again on Ubuntu 18.10 and other recent Linux distributions. You can download it from here: https://www.mongodb.com/download-center/compass.

5
  • This produces a 403 (downloads.mongodb.com/compass/beta/…). Commented Mar 16, 2019 at 18:57
  • 1
    @Massimiliano Marcon I've tried on Ubuntu 19.04 64x, it works. Thank you for this update.
    – Amani
    Commented May 1, 2019 at 16:10
  • @Massimiliano Marcon for me the current stable version 1.28.1 is not opening over ssh in vscode. It is showing this error : (mongodb-compass:7866): Gtk-WARNING **: 03:35:44.937: cannot open display: whereas the GUI is opening in the VM itself.
    – y_159
    Commented Aug 25, 2021 at 7:46
  • @y_159 do I understand correctly that you have ssh-ed into a the machine where Compass is installed and then you ran mongodb-compass from the shell? If that is the case, then it can't work: as the errors says, there is no display that can be used to open Compass (or any other tool with a UI). You can probably set up X11 forwarding but that might be a bit of a hassle. Commented Aug 26, 2021 at 9:10
  • @MassimilianoMarcon yes this is the case. I'm on windows 10 platform and using vscode to ssh to the ubuntu VM created inside virtualbox.
    – y_159
    Commented Aug 26, 2021 at 11:33
4

Try these command in terminal :

wget https://downloads.mongodb.com/compass/mongodb-compass_1.14.1_amd64.deb;
sudo dpkg -i mongodb-compass_1.14.1_amd64.deb;
mongodb-compass;

try to use version less then 15.It solved my issue.

2

It is not allowed to download a full version on this way, it can only be done for the community versions, f.e:

1) wget https://downloads.mongodb.com/compass/mongodb-compass-community_1.15.1_amd64.deb

This you can download, but has the same problem.

I downloaded the mongodb-compass-community_1.12.1_amd64.deb with wget. I installed it with dpkg -i, and it works.

2

Almost the same solution for Ubuntu 20.04

wget https://downloads.mongodb.com/compass/mongodb-compass_1.21.1_amd64.deb
sudo dpkg -i mongodb-compass_1.21.1_amd64.deb
sudo apt --fix-broken install
mongodb-compass
1
  • 1
    fix-broken did nothing for me , but install 1.22.1 was good enough Commented Oct 13, 2020 at 6:16
1

After installing the dpkg, need to run the following commands from the terminal

 1. sudo apt --fix-broken install
 2. sudo apt -y install libgconf2-4
 3. mongodb-compass;
0

I have run the following commands in ubuntu 20.04 and successfully:

  1. sudo wget https://downloads.mongodb.com/compass/mongodb-compass_1.29.6_amd64.deb
  2. sudo apt install --fix-broken install
  3. sudo dpkg -i mongodb-compass_1.29.6_amd64.deb
  4. mongodb-compass

I hope this will help someone else there.

2
  • This answer seems to be the same as this one
    – gmauch
    Commented Dec 23, 2021 at 10:41
  • 1
    @gmauch i think it's not the same as all because when i use that one. i see it's not work for me and when i try to change the order and i see it worked as my expected. So not the same as all
    – isekaimaou
    Commented Dec 23, 2021 at 23:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.