OJS 3.1.1-2 to 3.1.2.1 upgrade hangs

Hi,

I am trying to upgrade a multilingual OJS 3.1.1-2 to the latest OJS 3.1.2-1. The upgrade process starts, but hangs after approx. 30 secs, and quits with a 503 Service Unavailable error after 5 mins. The system is in a cPanel environment, with PHP 7.2 (MariaDB). PHP max_execution_time has a high value. I also experimented with other PHP 7.x versions during the upgrade, but I could not succeed. The database originates from an old OJS 2.x system, but we have been using 3.1.x versions for 1.5 years.

I enabled database debug, and the last line I see during the upgrade process before the 503 error is:

(mysqli): ALTER TABLE submissions ADD INDEX submissions_section_id (section_id)

I see no errors in the PHP error log, only warnings, the lasts being:

[08-Aug-2019 17:09:13 Europe/Budapest] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/ojsrkk/public_html/cache/t_compile/e8ea13aa559bf8604ca823015b397a28d8666486^28682bb3d6b6e750ebd3d458abc8f92b4da9ea9f_0.app.headerusernav.tpl.php on line 136
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Warning:  Declaration of InstallHandler::validate($request) should be compatible with PKPHandler::validate($requiredContexts = NULL, $request = NULL) in /home/ojsrkk/public_html/lib/pkp/pages/install/InstallHandler.inc.php on line 118
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; dbObject has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 106
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; dbTable has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 205
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; dbIndex has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 613
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; dbData has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 774
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; dbQuerySet has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 959
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; adoSchema has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb-xmlschema.inc.php on line 1217
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; ADODB_Cache_File has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 263
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; ADOConnection has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 359
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 2921
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; ADORecordSet_array has a deprecated constructor in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 3939
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Non-static method PKPRequest::isPost() should not be called statically in /home/ojsrkk/public_html/lib/pkp/classes/form/validation/FormValidatorPost.inc.php on line 38
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Non-static method PKPRequest::_checkThis() should not be called statically in /home/ojsrkk/public_html/lib/pkp/classes/core/PKPRequest.inc.php on line 396
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  The each() function is deprecated. This message will be suppressed on further calls in /home/ojsrkk/public_html/lib/pkp/lib/adodb/adodb.inc.php on line 1003
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Warning:  Declaration of OpenAIREDAO::setOAI(&$oai) should be compatible with PKPOAIDAO::setOAI($oai) in /home/ojsrkk/public_html/plugins/generic/openAIRE/OpenAIREDAO.inc.php on line 19
[08-Aug-2019 17:09:17 Europe/Budapest] PHP Deprecated:  Methods with the same name as their class will not be constructors in a future version of PHP; CounterReport has a deprecated constructor in /home/ojsrkk/public_html/plugins/reports/counter/classes/CounterReport.inc.php on line 33

Any guess why this happens and how I could upgrade successfully?

Thank you for your help!

Marton

Hi @czirfusz,

I would suggest using the command-line tool to run the upgrade, if you can. It’s easier to debug when you run into problems.

Regards,
Alec Smecher
Public Knowledge Project Team