MongoDB .msi installer not working on Windows 10 - mongodb

I have downloaded the .msi multiple times and tried to run in a variety of ways, however, I cannot install MongoDB on my windows 10 machine. When I click the .msi, I get the first "preparing to install" pop-up and then it just goes away. Nothing happens.
I tried downloading the zip folder which contains a bunch of .exes.. but still nothing. I'm not sure how to get this to work on my local.
Thoughts?

For some reason, the latest documentation doesn't include the manual installation process.
Download the distribution ZIP and extract it to c:\mongodb\ or equivalent.
Then from the resultant bin directory you can run an administrative powershell command (be sure to replace the paths with real paths that exist on your system):
PS C:\mongodb\bin> ./mongod.exe --install --logpath="c:\\path\\to\\logfile.log" --dbpath="c:\\path\\to\\data\\on\\disc"
This will create a windows service named "MongoDB" which should start automatically. If it doesn't, you can run net start MongoDB from your admin PS prompt.

Please download Mongodb from there official sites and also there is a very easy guide to install the mongodb on various OS.
Reference:- https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows/

Related

Windows MongoDB - Installed Compass but can't find Compass within system

I ran the MongoDB Community Version Download Setup with the GUI for Mongo -
Compass checked. No problems with the installation and the setup was successfully completed.
However after the setup I couldn't find Compass installed anywhere in my system.
Even the C:\Program Files\MongoDB\Server\3.6\bin didn't have a executable file or dll for compass.
What happened to Compass?
For some reason in Windows 10 it is installed into the hidden AppData directory. At least I found first a shortcut 'MongoDB Compass' here:
C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\MongoDB Inc
and then in the properties of it the actual location seems to be
C:\Users\<username>\AppData\Local\MongoDBCompass\MongoDBCompass.exe
I wound up downloading and installing Compass separately. It's available from the Download Center. You can select the version and OS there: Compass Download Options.
The installer lets you choose the destination directory. You can also add a Desktop shortcut in Windows.
Hope that helps!
Dave
I had an issue where MongoDB installer wouldn't work at all so I had to choose customize instead of the easy install. The location of the file for Compass should be in:
C:\Users\User_Name\AppData\Local\MongoDBCompassCommunity
as #Jonez said, mine is for the Community edition. Make sure you have your hidden files view enabled. On a side note, I encountered less problems when I used administrative capabilities.
I was having the same problem
Step 1: Make hidden folder visible
step 2: C:\Users\shankar\AppData\Local\MongoDBCompassCommunity
Step 3: Click on MongoDBCompassComunity edition
You will have compass gui open
Enjoy your Compass Community Edition
For me, the compass was not installing at all, but I was getting successful message like you.
I figured that there is InstallCompass.ps1 powershell script in the bin folder.
I opened powershell and got into bin folder and launched it
cd C:\Program Files\MongoDB\Server\4.4\bin
.\InstallCompass.ps1
...and voila! it downloaded and installed the compass appropriately using command line
I found exe in following paths:
C:\ProgramData\<your user id>\MongoDBCompass\MongoDBCompass.exe
C:\ProgramData\<your user id>\MongoDBCompass\app-1.11.1\MongoDBCompass.exe
After installing the Mongo DB Compass .msi Setup installer.
Go to C:\Program Files (x86)\MongoDB Compass Installer and run that setup.
Connect your DB.
I'm on windows 10 and can confirm compass even after checking install compass option during installation did not install. That wasn't surprising considering compass is 158 MB and mongo db download was very quick.
Actually, I got the same problem in windows 7 when I downloaded MongoDB Compass Zip file from https://www.mongodb.com/try/download/compass and run 'MongoDBCompass.exe'
Then I downloaded the .msi file instead of zip, installed the .msi file and 'MongoDB Compass' icon added in the start menu.
Click on the 'platform' option and select MSI.
I was having the same problem with the msi installer, I tried with the exe and it worked.
I also had the same issue. And I have found that, it occurred when try to install the mongo db more than one time.

