Plugin upgrade issues

Plugin upgrade issues

by Phillip Duncan -
Number of replies: 4

Hi

I've upgraded from 3.3 to 3.4 and had plugin folder write issues for two plugins.

I uninstalled them and now I am trying to install the latest plugins, but I get this error:

Validating atto_wordimport ... Error
  [Error] Write access check [/opt/bitnami/apps/moodle/htdocs/lib/editor/atto/plugins] 
Installation aborted due to validation failure
Looks like an ownership issue, but I am clueless as to how to debug and fix it.

I am using a bitnami installation on AWS....

Any suggestions will be gratefully received.  I am a novice, so please assume no knowledgesmile



Average of ratings: -
In reply to Phillip Duncan

Re: Plugin upgrade issues

by Colin Fraser -
Picture of Documentation writers Picture of Testers

That is interesting.. how did you upgrade? Did you overwrite or did you retain the config.php and delete all other code then add new code into the root directory? 

Atto is part of core, now, and I would have thought this error was extremely unlikely. I can't think of any other way that this error would occur, as unlikely as that is btw.  


In reply to Colin Fraser

Re: Plugin upgrade issues

by Phillip Duncan -
Hi



I followed the instructions in

https://docs.bitnami.com/aws/apps/moodle/#how-to-install-a-plugin-on-moodle

as copied below.  It says to move the original code to a backup, Unzip the

release to the old location, then copy config.php back. (I think!)







How To Upgrade Moodle?



It is strongly recommended that you create a backup before starting the

update process. If you have important data, it is advisable that you create

and try to restore a backup to ensure that everything works properly.



Upgrade Moodle following these steps:



  -



  Move your current Moodle files:



  sudo mv /opt/bitnami/apps/moodle/htdocs/

/opt/bitnami/apps/moodle/htdocs.backup



  -



  Download the new Moodle version

  <https://download.moodle.org/releases/latest/>. An example is shown

  below (the XX placeholder in the command refers to the Moodle version

  number).



  wget http://download.moodle.org/download.php/direct/stableXX/moodle-latest-XX.tgz



  -



  Create a new folder and uncompress the files:



  sudo mkdir /opt/bitnami/apps/moodle/htdocs/sudo tar -xzvf

moodle-latest-XX.tgz -C /opt/bitnami/apps/moodle/htdocs/ --strip 1



  -



  Copy your previous configuration file and your modules or themes:



  sudo cp -a /opt/bitnami/apps/moodle/htdocs.backup/config.php

/opt/bitnami/apps/moodle/htdocs/sudo cp -a

/opt/bitnami/apps/moodle/htdocs.backup/theme/MY_THEME

/opt/bitnami/apps/moodle/htdocs/theme/sudo cp -a

/opt/bitnami/apps/moodle/htdocs.backup/mod/MY_MOD

/opt/bitnami/apps/moodle/htdocs/mod/









On Wed, Feb 28, 2018 at 12:03 PM, Colin Fraser (via Moodle.org) <
In reply to Phillip Duncan

Re: Plugin upgrade issues

by Colin Fraser -
Picture of Documentation writers Picture of Testers

erm.... thinking about this a bit more, my understanding is that there are a few plugins for Atto, at least since v2.7 when Atto became part of core code. Many of these have since been falling behind, but the Word Import plugin is supposed to be current. Assuming you did use the latest version of the plugin, and you have the XSL php extension enabled, it should have fit, without issue. Just installed it on mine without issue. 

You may want to send a message to the maintainer, Eoin Campbell, via the plugin page you got this error. Eoin is always willing to help, if you ask. 


EDIT: My apologies, I have been using TinyMCE in all my Moodles, Atto doesn't cut it for me yet so anything I might have said that implies a negative towards Atto, is probably just as little thoughtless. clown  


In reply to Colin Fraser

Re: Plugin upgrade issues

by Phillip Duncan -

Hi Colin


After some searching I found a thread in the bitnami forum which mentioned something similar.  I tried these steps on the relevant folders and succeeded in getting the plugins installed:

sudo chown -R bitnami:daemon /opt/bitnami/apps/moodle/htdocs/theme
sudo chmod -R g+w /opt/bitnami/apps/moodle/htdocs/theme


The question I have now is whether or not there is some underlying ownership issue that may exist for all folders in the upgraded code copy?


Thanks