Advertisement:

Author Topic: Upgrade to 2.1 stuck at "Updating Your SMF Install!"  (Read 6314 times)

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« on: December 07, 2015, 03:18:09 PM »
Ran the upgrade on a clone of my forum. The database upgrade went well, but I've been sitting at the next step (see attached screenshot) for hours. Doesn't seem to budge, and despite checking the box for debug output, there doesn't seem to be any for this stage.

Any ideas what I should be checking?

Thanks all, looking forward to giving 2.1 a test run. :)


Cheers
Mike

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #1 on: December 07, 2015, 03:19:45 PM »
I should add that I have continued and restarted the upgrade a couple of times with no change.

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,013
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #2 on: December 07, 2015, 03:20:59 PM »
are you using the version off github? did you fix your paths before you uploaded the new files?

looks like your file paths are wrong and you did not fix your paths.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #3 on: December 07, 2015, 03:30:47 PM »
Hi Illori,

Thanks for the quick reply! I did use the github version... for the path, are you talking about the values in Settings.php? I did update those (and a few others such as the theme path setting in the database). However given that this is a clone of my production forums, it's possible I missed something. Is there a path I should be updating?


Thanks!
Mike

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 51,013
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #4 on: December 07, 2015, 03:32:22 PM »
try running What is repair_settings.php? instead of messing around in the database to fix your paths. most of them should be fixed with that file even though it is not updated for SMF 2.1.

i bet many links are still not updated correctly.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #5 on: December 07, 2015, 03:44:01 PM »
Awesome, that's a great tool. I'm fixing some things up with it now and will re-try. Much appreciated.

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #6 on: December 07, 2015, 04:28:30 PM »
Getting there (maybe). I fixed an issue with SSL, as some content was not loading so it "looks" better now but still seems to be hanging at this phase.

Is there a way to check progress here?

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,329
  • Gender: Male
    • Kindred-999 on GitHub
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #7 on: December 07, 2015, 09:07:05 PM »
yeah... I think there ay be some issues with the json procedure at the moment.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,866
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #8 on: December 07, 2015, 09:32:26 PM »
It definitely works if you run it from the shell (php upgrade.php from your forum directory). I'm not sure why it's still sticking there. I'll look into it when I have time.
Michael Eshom
Cincy Space - now open!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #9 on: December 08, 2015, 05:09:42 AM »
Hey Oldiesmann, long time no chat! :)

I didn't know you could run it CLI, I ran it and got the following:

Code: [Select]
Converting data from serialize() to json_encode().
 +++ Fixing the "log_actions" table... done..
 +++ Fixing the "log_online" table...
Failed to unserialize {"USER_AGENT":"Mozilla\/5.0 (Windows NT 10.0; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/47.0.2526.73 Safari\/537.36"}... Skipping
 done.
 +++ Fixing the "log_packages" table... done.
Fixing some settings...
 - Failed to unserialize the 'attachmentUploadDir' setting. Skipping.
 - Failed to unserialize the 'cal_today_event' setting. Skipping.
 - Failed to unserialize the 'displayFields' setting. Skipping. done.
Unserialize of admin_preferences for user 1 failed. Skipping.
Successful.
 *
Upgrade Complete!
Please delete this file as soon as possible for security reasons.

Should I be worried?

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,866
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #10 on: December 08, 2015, 11:30:37 AM »
Are you using the latest files from GitHub?

The first error is because that value is already JSON encoded.

I'd have to see the values for the other settings and for the admin_preferences to see what the issue is there.
Michael Eshom
Cincy Space - now open!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #11 on: December 08, 2015, 03:29:54 PM »
I'm user 1 so I'm not too worried about that, but my admin_preferences field is:

Code: [Select]
a:2:{s:2:"sb";s:8:"internal";s:2:"pv";s:7:"classic";}

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,866
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #12 on: December 09, 2015, 01:09:40 AM »
You can replace that with this:

Code: [Select]
{"sb":"internal","pv":"classic"}
I'd need to see the values for those other settings to determine what to replace those with.
Michael Eshom
Cincy Space - now open!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #13 on: December 09, 2015, 03:29:12 PM »
Here are the current settings:

attachmentUploadDir = {"1":""}

cal_today_event = a:0:{}

displayFields = a:0:{}

I'm not too concerned about any of these myself, but if providing the data helps fix and issue on the upgrade that's cool too. Can/should I update the values for these in my production 2.0 board to prepare for the eventual upgrade?


Thanks Oldiesmann!

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,866
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #14 on: December 10, 2015, 12:19:28 AM »
Not sure what's up with the attachment upload directory - that was already converted but there's no actual directory specified - just an array with an index of 1 and an empty string for that value.  That will break things, but you should be able to fix that from the admin center.

The other two are just empty arrays - you can replace those with [] (two brackets).

When did you download the files? It will help me figure out where to look in terms of fixing things.
Michael Eshom
Cincy Space - now open!

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #15 on: December 10, 2015, 05:06:06 AM »
Thanks! I downloaded from github on the 7th.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,329
  • Gender: Male
    • Kindred-999 on GitHub
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #16 on: December 10, 2015, 07:04:05 AM »
Oldies...   see my report on Github.
https://github.com/SimpleMachines/SMF2.1/issues/3181
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Antes

  • Evil Black Cat
  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,934
  • Gender: Male
  • Black cat rulz!
    • Antes on GitHub
    • merta on LinkedIn
    • @XinYenFon on Twitter
    • WoWSnips
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #17 on: December 10, 2015, 07:09:05 AM »
Did you guys tried those changes and run upgrade again ? https://github.com/SimpleMachines/SMF2.1/pull/3182/files
You can support me directly via Patreon

In Catnip We Trust.
The solution is Catnip!
Vote for Catnip!

Current Project(s): [ WoWSnips ]
Past Project(s): [ ezPortal ] # [ Lunarfall ] # [ RDD (HTML5) ]

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #18 on: December 10, 2015, 07:19:20 AM »
See also https://github.com/SimpleMachines/SMF2.1/issues/3184
I'm fighting with it :P

But Mike Bobbitt is now performing the upgrade through CLI, for which the issues we're now talking about don't apply ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline Mike Bobbitt

  • Full Member
  • ***
  • Posts: 597
    • Army.ca
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #19 on: December 10, 2015, 07:56:39 AM »
I'm happy to re-test the upgrade process to confirm fixes etc. if that would help.

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Upgrade to 2.1 stuck at "Updating Your SMF Install!"
« Reply #20 on: December 10, 2015, 08:09:45 AM »
Thank you. But as of now I'm sailing in unknown water :P so there isn't much to test yet.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair