Error with m2crypto during preflight on 10.11 public beta 3

211 views
Skip to first unread message

fredrik....@scilifelab.se

unread,
Aug 5, 2015, 4:17:05 AM8/5/15
to Simian Discuss
Hello!

I'm receiving the following error during preflight on a fresh install of 10.11 public beta 3

Starting...
    Performing preflight tasks...
    preflight return code: 1
    preflight stderr: Traceback (most recent call last):
  File "/usr/local/munki/simian_client.py", line 34, in <module>
    from simian.mac.client import postflight
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/mac/client/postflight.py", line 25, in <module>
    from simian.mac.client import client as mac_client
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/mac/client/client.py", line 31, in <module>
    from simian.client import client
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian-2.4-py2.6.egg/simian/client/client.py", line 40, in <module>
    from M2Crypto import SSL
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg/M2Crypto/__init__.py", line 22, in <module>
    
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg/M2Crypto/__m2crypto.py", line 7, in <module>
  File "/usr/local/munki/simian/lib/python2.6/site-packages/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg/M2Crypto/__m2crypto.py", line 6, in __bootstrap__
ImportError: dlopen(/var/root/.python-eggs/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg-tmp/M2Crypto/__m2crypto.so, 2): Symbol not found: _PEM_read_bio_SSL_SESSION
  Referenced from: /var/root/.python-eggs/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg-tmp/M2Crypto/__m2crypto.so
  Expected in: flat namespace
 in /var/root/.python-eggs/simian_M2Crypto-0.22.3-py2.6-macosx-10.11-intel.egg-tmp/M2Crypto/__m2crypto.so
    managedsoftwareupdate run aborted by preflight script: 1


I installed the m2crypto egg for 10.10 instead and after that it worked.

Justin McWilliams

unread,
Aug 6, 2015, 5:11:34 AM8/6/15
to Simian Discuss
"I installed the m2crypto egg for 10.10 instead and after that it worked."

Did you download our precompiled egg, download from somewhere else, or build from source / easy_install?   I don't have a 10.11 box nearby to try, but I'm relatively surprised this changed between public betas...

--
You received this message because you are subscribed to the Google Groups "Simian Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to simian-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fredrik....@scilifelab.se

unread,
Aug 6, 2015, 5:31:19 AM8/6/15
to Simian Discuss
I've been using your precompiled eggs.
I just added this to the postflight bash script before I ran make dmg

if [ "$OSX" == "10.11" ]; then

  OSX="10.10"

fi


I tested it again just now after updating to public beta 4 with the same result.

It works with the 10.10 egg but not with 10.11.

Michael Holt

unread,
Sep 19, 2015, 1:47:44 PM9/19/15
to Simian Discuss
I am running into the same issue on my 10.11 machine running the GM Seed... I have not tried the suggested fix yet

Dan O'Boyle

unread,
Sep 21, 2015, 10:54:24 AM9/21/15
to Simian Discuss
I can confirm the suggested fix, listed below, resolved my issue on a fresh make dmg
Add the following just after $OSX is defined in the postflight shell script.

if [ "$OSX" == "10.11" ]; then

 OSX="10.10"

fi



Justin McWilliams

unread,
Sep 21, 2015, 8:06:50 PM9/21/15
to Simian Discuss
I've just replaced the 10.11 egg with the 10.10 one in Cloud Storage (where we host the compiled eggs), so, the postflight patch shouldn't be necessary anymore. 

Thanks for the notice, and please help keep an eye on this as the official 10.11 release occurs...

0 Jstu

Graham Dunn

unread,
Oct 15, 2015, 11:18:57 AM10/15/15
to Simian Discuss
I'm getting failures on make test on a stock 10.11:

