Trying To Upgrade From 4.3.1 To 4.3.2

I am trying to update my version of cs cart from 4.3.1 to 4.3.2 then up to 4.3.3

But when i am trying to update from 4.3.1 to 4.3.2 it wont finish. It stops on "zipping backup files" and keeps processing for ages but it wont finish.

I see that the system takes a backup so its apparent that something is happening.

Do anyone have any idea why this happens? I am getting pretty tierd of the update issues on cs-cart.

Check your Apache "Timeout" value and make sure it's at least 300. Also, it could be a Phar error. If you refresh the page, do you get an error notification that Phar failed to create the backup archive?

Check your Apache "Timeout" value and make sure it's at least 300. Also, it could be a Phar error. If you refresh the page, do you get an error notification that Phar failed to create the backup archive?

No, it just goes back to the update page like it was before i press update.

Not sure how i check my apache timeout.. Where can i find this?

If it redirects then apache timeout is not the problem. But it’s in whm apache configuration or you can see it in httpd.conf if you have root access to your server.

I have access to root directory but cant find the httpd.conf
Is there no other way of updating this mess? Like a zipped folder with files i can just update through ftp client?

httpd.conf is usually (but system dependent) located at:

/usr/local/Apache/conf/httpd.conf

And on some older systems (or newer with a link) it is in

/etc/httpd.conf

But as I said, if it redirects back to the upgrade center (or anywhere else) then the value of Timeout is NOT your issue.

Are there any errors in your error_log file for your site?

Feel free to PM me if you still need help with the upgrade

Hello,

Yes I am having the same issue.

Attempting to upgrade from 4.3.1 to 4.3.2

No errors noted, and processing bar never progressing. Checking the site, and yes the new core upgrade file is downloaded but beyond this no files are being updated or changed. The error log is showing no fresh errors.

Do you have a var/upgrade/upgrade.log or var/upgrade/core.log files?

What step are you failing on?

If you provide us with the temporary FTP access, we can check the issue. Thanks

If you provide us with the temporary FTP access, we can check the issue. Thanks

eComLabs. Having the same type of issue upgrading from 4.3.3.SP1 to - 4.3.4

. It starts then stops. I looked at my logs "core_log.txt" and seems that it is stopping at the database backup. I think this is somehow a timeout issue. My database is only 9mb. If I do a regular backup it works fine.

I sent you a PM with ftp access.

Its because 4.3.3 uses phar for archiving. Manually back up your site and db, then comment out the backup code.

Open the app\Tygh\UpgradeCenter\App.php file and replace:

$backup_file = DataKeeper::backup(array(
                'pack_name' => $backup_filename,
                'compress' => 'zip',
                'set_comet_steps' => false,
                'move_progress' => false,
            ));

with

$backup_file = DataKeeper::backup(array(
                'pack_name' => $backup_filename,
                'compress' => false,
                'set_comet_steps' => false,
                'move_progress' => false,
            ));

For upgrade from 4.3.3.SP1 to 4.3.4 that was hanging on compress backup

'compress' => false,

That code replacement worked perfectly.

Thank you eComLabs.

What bothers me is when these upgrades fail I have to contact support and it just cost me to do an upgrade to an UNMODIFIED STORE. This is not the first time I have had this problem. Last time I had to completely start from scratch because the upgrade would not work. How about fix your upgrade process and not make me pay for it. Or at least add to knowledge base on what to do when it does fail.

This was the message I got after they upgraded my store

"Thank you for your message.

I disabled the backup of some of the files and successfully upgraded the installation. Please check the result."

Open the app\Tygh\UpgradeCenter\App.php file and replace:

$backup_file = DataKeeper::backup(array(
                'pack_name' => $backup_filename,
                'compress' => 'zip',
                'set_comet_steps' => false,
                'move_progress' => false,
            ));

with

$backup_file = DataKeeper::backup(array(
                'pack_name' => $backup_filename,
                'compress' => false,
                'set_comet_steps' => false,
                'move_progress' => false,
            ));

Worked like a charm on one of our small sites that still uses CS.

Worked like a charm on one of our small sites that still uses CS.

I am glad to hear that! Guys, do not forget to create backups via default backup/restore feature before the upgrade

Another upgrade bug? :wink: does cs cart know?