Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-526

Fix iOS failing builds due to a match OpenSSL error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iOS
    • Tags:
    • Sprint:
      nxfit 10.2.6
    • Story Points:
      1

      Description

      Both nuxeo-mobile-ios-build and nuxeo-mobile-ios-deploy started to fail on May 23, 2018 8:22 AM at the match step with

      08:25:24 [10:25:23]: -------------------
      08:25:24 [10:25:23]: --- Step: match ---
      08:25:24 [10:25:23]: -------------------
      08:25:24 system@nuxeo.com
      08:25:24 [10:25:23]: Successfully loaded '/Users/jenkins/tmp/0ebd1d51/workspace/xeo-mobile-ios-build_master-BBHE2CEVDSK4IZYLZMCPJEDBZKNYEYERPWBNDC2TMYRABYJA3VYA/fastlane/Matchfile' 📄
      08:25:24 
      08:25:24 +----------------+-------------------------------------------------+
      08:25:24 |           Detected Values from './fastlane/Matchfile'            |
      08:25:24 +----------------+-------------------------------------------------+
      08:25:24 | git_url        | git@github.com:nuxeo/ios-certificates.git       |
      08:25:24 | type           | development                                     |
      08:25:24 | shallow_clone  | false                                           |
      08:25:24 | app_identifier | com.nuxeo.mobile.app,com.nuxeo.mobile.app.share |
      08:25:24 | username       | system@nuxeo.com                                |
      08:25:24 +----------------+-------------------------------------------------+
      08:25:24 
      08:25:24 
      08:25:24 +-----------------------+--------------------------------------------------------+
      08:25:24 |                            Summary for match 2.96.1                            |
      08:25:24 +-----------------------+--------------------------------------------------------+
      08:25:24 | type                  | appstore                                               |
      08:25:24 | git_url               | git@github.com:nuxeo/ios-certificates.git              |
      08:25:24 | git_branch            | master                                                 |
      08:25:24 | app_identifier        | ["com.nuxeo.mobile.app", "com.nuxeo.mobile.app.share"] |
      08:25:24 | username              | system@nuxeo.com                                       |
      08:25:24 | keychain_name         | login.keychain                                         |
      08:25:24 | readonly              | false                                                  |
      08:25:24 | team_id               | WCLR6985BX                                             |
      08:25:24 | verbose               | false                                                  |
      08:25:24 | force                 | false                                                  |
      08:25:24 | skip_confirmation     | false                                                  |
      08:25:24 | shallow_clone         | false                                                  |
      08:25:24 | clone_branch_directly | false                                                  |
      08:25:24 | force_for_new_devices | false                                                  |
      08:25:24 | skip_docs             | false                                                  |
      08:25:24 | platform              | ios                                                    |
      08:25:24 +-----------------------+--------------------------------------------------------+
      08:25:24 
      08:25:24 [10:25:23]: Cloning remote git repo...
      08:25:24 [10:25:23]: If cloning the repo takes too long, you can use the `clone_branch_directly` option in match.
      08:25:25 [10:25:25]: 🔓  Successfully decrypted certificates repo
      08:25:25 [10:25:25]: Verifying that the certificate and profile are still valid on the Dev Portal...
      08:25:28 [10:25:28]: Installing certificate...
      08:25:28 
      08:25:28 +-------------------+----------------------------------------------+
      08:25:28 |                      Installed Certificate                       |
      08:25:28 +-------------------+----------------------------------------------+
      08:25:28 | User ID           | WCLR6985BX                                   |
      08:25:28 | Common Name       | iPhone Distribution: NUXEO CORP (WCLR6985BX) |
      08:25:28 | Organisation Unit | WCLR6985BX                                   |
      08:25:28 | Organisation      | NUXEO CORP                                   |
      08:25:28 | Country           | US                                           |
      08:25:28 | Start Datetime    | 2018-04-26 15:04:15 UTC                      |
      08:25:28 | End Datetime      | 2019-04-26 15:04:15 UTC                      |
      08:25:28 +-------------------+----------------------------------------------+
      08:25:28 
      08:25:29 [10:25:29]: Installing provisioning profile...
      08:25:34 +------------------+-----------------+
      08:25:34 |            Lane Context            |
      08:25:34 +------------------+-----------------+
      08:25:34 | DEFAULT_PLATFORM | ios             |
      08:25:34 | PLATFORM_NAME    | ios             |
      08:25:34 | LANE_NAME        | ios xcode_build |
      08:25:34 +------------------+-----------------+
      08:25:34 [10:25:33]: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
      08:25:34 
      08:25:34 +------+----------------------------+-------------+
      08:25:34 |                fastlane summary                 |
      08:25:34 +------+----------------------------+-------------+
      08:25:34 | Step | Action                     | Time (in s) |
      08:25:34 +------+----------------------------+-------------+
      08:25:34 | 1    | update_fastlane            | 0           |
      08:25:34 | 2    | Verifying fastlane version | 0           |
      08:25:34 | 3    | default_platform           | 0           |
      08:25:34 | 4    | unlock_keychain            | 0           |
      08:25:34 | 💥   | match                      | 9           |
      08:25:34 +------+----------------------------+-------------+
      08:25:34 
      08:25:34 [10:25:33]: fastlane finished with errors
      08:25:34 [10:25:33]: -----------------------------------------------------------------------
      08:25:34 [10:25:33]: SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
      08:25:34 [10:25:33]: 
      08:25:34 [10:25:33]: SSL errors can be caused by various components on your local machine.
      08:25:34 [10:25:33]: 
      08:25:34 [10:25:33]: The best solution is to use the self-contained fastlane version.
      08:25:34 [10:25:33]: Which ships with a bundled OpenSSL,ruby and all gems - so you don't depend on system libraries
      08:25:34 [10:25:33]:  - Use Homebrew
      08:25:34 [10:25:33]:     - update brew with `brew update`
      08:25:34 [10:25:33]:     - install fastlane using:
      08:25:34 [10:25:33]:       - `brew cask install fastlane`
      08:25:34 [10:25:33]:  - Use One-Click-Installer:
      08:25:34 [10:25:33]:     - download fastlane at https://download.fastlane.tools
      08:25:34 [10:25:33]:     - extract the archive and double click the `install`
      08:25:34 [10:25:33]: -----------------------------------------------------------
      08:25:34 [10:25:33]: for more details on ways to install fastlane please refer the documentation:
      08:25:34 [10:25:33]: -----------------------------------------------------------
      08:25:34 [10:25:33]:         🚀       https://docs.fastlane.tools          🚀   
      08:25:34 [10:25:33]: -----------------------------------------------------------
      08:25:34 [10:25:33]: 
      08:25:34 [10:25:33]: You can also install a new version of Ruby
      08:25:34 [10:25:33]: 
      08:25:34 [10:25:33]: - Make sure OpenSSL is installed with Homebrew: `brew update && brew upgrade openssl`
      08:25:34 [10:25:33]: - If you use system Ruby:
      08:25:34 [10:25:33]:   - Run `brew update && brew install ruby`
      08:25:34 [10:25:33]: - If you use rbenv with ruby-build:
      08:25:34 [10:25:33]:   - Run `brew update && brew upgrade ruby-build && rbenv install 2.3.1`
      08:25:34 [10:25:33]:   - Run `rbenv global 2.3.1` to make it the new global default Ruby version
      08:25:34 [10:25:33]: - If you use rvm:
      08:25:34 [10:25:33]:   - First run `rvm osx-ssl-certs update all`
      08:25:34 [10:25:33]:   - Then run `rvm reinstall ruby-2.3.1 --with-openssl-dir=/usr/local`
      08:25:34 [10:25:33]: 
      08:25:34 [10:25:33]: If that doesn't fix your issue, please google for the following error message:
      08:25:34 [10:25:33]:   'SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A'
      08:25:34 [10:25:33]: -----------------------------------------------------------------------
      08:25:34 
      08:25:34 [!] SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A
      08:25:34 error Command failed with exit code 1.
      

      Tried

      gem uninstall fastlane
      brew uninstall ruby
      brew update
      brew upgrade openssl
      brew install ruby
      gem install fastlane -NV
      

      but without success.

      Issue was raised by other people: https://github.com/fastlane/fastlane/issues/12598.

        Attachments

          Activity

            People

            • Assignee:
              ataillefer Antoine Taillefer
              Reporter:
              ataillefer Antoine Taillefer
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h