News:

Wondering if this will always be free?  See why free is better.

Main Menu

BUG: Upgrade.php

Started by sledgeweb, September 23, 2006, 06:12:47 PM

Previous topic - Next topic

sledgeweb

I'm trying to update from RC2 to RC3, using the update package. This upgrade.php script has some major problems.

It froze at the beggining, when there are two bars... "UPDATING INDEXES" or something like that. I searched here for some fixes, but didn't find anything relevant - something about changing the maxscript varaible in the URL or something, but I don't have that variable in the URL.

So, I tried pressing CONTINUE over and over again. What happens is, in firefox, you hit CONTINUE, and then after about 30 seconds, a FireFox dialogue box pops open saying YOU HAVE CHOSEN TO OPEN UPGRADE.PHP. WHAT SHOULD FIREFOX DO WITH THIS FILE? The default is OPEN WITH DREAMWEAVER. It's doing this because the page didn't load properly or something. In IE, it just gives a server error page.

So, I kept closing the dialogue boxes, and pressing CONTINUE, and after pressing that button about 50 times, it finally went through. Now it is about 30% done, stuck on UPDATING CALENDAR, and is doing the same thing. I guess I'll try to keep pressing CONTINUE and CLOSING the dialogue boxes... but, I think we really need to have a better way to upgrade.

I'm running on a dedicated server, so I don't think it is a problem in that regard (shared hosting or something). I suppose all of this is how it is supposed to work though, according to the note on the page, "Don't worry, nothing's wrong".

gio2vanna

Same problem step=2;maint=1;substep=40;s=1

sledgeweb

Yeah, the second place I got stuck was:
step=2;maint=1;substep=38;s=1

Now it is stuck at
step=2;maint=1;substep=40;s=1

I can't tell you how frustrating this has been. I've been doing this routine for the last 3 or 4 hours now.

kegobeer

How large is your forum?  If you don't press the continue button, does your forum continue the upgrade process?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

gio2vanna

Quote from: kegobeer on September 23, 2006, 08:43:25 PM
How large is your forum?  If you don't press the continue button, does your forum continue the upgrade process?
Nothing moves...
If I press the continue button (I have to) a firefox pop opens , aka server error.
Here is a screenshot of my current state: hxxp:img206.imageshack.us/my.php?image=messageiz6.jpg [nonactive]

Edit: The forum is quite large

kegobeer

"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

sledgeweb

Database backup is 55MB if that gives you any indication of the forum size. Why does this matter though? Should you not be able to upgrade your forum if it is over a certain size?

kegobeer

How long did you wait before pressing the continue button?  Very large forums can take a long time to update.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

sledgeweb

Well, one thing I don't understand is WHEN to press continue. I assume as soon as the hourglass goes away, the page isn't doing anything anymore, so that is when I hit continue. That was at the beginning.

Now, when I press continue, as described, I get the firefox popup after about 30 seconds - close that, then hit continue again, repeat.

Is there another script that is running in the background that has to finish before we hit continue?

kegobeer

Even if nothing seems to be happening, you do not have to press any buttons.  When the server finishes the current task, the page will refresh.

How long did you wait?  A few seconds?  A few minutes?
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

sledgeweb

The page says to hit continue, so, when the page seems like it isn't loading, I hit continue. At most a few minutes. Now, the OPEN FILE dialogue comes up about every 30 seconds, so I close it and hit continue.

The whole process and instructions are very unclear and ambiguous. The CONTINUE button is always there, so how do you know when to hit it, and when not to hit it? I assume you hit it when the page is no longer loading/working/processing.

So, when it says updating calendar or whatever, what is actually doing the updating? Is it the upgrade.php script, or has it launched some other script / server command, that processes independently of upgrade.php?

sledgeweb

Uh... thanks for moving the thread, but this is a BUG REPORT- the title is a hint. I don't think there is anything anyone can do to help me install it at this point - it's a problem that needs to be fixed in future releases of SMF. My understanding is that BUG REPORTS belong in the CODING board.

kegobeer

I performed an upgrade today and didn't suffer from any of these problems.  There haven't been any other reports except for these two.  If a developer feels this is an actual bug report, it will be moved and added to the tracker.
"The truth of the matter is that you always know the right thing to do. The hard part is doing it." - Norman Schwarzkopf
Posting and you (Click "WATCH THIS MOVIE")

sledgeweb

Actually,there have been other reports: http://www.simplemachines.org/community/index.php?topic=63627.0

So, now I'm screwed... my site has all day said "Don't worry, we will be back shortly with an updated forum. It will only be a minute ;)." Nice... "it will only be minute"... so far, 480 minutes and counting...

So, is there no way for a "big" forum to update? Should I just put all my RC2 files back and restore my database and just leave the PHP security hole there? I don't understand the solution here...

"Upgrade.php isn't working"

"You have a big site?"

"Yes"

"Oh. I've never had any problems. If the developers think it's a problem at somepoint they'll fix it, but I'm moving your post to a thread where it is less likely to be seen by developers."

mytreo

Anyone ever find a solution to this?

I'm having the exact same problem on substep 151, have tried all the supposed solutions mentioned here and in linked threads but nothing changes - still keeps trying to download upgrade.php and won't budge past the step. Forum size is ~ 200MB.
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

SleePy

change substep from 151 to 152 and see if it will continue.

Can you give a more detailed url that you are at? Would help to know where you are in the upgrade
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

struikrover

I'm upgrading to 1.1.3, and when the db backup finishes , the page is stuck at:
Updating and creating indexes...
    Updating indexes on "messages"...

Tried a lot, but nothing seems to work....
HELP plz!

mytreo

Quote from: SleePy on August 07, 2007, 01:02:47 PM
change substep from 151 to 152 and see if it will continue.

Can you give a more detailed url that you are at? Would help to know where you are in the upgrade

The full url was

upgrade.php?step=2;maint=1;substep=151;m=276480

In the end I managed to successfully complete the upgrade. I had to keep changing the substep, but once it got to 158 it then continued properly and finished the upgrade.
Treo forum - Powered by SMF, of course
Treo news - powered by MovableType and integrated with SMF
Treo downloads - hacked from phpNuke and integrated with SMF
Treo knowledge base - powered by Wikka and integrated with SMF
Treo 650 | Treo 700w | Treo 700p

SleePy

struikrover,

The messages table is big. It may take the upgrade script time to complete the upgrades across the messages table.
It should be auto-refreshing and continue to update the messages table.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Advertisement: