[SERVER-17368] Create windows SSL zip file with OpenSSL files Created: 24/Feb/15  Updated: 05/Apr/17  Resolved: 22/Nov/16

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 3.2.12, 3.4.1, 3.5.1

Type: Improvement Priority: Minor - P4
Reporter: Eitan Klein Assignee: Brian Samek
Resolution: Done Votes: 11
Labels: 28qa, build-planning
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-21356 Unable to run mongod.exe in windows 7... Closed
Duplicate
is duplicated by SERVER-19086 Unable to run mongod.exe on Windows 1... Closed
is duplicated by SERVER-21356 Unable to run mongod.exe in windows 7... Closed
Related
is related to SERVER-15400 Create Windows Enterprise Zip File wi... Closed
is related to SERVER-17610 Vulnerable OpenSSL version used in Wi... Closed
is related to SERVER-26028 Windows zip releases missing msvcr120... Closed
Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Build 2016-10-31, Build 2016-11-21, Build 2016-12-12
Participants:

 Description   

Windows SSL package is missing open SSL binaries,
Which prevent mongo binaries to start, we should add the dependency

Please build it similar to ZIP described @ SERVER-15400



 Comments   
Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add openssl files to windows zip file

(cherry picked from commit 99f1f23edbfc07ce00397a4300d28c74b9046b7b)
Branch: v3.4
https://github.com/mongodb/mongo/commit/bab79e5beca9451e90571d02fb88b74459c2d792

Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add openssl files to windows zip file

(cherry picked from commit 99f1f23edbfc07ce00397a4300d28c74b9046b7b)
Branch: v3.2
https://github.com/mongodb/mongo/commit/412ba238fc3bbf58e4cbc17dcc2e5f3440c8e445

Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add only unique files to archive

(cherry picked from commit 17725f0ef929cbc8f1e3db45d24d015ad8d42575)
Branch: v3.4
https://github.com/10gen/mongo-enterprise-modules/commit/21830178439ba7546bee80e98423e2afd7e81626

Comment by Githook User [ 30/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add only unique files to archive

(cherry picked from commit 17725f0ef929cbc8f1e3db45d24d015ad8d42575)
Branch: v3.2
https://github.com/10gen/mongo-enterprise-modules/commit/2369738b2bde2311aea20b5a4d490d5be051c728

Comment by Githook User [ 22/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add openssl files to windows zip file
Branch: master
https://github.com/mongodb/mongo/commit/99f1f23edbfc07ce00397a4300d28c74b9046b7b

Comment by Githook User [ 22/Nov/16 ]

Author:

{u'username': u'bsamek', u'name': u'Brian Samek', u'email': u'brian.samek@mongodb.com'}

Message: SERVER-17368 Add only unique files to archive
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/17725f0ef929cbc8f1e3db45d24d015ad8d42575

Comment by Brent Minder [ 24/Feb/16 ]

I used this command to extract the 2 DLLs from the msi package:

msiexec /a PathToMSIFile /qb TARGETDIR=DirectoryToExtractTo
on my pc:
msiexec /a c:\mongodb\mongodb.msi /qb TARGETDIR=c:\mongodb\unzip

Then I copied these 2 DLLs into the c:\mongodb\bin folder.

Comment by Adam Polanski [ 03/Feb/16 ]

I can currently reproduce this with the current latest zip as well as 3.2.1 and 3.2.

Using the msi puts both ssleay32.dll and libeay32.dll into the bin folder, while using the zip does not.

I'm trying to setup scriptable installs for developer machines and CI setup so it's a bit of a show stopper for me currently, I'm going to have to find another method to work around this, but it would be great if both the msi and the zip distributions matched each other please?

Comment by nuk nuk san [ 02/Nov/15 ]

FWIW: I can't repro this right now with the latest windows 3.0.7 zip distribution.

However:

  • In the MSI package, ssleay32.dll and libeay32.dll are present.
  • In the .zip package, these 2 files are not present.

Myself and students of mine encountered issues when downloading the zip distro in the past, where mongod.exe simply won't start. Copying ssleay32.dll and libeay32.dll into the bin directory made it work. (this was with the ZIP distro, not MSI)

Not sure if my machine has ssleay in some path and therefore works, or if the libraries are now statically linked and not required.

it's still peculiar to have the files packaged with the MSI but not the zip distro.

Comment by David Golub [ 02/Nov/15 ]

Probably a stack trace. mark.benvenuto, I'll defer to you, since presumably be the one actually debugging this.

Comment by David Golub [ 02/Nov/15 ]

If you were missing a DLL, it would say that you're missing a DLL. The error message you're getting is not indicative of this bug.

Comment by nuk nuk san [ 02/Nov/15 ]

Yup, error is pretty immediate and logged message is confusing.
The fix is simple - include all binary dependencies in the package. Is there any drawback to including these files (which already are included in the MSI build) with the zip package?

Comment by Robert Stam [ 02/Nov/15 ]

I get the error immediately after typing mongod.exe at the command line. That could be interpreted as "refuse to start at all".

At no point is there any information beyond the error dialog that says "mongod.exe has stopped working".

Comment by David Golub [ 02/Nov/15 ]

No, not the same bug. If you were missing these DLL files, then mongod.exe would refuse to start at all.

Comment by Robert Stam [ 02/Nov/15 ]

I think I ran into this issue but can't be sure because mongod.exe just crashes when I launch it. The error dialog just says "mongod.exe has stopped working" and doesn't say anything about any missing dependencies so this would be very difficult for a user to figure out. They're just going to assume that the download is corrupted.

Comment by nuk nuk san [ 25/Jun/15 ]

One expects that the zip file contains exactly the same binary dependencies (ssleay and libeay) that the msi file contains.
The notion that one has to separately take care of SSL and then has to ensure the right version of ssleay etc match what the mongo builds used is a bit troubling. This may cause unnecessary compatibility issues, and mongo already does include these 2 extra dlls in the msi.

Comment by Blake Niemyjski [ 23/Jun/15 ]

+1

Comment by Andrew Morrow (Inactive) [ 26/Mar/15 ]

ernie.hershey@10gen.com Please check in with Eitan and MMS team re automation to decide whether this is really 3.1 desired, should be required, or should be pushed further out.

Generated at Thu Feb 08 03:44:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.