Searching for M2Crypto==0.22.3
Reading https://pypi.python.org/simple/M2Crypto/
Best match: M2Crypto 0.22.3
Downloading https://pypi.python.org/packages/source/M/M2Crypto/M2Crypto-0.22.3.tar.gz#md5=573f21aaac7d5c9549798e72ffcefedd
Processing M2Crypto-0.22.3.tar.gz
Writing /var/folders/b_/wzz1323d2fsgzcrfvwj0dm600000gp/T/easy_install-gMCh81/M2Crypto-0.22.3/setup.cfg
Running M2Crypto-0.22.3/setup.py -q bdist_egg --dist-dir /var/folders/b_/wzz1323d2fsgzcrfvwj0dm600000gp/T/easy_install-gMCh81/M2Crypto-0.22.3/egg-dist-tmp-qKMbHF
SWIG/_m2crypto.i:30: Error: Unable to find 'openssl/opensslv.h'
SWIG/_m2crypto.i:33: Error: Unable to find 'openssl/safestack.h'
SWIG/_evp.i:12: Error: Unable to find 'openssl/opensslconf.h'
SWIG/_ec.i:7: Error: Unable to find 'openssl/opensslconf.h'
error: Setup script exited with error: command 'swig' failed with exit status 1
make: *** [test] Error 1

Justin McWilliams

unread,
Oct 15, 2015, 11:26:22 AM10/15/15
to Simian Discuss
Graham,

What you're seeing is unrelated to this thread, as it's building the test-only M2Crypto, not using the pre-compiled egg on the destination clients.

Here's where the version is selected: https://github.com/google/simian/blob/master/setup.py#L61

Can you try 0.22.5 ?

Graham Dunn

unread,
Oct 15, 2015, 11:33:35 AM10/15/15
to simian-...@googlegroups.com
Should I move this to a new thread? (I've done the update and there
are additional issues)
> You received this message because you are subscribed to a topic in the
> Google Groups "Simian Discuss" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/simian-discuss/4zQE2o5gm6E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to

Justin McWilliams

unread,
Oct 15, 2015, 11:38:59 AM10/15/15
to Simian Discuss
On Thu, Oct 15, 2015 at 11:33 AM, Graham Dunn <g...@kik.com> wrote:
Should I move this to a new thread? (I've done the update and there
are additional issues)

Sure, please. 

Chris Whittle

unread,
Mar 2, 2016, 10:34:17 AM3/2/16
to Simian Discuss
I just built with the newest Simian and Munki and we're still seeing this error in the newest el captain.... Is there a fix that still needs to be applied?
Thanks

Justin McWilliams

unread,
Mar 9, 2016, 7:02:30 AM3/9/16
to Simian Discuss
Apologies, I've been unable to find time to attempt to reproduce this, and now I'm traveling without a Mac.  Is anyone else able to reproduce? 

Chris, to confirm (given there are two separate issues reported in this thread):
- are you seeing the preflight error on client execution (as initially reported by fredrik)?
- or are you seeing the build/test issue (later reported by graham, moved to a new thread)?

This email may contain proprietary information and is meant only for the use by the intended recipient(s). If you are not the intended recipient and have received this message in error, any review, dissemination, distribution, or copying of this message is strictly prohibited. If you've received this email in error, please notify the sender immediately and destroy the original message and all copies.

Chris Whittle

unread,
Mar 9, 2016, 8:21:08 AM3/9/16
to simian-...@googlegroups.com
We moved on, it seems like it was temporary or a glitch...
We created a new EC instance and it's working fine.

Hesan D Yousif

unread,
Mar 9, 2016, 11:23:03 AM3/9/16
to Simian Discuss
Hi all,

Does this mean a new clone of simian is necessary or simply a make dmg post make clean will do the job?

Hesan

Justin McWilliams

unread,
Mar 9, 2016, 11:35:09 AM3/9/16
to Simian Discuss
The fix for this in September required no code changes, so no client changes.  The fix was purely server-side, so even older clients (past some mid-year/June/July date)  should have seamlessly started working on 10.11.
Reply all
Reply to author
Forward
0 new messages