Installation help

Can't automatically upgrade plugins anymore.

 
 
Picture of g k
Re: Can't automatically upgrade plugins anymore.
 

Did that. Error logs show absolutely nothing concerning this process.  Again, the site just hangs on a the mdeploy.php file. The screen is completely blank.

 
Average of ratings: -
Picture of Ken Task
Re: Can't automatically upgrade plugins anymore.
Group Particularly helpful Moodlers

Have you checked apache (assuming you are running apache) error logs?

In looking at the mdeploy.php file found at moodle code directory root, it shows that it can be executed via command line. 

Here's the help on it:

php mdeploy.php --help

mdeploy.php - Moodle (http://moodle.org) deployment utility

Usage: $ sudo -u apache php mdeploy.php [options]

--passfile           File name of the passphrase file (HTTP access only)
--password           Session passphrase (HTTP access only)
--proxy              HTTP proxy host and port (e.g. 'our.proxy.edu:8888')
--proxytype          Proxy type (HTTP or SOCKS5)
--proxyuserpwd       Proxy username and password (e.g. 'username:password')
--returnurl          Return URL (HTTP access only)
-d, --dataroot       Full path to the dataroot (moodledata) directory
-h, --help           Prints usage information
-i, --install        Installation mode
-m, --md5            Expected MD5 hash of the ZIP package to deploy
-n, --name           Plugin name (the name of its folder)
-p, --package        URL to the ZIP package to deploy
-r, --typeroot       Full path of the container for this plugin type
-u, --upgrade        Upgrade mode

And appears to use curl (from looking at the code).  Is curl installed on system and have you tested via command line?

curl -I http://yourownmoodleserver/

'spirit of sharing', Ken

 
Average of ratings: -
Picture of g k
Re: Can't automatically upgrade plugins anymore.
 

I am running this on a web server so I am not sure how or if this can be accomplished easily.  I have looked at the error logs.

 
Average of ratings: -
Picture of g k
Re: Can't automatically upgrade plugins anymore.
 

Hmm.....playing around a bit, I now get the following errors:

exception 'missing_option_exception' with message 'Missing required option: dataroot' in mdeploy.php:363
Stack trace:
#0 mdeploy.php(157): input_manager->get_required_option('dataroot')
#1 mdeploy.php(838): input_manager->get_option('dataroot')
#2 mdeploy.php(714): worker->authorize()
#3 mdeploy.php(1399): worker->execute()
#4 {main}
 
Average of ratings: -
Picture of Ken Task
Re: Can't automatically upgrade plugins anymore.
Group Particularly helpful Moodlers

Hmmm ... that looks like you figured out how to execute the php file via command line.  Am I guessing right?  Did you execute giving the dataroot parameter?

The 'missing required option' is for dataroot ... which one can find in the config.php file of the site.

Would think, also, that this script must have access rights to be able to write to moodledata/temp/somedirectory (where is might unzip the package) and to the moodle code directory and then the mod/block or whatever the update notification is about.

Maybe a little more info is necessary ... updating a plugin could be core or an add-on.  Are we talking the inability to update an add-on?  If so, which add-on?  Those are third party 'contributions', I think, is that the term is as shown on the update plugins form.  Does it say an update is available for a contribution and then provides a link to download?  I've see some like that ... not updatable via Moodle GUI and was provided a link to download the upgrade for the mod/block.

Got any 'secure' logs which might complain about apache user attempting to write to a folder?

'spirit of sharing', Ken

 
Average of ratings: -
Picture of Brian Peat
Re: Can't automatically upgrade plugins anymore.
 

I've got this same issue. I upgraded our site to 2.6.2 20140310 this week and now I can't update anything using the auto option from inside Moodle. First I get that blank white page, and if I refresh it, I get that same error that was posted here. Uploading the files via ftp and then refreshing the notifications page is the only way I can update anything. I'd love to know what might be the cause so I can try to fix it.

 

Here's the error:

exception 'missing_option_exception' with message 'Missing required option: dataroot' in mdeploy.php:389
Stack trace:
#0 mdeploy.php(183): input_manager->get_required_option('dataroot')
#1 mdeploy.php(918): input_manager->get_option('dataroot')
#2 mdeploy.php(740): worker->authorize()
#3 mdeploy.php(1535): worker->execute()
#4 {main}
 
Average of ratings: -
Steve Nisbet
Re: Can't automatically upgrade plugins anymore.
 

Hi folks

I'm getting a similar error to Brian in 2.2.4+, upgraded from 2.2.2+ 24th July

Linux Mint Petra (16)

MySQL 5.5.37

PHP PHP 5.5.3

debug info:

Debug info: cURL error 28: Operation timed out after 30001 milliseconds with 0 out of 0 bytes received
Error code: err_response_curl
Stack trace:
  • line 233 of /lib/classes/update/checker.php: core\update\checker_exception thrown
  • line 119 of /lib/classes/update/checker.php: call to core\update\checker->get_response()
  • line 501 of /admin/index.php: call to core\update\checker->fetch()
 
Average of ratings: -
Picture of Mohamed Rasheed
Re: Can't automatically upgrade plugins anymore.
 

am getting same error here. in addition of missing "install button' ; 


I have tried this

1- supplying dataroot parameter via command line using

 $ sudo -u apache php mdeploy.php [options]. // it didnt change anything

2- enabled updateautodeploy in moodle GUI

3- added this line $CFG->disableupdateautodeploy = false; to config.php

4- changed file permissons of mdeploy.php to 777, temporarily.

5- edited the mdeploy.php and manually inserted the values of

$dataroot = 'PATH/TO/MOODLEDATA'; // after doing this , error changed to  'Missing required option: passfile'

$passfile =  'PATH/TO/PASSFILE'; //  after doing this , error changed to  'Missing required option: password'

$password = 'ADMINPASSORD'; // the page went blank from here


am i missing something here?


 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators
There is no need to provide the admin password there! Please do not do that. This password file is used when the mdeploy.php utility is used via the web interface only. When executed via CLI, there is no authentication needed.

The password / ticket is valid for a single page request in mdeploy.php. Reloading the page does not work by design, the second request is not authorized any more.

There is MDL-48210 reported that may be relevant to issues reported in this thread.
 
Average of ratings: -
Picture of Mohamed Rasheed
Re: Can't automatically upgrade plugins anymore.
 
Is there any way I can  get  updates auto deployment working?
 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators
Getting a completely blank page is a typical symptom of an error that is not displayed. Please double check your web server's access_log (to make sure the access to this script is logged) and error_log. Please note, the mdeploy.php utility is a standalone script, intentionally not including anything from the Moodle itself. So even if you have debugging level raised in your Moodle configuration, this mdeploy.php will probably follow the native PHP setting defined in your php.ini (there may be other places though such as .htaccess that a=may affect this). You may wish to check http://php.net/manual/en/errorfunc.configuration.php#ini.display-errors and http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting
 
Average of ratings: -
Picture of Mohamed Rasheed
Re: Can't automatically upgrade plugins anymore.
 
actually i am getting few error messages (attached). i am not sure how to correct them

 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators
Do you get this error message at the vanilla clean Moodle installation or at the version that you locally modified somehow? (as your post above suggests)
 
Average of ratings: -
Picture of Mohamed Rasheed
Re: Can't automatically upgrade plugins anymore.
 
it is a clean Moodle 2.8 installation. we have upgraded it manually from 2.7 now i'm trying to install updates ( 2.8.1 in this case ) with one click of a button as described here

https://docs.moodle.org/dev/Automatic_updates_deployment - case 3





 
Average of ratings: -
Picture of Just H
Re: Can't automatically upgrade plugins anymore.
Group Particularly helpful Moodlers

Can't be done; the link is to development docs. The functionality still hasn't been realised.

 
Average of ratings:Useful (2)
Picture of Constance Horne
Re: Can't automatically upgrade plugins anymore.
 

I am getting this same issue. I am running 2.4.0. Is this really a non-functional item? The 2.4 docs say you can do this.

 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators
This thread became a bit confusing as multiple issues are mixed-in here. What is your particular problem?
 
Average of ratings: -
Picture of Constance Horne
Re: Can't automatically upgrade plugins anymore.
 

I am running 2.4 and attempted to auto-update a plugin and I get the error from mdeploy about "missing option exception" as shown in the picture a few replies above this reply.

 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators
Does it happen all the time or just occasionally? Any chance for upgrading your site to more recent version? And what plugin is it (name, current version)?
 
Average of ratings: -
Picture of Constance Horne
Re: Can't automatically upgrade plugins anymore.
 

I have attempted to update three different plug-ins: Face-to-Face, Certificate, and Open Meetings. All three give the blank page and then a refresh gives the error message. We are planning an upgrade to 2.8.3 as soon as our VM is allocated. I was just trying this feature.

So I guess I will have to wait. ...



 
Average of ratings: -
Picture of David Mudrák
Re: Can't automatically upgrade plugins anymore.
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Translators

All three give the blank page and then a refresh gives the error message.

Aha. Ok. As I was trying to explain above, that error is expected on refresh. It's part of the authentication and authorization process there.

We have to focus on why you are getting that (first) blank page. Blank page is typically a result of some PHP error in combination with displaying errors off. Usually, these errors are still logged in an error log file on the server (depending on your web server configuration). Can you monitor and check those?

 
Average of ratings: -