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

tool_installaddon/err_curl_exec error when attempting to install add-on

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.5
    • 2.5
    • Administration
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • w17_MDL-39356_m25_cacert
    • Show
      http://docs.moodle.org/25/en/SSL_certificate_for_moodle.org
    • 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

    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

              skodak Petr Skoda
              tsala Helen Foster
              Damyon Wiese Damyon Wiese
              Frédéric Massart Frédéric Massart
              David Woloszyn, Huong Nguyen, Jake Dallimore, Meirza, Michael Hawkins, Raquel Ortega, Safat Shahin, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                14/May/13