Joomdle 1.0 Installation

Error upgrading Joomdle in Moodle

  • Civica Digital
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #1 by Civica Digital
Error upgrading Joomdle in Moodle was created by Civica Digital
Hi.

I am attempting to upgrade Joomdle using Moodle's plugin update system, but I'm getting an error.

After turning on Moodle's error reporting, the error details are as follows:
Code:
Debugging output enabled cURL request for "https://moodle.org/plugins/download.php/12005/auth_joomdle_moodle31_2008080275.zip" failed, HTTP response code: HTTP/1.1 403 Forbidden line 1348 of /lib/filelib.php: call to debugging() line 437 of /lib/classes/update/code_manager.php: call to download_file_content() line 406 of /lib/classes/update/code_manager.php: call to core\update\code_manager->download_file_content() line 120 of /lib/classes/update/code_manager.php: call to core\update\code_manager->download_plugin_zip_file() line 1084 of /lib/classes/plugin_manager.php: call to core\update\code_manager->get_remote_plugin_zip() line 1265 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_remote_plugin_zip() line 2427 of /lib/upgradelib.php: call to core_plugin_manager->install_plugins() line 179 of /admin/plugins.php: call to upgrade_install_plugins() Error fetching plugin ZIP. line 389 of /lib/classes/update/code_manager.php: call to debugging() line 409 of /lib/classes/update/code_manager.php: call to core\update\code_manager->debug() line 120 of /lib/classes/update/code_manager.php: call to core\update\code_manager->download_plugin_zip_file() line 1084 of /lib/classes/plugin_manager.php: call to core\update\code_manager->get_remote_plugin_zip() line 1265 of /lib/classes/plugin_manager.php: call to core_plugin_manager->get_remote_plugin_zip() line 2427 of /lib/upgradelib.php: call to core_plugin_manager->install_plugins() line 179 of /admin/plugins.php: call to upgrade_install_plugins() Downloading auth_joomdle ... <- https://moodle.org/plugins/download.php/12005/auth_joomdle_moodle31_2008080275.zip -> ... Error

This is implies that the update server is refusing the request?!?

This is particularly weird because I upgraded the test system successfully yesterday, which is an exact mirror of the live system that I'm trying to upgrade today.

I can see that the URL is on Moodle.org, so I'll post a question about this over there as well, but I thought it would be worthwhile asking here as well. Has anyone seen this error before? What can I do to resolve it?

Thank you.


Simon C.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Error upgrading Joomdle in Moodle
Hi Simon.

I have never seen that... can you try again? I just tried from my localhost and it worked fine:

Descargando auth_joomdle ...
<- moodle.org/plugins/download.php/12005/au...dle31_2008080275.zip
-> /var/moodledata/j3/temp/core_plugin/code_manager/distfiles/8cbdcf67e49a5ad83178e6300d1179f5.zip ... OK

Please Log in or Create an account to join the conversation.

  • Civica Digital
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #3 by Civica Digital
Replied by Civica Digital on topic Error upgrading Joomdle in Moodle
Hi.

Yeah, it works everywhere else. It just seems to be this specific server that is having issues. Googling elsewhere, it seems as if it may be a firewall issue. This page seems like it's describing the same problem. There's a possible work-around at the end which involves hacking the Moodle core to remove SSL checks on the download, but I'd prefer to avoid having to do that!

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Error upgrading Joomdle in Moodle
Just download package from joomdle.com and instal it manually then. Seems less trouble.

Are other extensions updating correctly?

Please Log in or Create an account to join the conversation.

  • Civica Digital
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 6 months ago #5 by Civica Digital
Replied by Civica Digital on topic Error upgrading Joomdle in Moodle
Hi again.

With a little help from a friendly network engineer, we have now resolved the problem and successfully upgraded Joomdle.

Starting from the advice on the Moodle forum page I mentioned previously, he saw that the issue was related to Curl's _VERIFYPEER feature and was able to work out the rest. I'll quote his reply to me, because I'm not a network expert and I risk making it nonsense if I try to explain it myself...

I have seen something like this before It's due to SSL peer verification.

_VERIFYPEER checks two things.

First, it checks certificate with CAINFO. if CAINFO is specified in curl options then it checks with that value, otherwise it checks with the value specify in php.ini. Secondly, it checks the result from _VERIFYHOST (case set _VERIFYHOST to 1 or 2). If verification pass both conditions, the connection will be continued. Otherwise the connection will be terminated.

The solution is to go to the curl website and from there to update to an up-to-date bundle of CA root certificates. The curl website has the latest CA root certificate bundle ready to go.

The related entry in the php.ini on the box is not currently active. Here is how it looks at this time:

Code:
[curl] ; A default value for the CURLOPT_CAINFO option. This is required to be an ; absolute path. ;curl.cainfo =

I've amended this as follows and restarted the web services to commit this change
Code:
curl.cainfo=/xxx/php/cacert.pem

curl now has a valid CA root certificate bundle and it can verify the SSL certificates of remote servers just fine. If it does get an error, it’s because the certificate really is invalid — and that’s what we'd want it to do.

Please Log in or Create an account to join the conversation.

More
9 years 6 months ago #6 by Antonio Durán
Replied by Antonio Durán on topic Error upgrading Joomdle in Moodle
Great to know that you got it working, and thank you for telling us about the solution.

Please Log in or Create an account to join the conversation.