moodle 3.5.5 problem upgrading tool_ally

moodle 3.5.5 problem upgrading tool_ally

by shpetim aliaj -
Number of replies: 1

Hi Guys,

i am encountering a problem on upgrading the ally plugin on moodle 3.5.5 all the other plugin updates go smothly but ally gets stuck.


bellow are the commands i am running.


cd /********/moodle-plugins && wget  https://moodle.org/plugins/download.php/18865/tool_ally_moodle35_2018080810.zip && unzip  tool_ally_moodle35_2018080810.zip  && yes | cp -rva /********/ally/* /********/admin/tool/ally/

============================================

sudo -u apache /usr/bin/php admin/cli/maintenance.php --enable

sudo -u apache /usr/bin/php admin/cli/upgrade.php


============================================

== Upgrading Moodle database from version 3.5.5 (Build: 20190311) (2018051705) to 3.5.5 (Build: 20190311) (2018051705) ==

Your Moodle files have been changed, and you are about to automatically
upgrade your server to this version:

3.5.5 (BUILD: 20190311) (2018051705)

Once you do this you can not go back again. Please note that this process
can take a long time.

Are you sure you want to upgrade this server to this version?

type y (means yes) or n (means no)
: y
-->tool_ally


Is anyone experiencing the same issue. i dont have error on httpd or mariadb. Also the disk usage is under 70%. i did it two times from snapshots one time all the updated plugins together and it got stuck and the second one first the all the other updates and them rebooted the servers and started the upgrade of the tool_ally and same result.


Note: The machine i am testing is a clone of production.



=Tim

command outputs:


