MongoDB compass not initializing

3.2k views Asked by At

I am trying to install MongoDB compass, however, my screen is getting stuck at initializing screen. Please help me as I really need help here. Here are the entire details: - OS - Windows 8.1 64bit

Powershell version - 4.0 (I also tried to change the execution policy remote assigned. but that also didn't help)

MongoDB server version - 4.2.0 stable (tried MSI version)

MongoDB compass version - tried both (1.23beta version and 1.22 stable version)

I have also tried to install and uninstall multiple times.

Could anyone please help me? Any help will be highly appreciated.

Thanks in advance.

2

There are 2 answers

1
Deepak Agrawal On

Hey thanks for the blog mention , hope it worked. I faced the same issue while use MongoGUI so I figured out the way to fix it with help of environment variables.

To know more about environment variables you can read this blog, I referred to this to get more clarity on such kind of issues https://www.digitalcitizen.life/simple-questions-what-are-environment-variables/

0
Wojciech Jakubas On

Have you tried adding this path C:\Windows\System32\wbem to your user Path variable? I also had the same problem on Windows 10 and this has resolved my issue.

I found the fix there: https://dev.to/debugagrawal/fix-mongo-db-compass-initializing-screen-error-131e

Step by step instruction for less experienced Windows users:

  1. Kill all running Compass instances using Task Manager (i.e. Ctrl + Shift + Esc, then find running instances, if any, and kill them with right click and End task)
  2. Right click on This PC and then Properties
  3. You should be in Control Panel\All Control Panel Items\System
  4. Click Advanced system settings link on left pane
  5. On System Properties window go to Advanced tab
  6. Click on Environmental Variables button closer to bottom of the page
  7. Select Path in top list window (User variables)
  8. Click Edit button located below that list window
  9. Click New button to create new entry on the list
  10. Paste C:\Windows\System32\wbem and click OK.
  11. Another OK on Environmental Variables window
  12. And another OK in System Properties window
  13. Now you can try to run MongoDB Compass application again.