Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: krussell on February 10, 2013, 03:52:36 PM

Title: [SOLVED] Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 10, 2013, 03:52:36 PM
As title, trying to apply major upgrade package. It stalls at the following point:
Executing database changes
Please be patient - this may take some time on large forums. The time elapsed increments from the server to show progress is being made!
Executing upgrade script 1 of 2.
Executing: "Updating and creating indexes..." (1 of 19 - of this script)

!!Error!
Server has not responded for 30 seconds. It may be worth waiting a little longer or otherwise please click here to try this step again


I've tried leaving it running for hours, have tried restarting the upgrade, no joy.
I have searched for advice on similar problems, and tried disabling Javascript, as recommended in another post. This resulted in a duplicate key error. Tried deleting the key for the log errors table as a recommended fix for the key problem, but the process just stalls again.

Can anyone offer any advice, please?
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: Looking on February 10, 2013, 04:09:24 PM
You are trying to do this on one of those cheap shared hosts?
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 10, 2013, 04:17:22 PM
Eh? No, I am trying to upgrade a copy of my production forum on my local PC.
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 11, 2013, 09:12:45 PM
Just for information, the error I get if I try running with JavaScript disabled is "Duplicate key name 'IP'"
Title: Re: Also stuck in SMF Upgrade - 1.1.18 -> 2
Post by: krussell on February 12, 2013, 07:14:56 PM
Apologies - just noticed the mistake in my title - should read 1.1.18, not 1.1.8.

Anyway, I used webinstall.php to reinstall 1.1.18 on my test copy, ran repair_settings.php and tried re-running webinstall.php for 2.0.4. The upgrade process fails at the same point described in my first post. According to the upgrade script, I have now been running the process for 1344 mins, 55 seconds, as a result of the various different attempts I have made.

I don't have any idea how to resolve this problem. As an alternative, is there any practical way of exporting my existing data and importing it into a fresh install of 2.0.4, or are the database structures sufficiently different to make this a difficult task?
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: kat on February 13, 2013, 06:23:33 AM
You might want to try editing your php.ini file.

"max_execution_time = 60" or however long you need.
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 13, 2013, 03:58:22 PM
Thanks, I already had it at 300. Just tried whacking it up to 1000 for the hell of it, and it doesn't appear to make any difference.
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: kat on February 13, 2013, 04:02:13 PM
upload_max_filesize ? Is that set high enough?
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 13, 2013, 06:27:32 PM
That's at 500M, but I am upgrading a local copy, so I don't think file upload size is relevant anyway? The upgrade package is in place, it just won't advance beyond the first stage, as per my first post.
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: kat on February 14, 2013, 05:46:54 AM
I'm fresh out of ideas, with this. :(

My best thought it for you to look at these:

http://www.google.co.uk/search?client=opera&q=Server+has+not+responded+for+30+seconds.+It+may+be+worth+waiting+a+little+longer+or+otherwise+please+click+here+to+try+this+step+again&sourceid=opera&ie=utf-8&oe=utf-8&channel=suggest
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: akc42 on February 17, 2013, 10:22:31 AM
I had the same problems as you.  I spent some time looking at the problem and think I uncovered a bug.

Take a look at this post

http://www.simplemachines.org/community/index.php?topic=497135.0

I describe what I think is the issue, and then provide some code updates to fix it.
Title: Re: Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 18, 2013, 09:31:40 PM
Superb akc42; modified upgrade.php as per your instructions, and successfully upgrade the local copy of my forum in under 10 minutes!
Thank you very much indeed - I spent a lot of time looking for a solution and was getting nowhere.
Title: Re: [SOLVED] Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: kat on February 19, 2013, 06:15:32 AM
WoOt!
Title: Re: [SOLVED] Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: krussell on February 19, 2013, 08:25:50 AM
...and also thanks for the other responses, of course.
Title: Re: [SOLVED] Also stuck in SMF Upgrade - 1.1.8 -> 2
Post by: kat on February 19, 2013, 08:30:43 AM
I was about as much help as a chocolate fireguard. ;)

But, we got there, in the end. That's all that matters. :)