Skip to content
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

Installation fails on Windows 10 #158

Open
john-g-davies opened this issue Dec 19, 2022 · 0 comments
Open

Installation fails on Windows 10 #158

john-g-davies opened this issue Dec 19, 2022 · 0 comments

Comments

@john-g-davies
Copy link

Installing mongodb.install...
WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/lv c:\mongodb.install_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error.
ERROR: Running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\Users\john.davies\AppData\Local\Temp\chocolatey\mongodb.install\6.1.0\mongodb-windows-x86_64-6.1.0-signed.msi" ADDLOCAL="ServerService,Server,ProductFeature,Client,Router,MiscellaneousTools" /qn /norestart MONGO_DATA_PATH="C:\ProgramData\MongoDB\data\db" MONGO_LOG_PATH="C:\ProgramData\MongoDB\log" ] was not successful. Exit code was '1603'. Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed). Please see MSI log if available. If not, try again adding '--install-arguments="'/l
v c:\mongodb.install_msi_install.log'"'. Then search the MSI Log for "Return Value 3" and look above that for the error..
The install of mongodb.install was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\mongodb.install\tools\chocolateyInstall.ps1'.
See log for details.

Expected Behavior

Should install successfully with no error

Current Behavior

Installation is failing with "Return Value 3"

Possible Solution

Problem is this parameter passed to MongoDB installer is wrong:

ADDLOCAL="ServerService,Server,ProductFeature,Client,Router,MiscellaneousTools"

https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-windows-unattended/

Only options are:

ADDLOCAL="ServerNoService,ServerService,Router,MonitoringTools,ImportExportTools,MiscellaneousTools"

Steps to Reproduce (for bugs)

  1. choco install mongodb

Context

Can't install MongoDB using choco.

Your Environment

  • Package Version used:
  • Operating System and version:
  • Chocolatey version:
  • Install/uninstall gist:

Latest package version.
Windows 10, fully patched.
Chocolatey version 1.2.1

Turnerj added a commit to Turnerj/chocolatey-packages that referenced this issue Dec 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant