Jump to content

Database upgrade failed - have to restore shop


Recommended Posts

Hi all,

 

I tried to upgrade my shop and got the follow error:

 

All files upgraded. Now upgrading database...
[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "

 

Anyone have any ideas as to what this error means.

 

I tried to rollback the changes. My back office seems to work ok but my front office I get 404s on all my pages except the main landing page.

 

Has any had these errors?  Seem like I will stuck at 1.6.0.9 with no way to keep up with future upgrades.

 

Any help would be greatly appreciated.

 

Thanks,

 

Art

Link to comment
Share on other sites

  • 2 weeks later...

Did you solve this problem? I am having the same issue, going from 1.6.0 to 1.6.1, which shouldn't be a stretch:

 

All files upgraded. Now upgrading database...
[Ajax / Server Error for action upgradeDb] textStatus: "error " errorThrown:"Internal Server Error " jqXHR: " "
 
and when I try to rollback I get it again:
 
Database restoration file 000027 done. 32 file(s) left...
[Ajax / Server Error for action restoreDb] textStatus: "error " errorThrown:" " jqXHR: " "
 
thus completely destroying my shop. Luckily I made a manual backup.
Link to comment
Share on other sites

  • 5 months later...

I believe I have solved the database upgrade failure problem. I tried to do a database backup through MySQL on my hosting control panel (not through PrestaShop). I did a backup and restore to a new DB and ended up with only 99 of the 252 tables. I tried it a second time with the same results. It was not giving an error message but was possibly timing out. I increased the timeouts (and a few other limits) in the ini files and the problem went away - and the 1-click upgrade worked flawlessly. 


 


This is overkill, but one of these things fixed the problem.


 


First, there are three ini files, so to be safe I made the same changes in all three files. Those files are:


 


php.ini


php5.ini


.user.ini


 


All are in the HTML root (not the prestashop folder). You likely only need to do this in one place, but I did not want to keep experimenting and don't have the knowledge to know which one to use, so I used all three and made them match.  :)  These are the lines I either updated or added:


 


upload_max_filesize = 640M

post_max_size = 640M

max_file_uploads = 200

memory_limit = 320M

max_input_vars = 3000

max_input_time = 600

max_execution_time = 600

set_time_limit = 600

 


It was likely one of the time limit settings, but I increased the size limits as well so I wouldn't have to keep experimenting. Feel free to chime in if any of these are a bad idea. Note that I previously had the timeouts at 300 (5 minutes) and changed them to 600 (10 minutes).

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...