Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-39356

tool_installaddon/err_curl_exec error when attempting to install add-on

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5
    • Component/s: Administration
    • Labels:
    • Testing Instructions:
      Hide

      1/ on linux try fetching of available updates from admin/index.php - it should work if your curl is configured properly
      2/ add empty $CFG->dataroot/moodleorgca.crt and try available updates - it should fail now because there are no certs
      3/ add valid curl.cainfo = '/yourdirroot/lib/cacert.pem' to your php.ini and delete $CFG->dataroot/moodleorgca.crt - available updates should work again
      4/ remove curl.cainfo and copy libdir/cacert.pem to $CFG->dataroot/moodleorgca.crt and try available updates - it should work again
      5/ on windows try available updates - it should work now without any hacking

      6/ repeat with mdeploy.php CLI tool

      Show
      1/ on linux try fetching of available updates from admin/index.php - it should work if your curl is configured properly 2/ add empty $CFG->dataroot/moodleorgca.crt and try available updates - it should fail now because there are no certs 3/ add valid curl.cainfo = '/yourdirroot/lib/cacert.pem' to your php.ini and delete $CFG->dataroot/moodleorgca.crt - available updates should work again 4/ remove curl.cainfo and copy libdir/cacert.pem to $CFG->dataroot/moodleorgca.crt and try available updates - it should work again 5/ on windows try available updates - it should work now without any hacking 6/ repeat with mdeploy.php CLI tool
    • Workaround:
      Show
      http://docs.moodle.org/25/en/SSL_certificate_for_moodle.org
    • Affected Branches:
      MOODLE_25_STABLE
    • Fixed Branches:
      MOODLE_25_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      w17_MDL-39356_m25_cacert

      Description

      I'm trying out the new add-on installer on http://qa.moodle.net. I click the button 'Install add-ons from Moodle plugins directory', go there and choose something.e.g https://moodle.org/plugins/view.php?plugin=mod_checklist then click install. Back on the QA site I click continue then get the following error message:

      tool_installaddon/err_curl_exec

      More information about this error
      Debug info:
      Error code: err_curl_exec
      $a contents: Array
      (
      [url] => https://download.moodle.org/api/1.2/pluginfo.php?format=json&plugin=mod_checklist%402013040900
      [errno] => 60
      [error] => error setting certificate verify locations:
      CAfile: /etc/pki/tls/certs/ca-bundle.crt
      CApath: none

      )
      Stack trace:

      line 93 of /admin/tool/installaddon/classes/pluginfo_client.php: tool_installaddon_pluginfo_exception thrown
      line 56 of /admin/tool/installaddon/classes/pluginfo_client.php: call to tool_installaddon_pluginfo_client->call_service()
      line 289 of /admin/tool/installaddon/classes/installer.php: call to tool_installaddon_pluginfo_client->get_pluginfo()
      line 44 of /admin/tool/installaddon/index.php: call to tool_installaddon_installer->handle_remote_request()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              skodak Petr Skoda
              Reporter:
              tsala Helen Foster
              Integrator:
              Damyon Wiese
              Tester:
              Frédéric Massart
              Participants:
              Component watchers:
              Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                14/May/13