# iostat  5 5
Linux 4.1.12-124.22.4.el7uek.x86_64 (************)     03/25/2019     _x86_64_    (8 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          14.52    0.00    0.26    0.50    0.00   84.72

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda              22.93       470.78       252.45    1168764     626720
sdb              55.62      1583.22       280.50    3930488     696364
dm-0             30.23       327.38       249.26     812761     618816
dm-1              0.03         1.04         0.00       2588          0
dm-2              3.82       129.71         1.21     322021       3016
dm-3              0.06         0.53         0.06       1317        144
dm-4              0.04         0.51         0.01       1277         20
dm-5             18.38       184.57        18.27     458221      45356
dm-6             31.49      1361.30       173.07    3379549     429668
dm-7             26.45        34.74        89.09      86257     221176
dm-8              0.53         1.02         1.96       2521       4868

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.50    0.00    0.03    0.00    0.00   87.47

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda              25.00         0.00       436.80          0       2184
sdb               0.20         3.20         0.00         16          0
dm-0             24.00         0.00       409.60          0       2048
dm-1              0.00         0.00         0.00          0          0
dm-2              5.40         0.00        21.60          0        108
dm-3              0.00         0.00         0.00          0          0
dm-4              0.00         0.00         0.00          0          0
dm-5              0.00         0.00         0.00          0          0
dm-6              0.20         3.20         0.00         16          0
dm-7              0.00         0.00         0.00          0          0
dm-8              1.40         0.00         5.60          0         28

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.47    0.00    0.02    0.02    0.00   87.48

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.40         0.00        18.40          0         92
sdb               0.00         0.00         0.00          0          0
dm-0              4.60         0.00        18.40          0         92
dm-1              0.00         0.00         0.00          0          0
dm-2              0.00         0.00         0.00          0          0
dm-3              0.00         0.00         0.00          0          0
dm-4              0.00         0.00         0.00          0          0
dm-5              0.00         0.00         0.00          0          0
dm-6              0.00         0.00         0.00          0          0
dm-7              0.00         0.00         0.00          0          0
dm-8              0.00         0.00         0.00          0          0

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.47    0.00    0.07    0.00    0.00   87.45

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.00         0.00         0.00          0          0
sdb               0.00         0.00         0.00          0          0
dm-0              0.00         0.00         0.00          0          0
dm-1              0.00         0.00         0.00          0          0
dm-2              0.00         0.00         0.00          0          0
dm-3              0.00         0.00         0.00          0          0
dm-4              0.00         0.00         0.00          0          0
dm-5              0.00         0.00         0.00          0          0
dm-6              0.00         0.00         0.00          0          0
dm-7              0.00         0.00         0.00          0          0
dm-8              0.00         0.00         0.00          0          0

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
          12.46    0.00    0.03    0.00    0.00   87.52

Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               0.00         0.00         0.00          0          0
sdb               0.00         0.00         0.00          0          0
dm-0              0.00         0.00         0.00          0          0
dm-1              0.00         0.00         0.00          0          0
dm-2              0.00         0.00         0.00          0          0
dm-3              0.00         0.00         0.00          0          0
dm-4              0.00         0.00         0.00          0          0
dm-5              0.00         0.00         0.00          0          0
dm-6              0.00         0.00         0.00          0          0
dm-7              0.00         0.00         0.00          0          0
dm-8              0.00         0.00         0.00          0          0



# top

top - 14:37:34 up 42 min,  3 users,  load average: 0.97, 0.94, 0.94
Tasks: 276 total,   2 running, 274 sleeping,   0 stopped,   0 zombie
%Cpu(s): 12.4 us,  0.1 sy,  0.0 ni, 87.5 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 20.8/16282460 [|||||||||||||||||||||                                                                               ]
KiB Swap:  0.0/6291452  [                                                                                                    ]

   PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                      
 12910 mysql     20   0 8916408   2.4g  19960 S  99.0 15.6  12:54.83 mysqld                                                       
 12949 apache    20   0  972092 128172  56532 S   0.7  0.8   0:04.23 php                                                          
  9852 root      20   0  300732  10968   9500 S   0.3  0.1   0:01.52 vmtoolsd                                                     
 13234 root      20   0  162232   4720   3728 R   0.3  0.0   0:00.05 top                                                          
     1 root      20   0  194032   8528   5580 S   0.0  0.1   0:07.95 systemd                                                      
     2 root      20   0       0      0      0 S   0.0  0.0   0:00.00 kthreadd                                                     
     3 root      20   0       0      0      0 S   0.0  0.0   0:00.00 ksoftirqd/0                                                  
     5 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/0:0H                                                 
     7 root      20   0       0      0      0 S   0.0  0.0   0:00.46 rcu_sched                                                    
     8 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcu_bh                                                       
     9 root      20   0       0      0      0 R   0.0  0.0   0:00.44 rcuos/0                                                      
    10 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/0                                                      
    11 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/0                                                  
    12 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 watchdog/0                                                   
    13 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 watchdog/1                                                   
    14 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 migration/1                                                  
    15 root      20   0       0      0      0 S   0.0  0.0   0:00.00 ksoftirqd/1                                                  
    17 root       0 -20       0      0      0 S   0.0  0.0   0:00.00 kworker/1:0H                                                 
    18 root      20   0       0      0      0 S   0.0  0.0   0:00.08 rcuos/1                                                      
    19 root      20   0       0      0      0 S   0.0  0.0   0:00.00 rcuob/1                                                      
    20 root      rt   0       0      0      0 S   0.0  0.0   0:00.00 watchdog/2   

#tail -f /var/log/MariaDB/******-slow.log
Time                 Id Command    Argument
/usr/sbin/mysqld, Version: 10.2.19-MariaDB-log (MariaDB Server). started with:
Tcp port: 3306  Unix socket: /*******/mysql/mysql.sock
Time                 Id Command    Argument
/usr/sbin/mysqld, Version: 10.2.19-MariaDB-log (MariaDB Server). started with:
Tcp port: 3306  Unix socket: /*******/mysql/mysql.sock
Time                 Id Command    Argument
/usr/sbin/mysqld, Version: 10.2.19-MariaDB-log (MariaDB Server). started with:
Tcp port: 3306  Unix socket: /*******/mysql/mysql.sock
Time                 Id Command    Argument



the disk usage is under 70%


Average of ratings: -
In reply to shpetim aliaj

Re: moodle 3.5.5 problem upgrading tool_ally

by Ken Task -
Picture of Particularly helpful Moodlers

Don't use the plugin myself, but in unzipping the file you show you downloaded, there is a README.md.

In viewing that appears what you've downloaded is a part of a series of addons.   Did you acquire all of them?

cat ally/README.md says:

"# Ally admin tool

The Ally admin tool (tool_ally) provides a web service facilitating communication between Moodle and Ally. It also
contains all the main settings required for Ally to function. Ally is an accessibility tool providing analysis / remedy
of accessibility issues for files hosted within moodle. It can provide a detailed course level report illustrating the
level of accessibility for files throughtout the course.

## Installation

You can download the admin tool plugin from:

https://github.com/blackboard-open-source/moodle-tool_ally

This plugin should be located and named as:
 [yourmoodledir]/admin/tool/ally

## Configuring the Ally admin tool

Open the settings for the Ally admin tool:

Site Administration > Plugins > Admin Tools > Ally

The Secret, Key, Launch URL, File updates URL and Client id fields should be populated with values provided to you by an Ally representative.

You will also need to make the Moodle Ally web service available to Ally. The easiest way to do this is to click the
link entitled "Auto configure Ally web service" at the bottom of the settings page and then by clicking continue. You will be able to test that the Ally web service is working by following the link at the bottom of the page. Please note, this URL must be accessible from the internet for Ally to function. Following this link should open a new page starting with the following text:
{"tool_ally":{"version":...

If successful, you will need to copy this link and provide it to your Ally representative. They will contact you once
everything is set up at their end.

## Additional plugins

The Ally admin tool isn't useful on its own. The main functionality of Ally is provided by two other plugins which you
should download and install:

### Ally filter

The Ally filter can be downloaded from:

https://github.com/blackboard-open-source/moodle-filter_ally

The filter should be located and named as:
 [yourmoodledir]/filter/ally
 
### Ally accessibility report

The Ally accessibility report can be downloaded from:
 
https://github.com/blackboard-open-source/moodle-report_allylti
 
The report should be located and named as:
 [yourmoodledir]/report/allylti
 
## License for Ally admin tool

© Blackboard Inc 2017

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>;.

'spirit of sharing', Ken