Page 1 of 1

Upgrade stops at step 8

Posted: Tue Mar 02, 2021 11:21 am
by 10010110
Upgrading from version 2.1.5 to the latest (2.2.15) fails for some reason. I remember that I had this issue on another installation before but I can’t remember what the reason was or what I’ve done to overcome this.

At step 7 there is a warning “Extracted file checksum does not match original” but I can proceed to the next step. And at step 8 it just shows a blue box with the path to the installation directory and nothing else underneath, i. e. it simply stopped processing anything. On my local server log it says:
PHP Fatal error: Uncaught TypeError: Argument 1 passed to CmsApp::_setDb() must be an instance of ADOConnection, instance of CMSMS\\Database\\mysqli\\Connection given, called in ~/site/installer/app/wizard/class.wizard_step8.php on line 40 and defined in ~/site/lib/classes/class.CmsApp.php:292
Stack trace:
#0 ~/site/installer/app/wizard/class.wizard_step8.php(40): CmsApp->_setDb(Object(CMSMS\\Database\\mysqli\\Connection))
#1 ~/site/installer/app/wizard/class.wizard_step8.php(183): cms_autoinstaller\\wizard_step8->db_connect(Array)
#2 ~/site/installer/app/wizard/class.wizard_step8.php(265): cms_autoinstaller\\wizard_step8->do_upgrade(Array)
#3 ~/site/installer/lib/classes/class.wizard_step.php(38): cms_autoinstaller\\wizard_step8->display()
#4 ~/site/installer/lib/classes/class.wizard.php(141): __appbase\\wizard_step->run()
#5 /U in ~/site/lib/classes/class.CmsApp.php on line 292, referer: http://example.com/installer/?/installer/?m2aacf286=4&m2aacf286=7
Somewhere else I read something about having

Code: Select all

$config['dbms'] = 'mysqli';
but that’s already there in my config. What’s happening?

Re: Upgrade stops at step 8

Posted: Tue Mar 02, 2021 12:10 pm
by Jo Morg
Can you please give us more details as for example the PHP version and if there are any other modules installed?
10010110 wrote: Tue Mar 02, 2021 11:21 am At step 7 there is a warning “Extracted file checksum does not match original” (...)
That's not a good sign, it may mean that the server may being flagging a file or files as virus, or that something else during the installation may have gone wrong.
The difficulty is that we need either more info or to be able to reproduce the issue in order to try to solve it. So far we have had no similar report either, which makes me think it may be a very particular issue to your server environment.
I would recommend testing either the expanded version of the installer or trying to upgrade in smaller steps, to see if we can determine if that is particular to the latest installer.

Re: Upgrade stops at step 8

Posted: Tue Mar 02, 2021 1:10 pm
by 10010110
Yeah, sorry, I should have given more info on my setup. Here you go:
----------------------------------------------

Cms Version: 2.1.5

Installed Modules:

AdminSearch: 1.0.2
CGCalendar: 2.2
CGContentUtils: 2.2.3
CGExtensions: 1.55.6
CGFeedMaker: 1.0.20
CGJobMgr: 1.3.6
CGSimpleSmarty: 2.2.1
CGSmartImage: 1.21.9
CMSContentManager: 1.1.1
CMSMailer: 6.2.14
Captcha: 1.0
DesignManager: 1.1.1
FileManager: 1.5.2
FormBuilder: 0.8.1.6
Gallery: 2.3.1
JMDownMan: 1.RC.2
JMFilePicker: 1.0.1
LISE: 1.2.3
LISEProdukte: 1.2.3
MicroTiny: 2.0.3
ModuleManager: 2.0.4
NMS: 2.12.2
Navigator: 1.0.3
News: 2.50.5
avplayer: 1.7


Config Information:

php_memory_limit:
max_upload_size: 500000000
url_rewriting: mod_rewrite
page_extension:
query_var: page
auto_alias_content: true
locale: de_DE.utf8
set_names: true
timezone: Europe/Berlin
permissive_smarty: false


Php Information:

phpversion: 7.4.13
md5_function: On (True)
json_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_ALL: 22527
E_STRICT: 0
E_DEPRECATED: 0
test_file_timedifference: No time difference found
test_db_timedifference: No time difference found
create_dir_and_file: 1
memory_limit: 256M
max_execution_time: 60
register_globals: Off (False)
output_buffering: 4096
disable_functions:
open_basedir: /home/sites/xxx/:/home/sites/xxx/:/tmp/:/dev/:/usr/share/php/:/etc/ssl/certs/:/usr/lib64/php7.2/bin/:/usr/lib64/php7.3/bin/:/usr/lib64/php7.4/bin/:/usr/lib64/php8.0/bin/:/home/sites/site72/
test_remote_url: Success
file_uploads: On (True)
post_max_size: 500M
upload_max_filesize: 500M
session_save_path: No check because open basedir active
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)
check_ini_set: On (True)
curl: On


Performance Information:

allow_browser_cache: On (True)
browser_cache_expiry: 60
php_opcache: On (True)
smarty_cache: Off (False)
smarty_compilecheck: Off (False)
smarty_cache_udt: Off (False)
auto_clear_cache_age: Off (False)

Server Information:

Server Software: Apache
Server Api: apache2handler
Server Os: Linux 5.4.89 On x86_64
Server Db Type: MySQL (mysqli)
Server Db Version: 10.2.36
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


Permission Information:

tmp: /home/sites/xxx/tmp (2755)
tmp_cache: /home/sites/xxx/tmp/cache (2777)
templates_c: /home/sites/xxx/tmp/templates_c (2777)
modules: /home/sites/xxx/test/modules (2777)
uploads: /home/sites/xxx/test/uploads (2777)
File Creation Mask (umask): /home/sites/xxx/test/tmp/cache (2777)
config_file: 0666

----------------------------------------------
I’ve also tried it in a staging environment on the actual server where the production site is also hosted and it also had the checksum error and stopped at step 8 but the error log didn’t have any entry there (perhaps something with error_reporting although I don’t see anything I could set there).

Re: Upgrade stops at step 8

Posted: Tue Mar 02, 2021 1:21 pm
by Rolf
If I remember correctly the upgrade process stopping at step 8 is mostly caused by a third party plugin.
Looking through your system information it might be the "avplayer" module doing this... Try to rename the module name in /modules/ folder, perform the upgrade and rename the module back to the original name.
As always have a full working backup before changing/upgrading.
Hope this helps.
Grtz. Rolf

Re: Upgrade stops at step 8

Posted: Wed Mar 03, 2021 8:15 am
by 10010110
OK, I managed to get it updated by going stepwise, first to 2.1.6, then to 2.2, and then to 2.2.15, but not without trouble as I had to change permissions for quite a few files/directories first and restarted the same updates multiple times, so in the end I don’t really know what fixed it. At the last stages I didn’t even have the checksum error anymore. *shrug*

Re: Upgrade stops at step 8

Posted: Wed Mar 03, 2021 8:48 am
by Rolf
Glad you got it fixed!