How's to restore the database (suiteCRM Version 7.11.13) to new version of suiteCRM 7.11.15?

Hi,

I have the plan to setup the new suiteCRM 7.11.15 in VM, and restore the latest database to here. But not sure any steps need to preprocess before. Any idea?

[My story]
I’m Already deployed the suiteCRM Version 7.11.13 in Windows platforms, and roll out successful.

For some reason, I need to preform the upgrade process. When I perform the upgrade process [via Upgrade Wizard]. I stuff at pilot pre-flight mode in [Upgrade Wizard] procedure. Tried to delete the cache files, patch files …, but the result is no changes. So, I give up for upgrade process, and find the other-ways to do it.

Hey,

There have been some issues reported in previous threads around upgrading from 7.11.13->7.11.15:

After the upgrade fails, do you get any particularly notable errors in the upgradeWizard.log file?


In terms of moving a db to another instance, I think you should be fine.

Although, it would still be worth taking backups of both the instance and the database beforehand, just in case.


One thing to note is that if you link the CRM to the database before running through the CRM install process, it may override the database and generate a clean one in the same name.
(In essence, wiping the database)

So I would suggest running through the install for the 7.11.15 version as standard
Then, once installed fully, replace the database values in the config.php file to point towards your target database

Or, depending on how much data you have, you could also export the data from the 7.11.13’s database, and import it into the 7.11.15’s database


Let us know if you come across any issues!

This is the only entries in the wizard’s log

Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - setting session variables…
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - [At systemCheck.php]
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - Starting file permission check…
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\bower.json] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\campaign_tracker.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\CODE_OF_CONDUCT.md] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\composer.json] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\composer.lock] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\config.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\config_override.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\cron.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\crossdomain.xml] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\deprecated.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\dictionary.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\download.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\emailmandelivery.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\error_log] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\export.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:20 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\files.md5] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\gitignore] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\HandleAjaxCall.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\htaccess] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\ical_server.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\index.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\install.log] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\install.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\json_server.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\LICENSE.txt] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\log_file_restricted.html] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\maintenance.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\pdf.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\php_errors.log] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\php_version.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\README.md] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\RoboFile.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\robots.txt] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\run_job.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\soap.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\sugarcrm.log] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\SugarSecurity.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\sugar_version.json] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\sugar_version.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\suitecrm.log] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\suitecrm_version.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\travis.yml] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\TreeData.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\upgradeWizard.log] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\vcal_server.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - File [D:/CRM/SugarCRM/apps/SuiteCRM/htdocs\vCard.php] not writable - saving for display
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Finished file permission check.
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Starting database permissions check…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking CREATE TABLE permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking INSERT INTO permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking UPDATE TABLE permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking SELECT permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking DELETE FROM permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking ALTER TABLE ADD COLUMN permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking ALTER TABLE CHANGE COLUMN permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking ALTER TABLE DROP COLUMN permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Checking DROP TABLE permissions…
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - No permissions errors found!
Wed, 15 Jul 2020 17:47:21 +0000 [UpgradeWizard] - Finished database permissions check.

And this is the matching php log for that day
[15-Jul-2020 04:21:11 UTC] PHP Notice: Unknown: Can’t connect to imap.kconsultants.solutions,143: Timed out (errflg=2) in Unknown on line 0
[15-Jul-2020 04:21:11 UTC] PHP Notice: Unknown: Can’t connect to imap.kconsultants.solutions,143: Timed out (errflg=2) in Unknown on line 0
[15-Jul-2020 04:21:11 UTC] PHP Notice: Unknown: Can’t connect to imap.kconsultants.solutions,143: Timed out (errflg=2) in Unknown on line 0
[15-Jul-2020 16:37:35 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291
[15-Jul-2020 16:47:24 UTC] PHP Deprecated: Non-static method SugarWidgetReportField::_get_column_select() should not be called statically in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\include\generic\SugarWidgets\SugarWidgetFieldname.php on line 244
[15-Jul-2020 16:47:31 UTC] PHP Deprecated: Non-static method SugarWidgetReportField::_get_column_select() should not be called statically in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\include\generic\SugarWidgets\SugarWidgetFieldname.php on line 244
[15-Jul-2020 16:47:41 UTC] PHP Deprecated: Non-static method SugarWidgetReportField::_get_column_select() should not be called statically in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\include\generic\SugarWidgets\SugarWidgetFieldname.php on line 244
[15-Jul-2020 16:47:47 UTC] PHP Deprecated: Non-static method SugarWidgetReportField::_get_column_select() should not be called statically in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\include\generic\SugarWidgets\SugarWidgetFieldname.php on line 244
[15-Jul-2020 16:48:47 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; la_LoginAudit has a deprecated constructor in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\la_LoginAudit\la_LoginAudit.php on line 41
[15-Jul-2020 16:48:47 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; la_LoginAudit_sugar has a deprecated constructor in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\la_LoginAudit\la_LoginAudit_sugar.php on line 43
[15-Jul-2020 16:49:34 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291
[15-Jul-2020 16:49:42 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291
[15-Jul-2020 17:07:43 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291
[15-Jul-2020 17:25:02 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291
[15-Jul-2020 17:47:20 UTC] PHP Notice: Undefined index: additional_step in D:\CRM\SugarCRM\apps\SuiteCRM\htdocs\modules\UpgradeWizard\index.php on line 291

Make sure your SuiteCRM root directory is writeable by the process that your Web server is using to run. It currently does not seem to be.

I finally installed 7.11.15 from scratch to a new db - changed the config file to point to the old db - did a quick repair and it works like a charm

1 Like