[SERVER-39025] Windows MSI unattended installation missing mongod.exe with ADDLOCAL Created: 16/Jan/19 Updated: 29/Oct/23 Resolved: 05/Apr/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 4.0.5 |
| Fix Version/s: | 4.1.10, 4.0.10 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Wan Bachtiar | Assignee: | Henrik Edin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Operating System: | Windows | ||||||||||||||||||||||||
| Backport Requested: |
v4.0
|
||||||||||||||||||||||||
| Sprint: | Security 2019-03-11, Dev Tools 2019-02-11, Dev Tools 2019-02-25, Security 2019-03-25, Security 2019-04-08 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||
| Description |
|
The installation tutorial for unattended windows installation: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-windows-unattended/#install-mdb-edition states:
with Server as the component that includes mongod.exe binary. After downloading mongodb-win32-x86_64-2008plus-ssl-4.0.5-signed.msi, executing this via msiexec:
Resulting in missing mongod.exe in C:\Program Files\MongoDB\Server\4.0\bin
|
| Comments |
| Comment by Luke Chen [ 11/Apr/19 ] | |||||||||||||||||||||||
|
Fixing up fixversion as this ticket was not included as part of 4.0.9 release. | |||||||||||||||||||||||
| Comment by Henrik Edin [ 10/Apr/19 ] | |||||||||||||||||||||||
|
proff The fix has not yet been released for MongoDB 4.0.x. You're right about your workaround by installing all features to make unattended installation work. When the fix is released you'll be able to install a single feature and that error about "Failed to find yaml file" should be gone. | |||||||||||||||||||||||
| Comment by Githook User [ 10/Apr/19 ] | |||||||||||||||||||||||
|
Author: {'email': 'henrik.edin@mongodb.com', 'name': 'Henrik Edin', 'username': 'henrikedin'}Message: (cherry picked from commit 39dba5ab553c53dfdc1e6d070c07adcfffc80ec1) | |||||||||||||||||||||||
| Comment by Sergey [ 10/Apr/19 ] | |||||||||||||||||||||||
|
Henrik Edin, I succesfully installed MongoDB 4.0.8 by msiexec.exe: msiexec.exe /quiet /norestart /n /l*v mdbinstall.log /qb /i C:\Soft\mongodb\mongodb4.0.8.msi ADDLOCAL="Server,ServerNoService,Client,Router,MonitoringTools,ImportExportTools,MiscellaneousTools" If i do not use "Server" feature, i recieve error "Received GetLastError 2" and then "Failed to find yaml file". MongoDB is not installed. | |||||||||||||||||||||||
| Comment by Henrik Edin [ 05/Apr/19 ] | |||||||||||||||||||||||
|
Note: The "Server" feature set should not be used. The two valid options to install mongod.exe is "ServerService" and "ServerNoService" depending on if it should be installed as a Windows service or not. | |||||||||||||||||||||||
| Comment by Githook User [ 05/Apr/19 ] | |||||||||||||||||||||||
|
Author: {'name': 'Henrik Edin', 'username': 'henrikedin', 'email': 'henrik.edin@mongodb.com'}Message: | |||||||||||||||||||||||
| Comment by Wan Bachtiar [ 13/Feb/19 ] | |||||||||||||||||||||||
|
henrik.edin,
Are you seeing a different result when you reproduced the issue ? | |||||||||||||||||||||||
| Comment by Henrik Edin [ 12/Feb/19 ] | |||||||||||||||||||||||
|
wan.bachtiar, alex.bevilacqua Now when 4.0.6 is released containing the fix for | |||||||||||||||||||||||
| Comment by Alex Bevilacqua [ 23/Jan/19 ] | |||||||||||||||||||||||
|
matt.lord You are correct. The packaged Install-Compass.ps1 was failing (as could be seen in the logs). It is unrelated to the ADDLOCAL option. | |||||||||||||||||||||||
| Comment by Matt Lord (Inactive) [ 23/Jan/19 ] | |||||||||||||||||||||||
|
alex.bevilacqua, assuming that the compass issue was in fact due to | |||||||||||||||||||||||
| Comment by Alex Bevilacqua [ 22/Jan/19 ] | |||||||||||||||||||||||
|
UPDATE Compass installation is failing as a result of daniel.hatcher - not sure if I should open a new SERVER for this, but the Compass installation fails as well:
To reproduce:
|