Cannot reinstall PostgreSQL because Windows thinks it's still installed

I've installed PostgreSQL but I want to reinstall it to another directory. So I've uninstalled it and when I execute the installer I get:
An existing PostgreSQL installation has been found at C:\Program Files (x86)\PostgreSQL\9.1. This installation will be upgraded.
I'll add that I didn't uninstall PostgreSQL with Add/Remove programs from Control Panel because I was getting an error in French so I just removed the main directory and then removed it from Control Panel.
I've also removed HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\postgresql-9.1 and WampServer which used PostgreSQL (just in case). I cannot find any other keys in regedit because the search is taking forever (and I think it's bugged). And I got rid of the directories C:\Users\<username>\AppData\Roaming\postgresql and C:\USers\postgresql.
Perhaps it has something to do with Visual Studio because when I run the installer I briefly get a window:
I've finally done it. I had to remove all keys in the Registry.
Seems obvious, right?
But Win10 Regedit is bugged and if there are keys that are longer than 255 chars it goes into an infinite loop. I've found no fix for this.
So one of the solutions is to download Regscanner, search for "postgre" and "pgadmin" and remove all entries but with Regedit. I mean, you can probably use Regscanner too but I prefered to delete keys with a native tool. It's a lot slower, though, as you have to manually find all keys.
Even though this already has a solution, I'm documenting the steps I had to take to accomplish a full manual uninstall on Windows Server 2016:
open a CMD window with "Run as Administrator"
sc query postgresql-9.1 or sc query postgresql-x64-9.1, use this for step 3 and 4.
if the STATE was RUNNING, then do: sc stop postgresql-9.1
sc delete postgresql-9.1
using the file explorer, locate the postgres software directory, probably "c:\Program Files (x86)\PostgreSQL\" ... right click on this, properties, security, ownership, take ownership, ok ok ok. then delete this folder and everything in it.
using the file explorer, locate the postgres data directory. Sometimes it's in the same directory as in step 5, and other times it will be in something like D:\postgres\data
net user postgres /delete
windows key + r to open Run prompt. Type regedit
scroll to HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node and/or HKEY_LOCAL_MACHINE\SOFTWARE
delete both folders with the word PostgreSQL in them

Sitecore Package installation not working

I am trying to install Sitecore PowerShell Extensions-3.0 Package for Sitecore 8
in my sitecore 8 instance (Windows 8.1 machine).
I used Sitecore's Development Tools -> Installation Wizard & Package Manager and choosing the above mentioned package. It shows Install a Package sitecore dialog with Installing gif and stays there for over an hour and nothing happens. No error nothing it just spins.
First I tried other Packages and it was the same, even with lower versions of Powershell Packages and it still doesn't install.
Can someone shed some lights on what I am missing?
When installing Sitecore packages entries are written to the Sitecore Log. In Sitecore 8 the Logs are stored in MongoDB, so if you don't have Mongo running installing packages appears to hang.
Although disabling Mongo Analytics allowed you to install the package it is not a suitable method moving forward. Instead you should install MongoDB and then get the Sitecore DBs running by executing a .bat file.
To do that open Notepad paste the text as it below, modifying the path to the MongoDB.exe and folder containing the Sitecore Mongo databases if required, then Save As SitecoreDbs.bat
"C:\Program Files\MongoDB 2.6 Standard\bin\mongod.exe" -dbpath "C:\inetpub\wwwroot\Sitecore8\Databases"
Essentially the path to your MongoDB executable location and the Path to your Site's databases.
By disabling Mongo Analytic did the trick.

How can I install MongoDB 3.X on Windows without admin rights?

I'm on a Windows 7 (64-bit) box and do not have admin rights.
It appears from the MongoDB download page (see http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/) that the latest version only an MSI install is available (no zip version).
I tried running the 3.0.4 MSI. I clicked custom so I could change the directory to install to. I used %USERPROFILE%\MyProgs\MongoDB-3.0.4, so no admin rights would be needed. It ran for a bit but then prompted me to enter admin credentials. I hit escape (like clicking on X at top right) to close the window. On other MSI installs this has worked. I tried it again and clicked "No" but in both cases received the message
MongoDB 3.0.4 2008R2Plus SSL (64 bit) setup was interrupted.
Your system has not been modified. [...]
This article does a GREAT job going through how to install MongoDB on Windows:
How to install mongoDB on windows?
My observation is that v2.4.14 is the last version that is available via the ZIP format. So for now, I'm using that version.
Is there any other way to install the MongoDB version 3.X MSI without admin rights?
NOTE: On the MongoDB Download page https://www.mongodb.org/downloads there is a link titled View Build Archive (it sends you here https://www.mongodb.org/dl/win32/x86_64-2008plus-ssl, and that site lists *.zip formatted files). I thought I had found my own solution to the question, but when I unzipped the files, and added the "bin" to my path and ran the programs (mongo, and mongod) I received an Windows Dialog that says:
mongod.exe - System Error
The program can't start because LIBEAY32.dll is missing from your
computer. Try reinstalling the program to fix the problem
I stopped here and posted this question. Thanks for any help.
For now I'm using the version that supported the zip format (v2.4.14) and that version does work.
NOTE2: The v2.4.14 zip formatted install doesn't have a file named LIBEAY32.dll), or I might have tried using that file with the newer version.
Yes, it is possible to install the latest MSI (including the one with SSL) without admin rights via command line.
msiexec /a mongodb-win32-x64-3.2.5.msi /qb TARGETDIR="C:\MongoDB"
This will copy the binaries into C:\MongoDB\MongoDB\Server\3.2\bin
I dislike long paths like that, so I create a symlink inside the folder:
cd C:\MongoDB
mklink /j bin C:\MongoDB\MongoDB\Server\3.2\bin
That will create a soft link as C:\MongoDB\bin (which you can add to your PATH environment variable).
mongo --version
mongod --version
Both should return version 3.2.5.
You can do this with most packages, we have to do similar with Python 2.7 and Node 4.4.3 MSI packages on work computers that do not have admin rights.
You can download the "legacy" version which is the unsigned non msi version as a zip. The disclaimer is listed as
The 64-bit legacy build does not include SSL encryption and lacks
newer features of Windows that enhance performance. Use this build for
Windows Server 2003, 2008, or Windows Vista
The 3.0.5 version is https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-3.0.5.zip
The latest version is available as zip download.
[https://www.mongodb.com/dr/fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.6.zip/download][1]
Download and Unzip into folder where user has permissions e.g c:\users\xxx\mongodb.
Enter the path to bin folder (e..g c:\users\xxx\mongodb\bin) into the
environment variable 'PATH'. To access path variable press Win + R
and then enter rundll32 sysdm.cpl,EditEnvironmentVariables.
Select Path and click edit. Then enter new and there enter the path
to bin folder. Click OK and OK to save and exit.
Check Mongo version from command line using command mongo --version.
Note: Don't forget to create db folder in C drive that is required for mongo to work locally. All set.

How can we upload log files from a failed .msi install (Using WiX to create)

We have a problem with our current installer for a browser plugin where a small percent of our users try to install it but the .msi install fails. The issue is we can't get the logs back from them as it is an anonymous download and our QA computers aren't getting this issue. We know they fail as we have log file in JS from before the download and a survey response after saying they tried to install it.
I have searched around but haven't found an answer on how to have an automatic upload of log files on failure of a windows .msi install.
The best solution I have seen is in WiX, we can create a shell script action after the install and then use PowerShell or bitsadmin to try to upload a specific log file from the commandline if we can find it in the temp directory, however this does not seem to be a clean or reliable solution.
Being able to PUT or POST it anywhere would be fine.
Any help is appreaciated.
If you set the MsiLogging property to something like "voicewarmupx", you can later use the property MsiLogFileLocation to get the log file location. This supported in Windows Installer 4.0 and higher.
If a batch file or PowerShell script isn't giving you the programmability you need, you can create a custom action that retrieves the log file and sends it to you.