Loading


Advertisement:

Author Topic: Upgrade problems? post here  (Read 14913 times)

Aficionado

  • Hero Member
  • *****
  • Posts: 4478
  • Hardliner
Re: Help! Site is down!
« Reply #30 on: August 05, 2014, 03:58:14 pm »
I have OSCLass set to automatically update to newer versions.  I woke up today to find that my site is down for maintenance.  I have an email saying:

We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed

How do I fix this please!

Disable Maintenance, Disable Automatic Updates.

See if everything is ok.

If you want, select Admin/Tools/Upgrade, for 3.4

Heartcore

  • Newbie
  • *
  • Posts: 38
Re: Help! Site is down!
« Reply #31 on: August 05, 2014, 04:05:43 pm »
I have OSCLass set to automatically update to newer versions.  I woke up today to find that my site is down for maintenance.  I have an email saying:

We failed trying to upgrade your site to Osclass 3.4.0. Heres is the error message: Unzip failed

How do I fix this please!

Disable Maintenance, Disable Automatic Updates.

See if everything is ok.

If you want, select Admin/Tools/Upgrade, for 3.4


how to disable automatic update?

Aficionado

  • Hero Member
  • *****
  • Posts: 4478
  • Hardliner
Re: Help! Site is down!
« Reply #32 on: August 05, 2014, 04:07:40 pm »


how to disable automatic update?

Settings, General.


dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1651
  • osclass.work
Re: Stuck in Maintenance Mode
« Reply #33 on: August 05, 2014, 04:22:22 pm »
It is tied to cron job settings, few months ago I brought that issue and Conejo said it will be addressed. In max a day or 7 days that notification should dissaperar.

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4555
Re: Stuck in Maintenance Mode
« Reply #34 on: August 05, 2014, 04:25:00 pm »
Yes, SQL statement from struct.sql file.

Thanks.

Any ideas why i still see the Update available 3.4 on my top of my admin dashboard ? It should be like that ?


Automatic update use the SAME function as user-started update, so if one fails, the other should too.
It could fail for several reasons, most common mistake is that files have wrong permissions (are not writable).

3.3.x versions are missing a folder (oc-content/download/oc-temp), this doesn't happen on 3.2.x or previous version. To fix that, the update process is a bit different this time, and automatic update will not work (manual or launched from the admin will do).

Additionally, now, in 3.4.x the maintenance mode will be disable if the update failed AND we didn't replace a file or the unzip failed. Maintenance mode will only be enable if we replace "some" files or there's some big error and osclass wasn't able to fix it. This will only happen from 3.4 to future versions (as we can not fix already deployed versions!)


the version available will be fixed in future releases, but it should disappear in a 24h period, when the cron job re-check the version

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1651
  • osclass.work
Re: Stuck in Maintenance Mode
« Reply #35 on: August 05, 2014, 04:26:40 pm »
here is the upgrade fix plugin for <333

http://market.osclass.org/plugins/3-3-x-upgrade-fix_97

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4555
Re: Stuck in Maintenance Mode
« Reply #36 on: August 05, 2014, 04:28:37 pm »
here is the upgrade fix plugin for <333

http://market.osclass.org/plugins/3-3-x-upgrade-fix_97

I strongly suggest to NOT use that plugin directly and proceed with the upgrade at the admin as usual

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1651
  • osclass.work
Re: Stuck in Maintenance Mode
« Reply #37 on: August 05, 2014, 04:31:22 pm »
Hi Conejo,

I thought that plugin was recently added or is it not? Never seen it before, honestly. Also, haven't tried it personally.

Regarding notification after update, maybe cron can be triggered after successful upgrade process, so the users don't get confused.

Regards

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4555
Re: Stuck in Maintenance Mode
« Reply #38 on: August 05, 2014, 04:37:33 pm »
Hi Conejo,

I thought that plugin was recently added or is it not? Never seen it before, honestly. Also, haven't tried it personally.

Regarding notification after update, maybe cron can be triggered after successful upgrade process, so the users don't get confused.

Regards

Yes, we realize the problem with the update notification when it was too late to fix it and will be addressed in 3.4.1.

The plugin was added recently, but it's not intended to people to use it like that.
As I said, versions 3.3.x have a missing folder (oc-temp), for us there's no way to create a folder in an existing installation of osclass. So what we did, was to trick the update process to download said plugin, install it (triggering a hook that will create the folder and update osclass) and then uninstalling the plugin. You could do the process manually, download, install and uninstall it, but it could cause some confussion since uninstalling it will also remove the plugin itself and there's no nice message to tell the admin that the upgrade was completed or failed.

RBlack963

  • Jr. Member
  • **
  • Posts: 77
Re: Help! Site is down!
« Reply #39 on: August 05, 2014, 04:53:39 pm »
Disable Maintenance, Disable Automatic Updates.

See if everything is ok.

If you want, select Admin/Tools/Upgrade, for 3.4

Ok... I did all that.  Turning off Maintenance mode made the site come back but it still won't upgrade: Unzip Failed.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 1651
  • osclass.work
Re: Stuck in Maintenance Mode
« Reply #40 on: August 05, 2014, 04:54:52 pm »
Ah, now it makes it more clear what is it for. I think you should copy-paste the above explanation into market, since I thought it was a 'mandatory' add-on for anyone willing to do a proper upgrade.

Regards

kweku

  • Sr. Member
  • ****
  • Posts: 291
  • my Internet + MAC = direction. speak less.
Re: We failed trying to upgrade your site to Osclass 3.4.0 ???? new message
« Reply #41 on: August 05, 2014, 05:08:13 pm »
Well, I am on Osclass 3.3.2 

But, I have set them to enable upgrade so, i just saw the information in my email that. It couldn't. 

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 4555
Re: Help! Site is down!
« Reply #42 on: August 05, 2014, 05:35:16 pm »
Disable Maintenance, Disable Automatic Updates.

See if everything is ok.

If you want, select Admin/Tools/Upgrade, for 3.4

Ok... I did all that.  Turning off Maintenance mode made the site come back but it still won't upgrade: Unzip Failed.

It should work, if not, please, upgrade manually http://doc.osclass.org/Updating_Osclass

RBlack963

  • Jr. Member
  • **
  • Posts: 77
Re: Help! Site is down!
« Reply #43 on: August 05, 2014, 05:46:51 pm »
Quote
It should work, if not, please, upgrade manually http://doc.osclass.org/Updating_Osclass

It doesn't.

I have to say... this is really, REALLY not good.  This left my site suspended in a maintenance mode so it was completely unusable by anyone.

If you're going to have auto upgrades you should at least check and make sure it is going to work before throwing it out there.

I've turned off all future auto upgrades.

Aficionado

  • Hero Member
  • *****
  • Posts: 4478
  • Hardliner
Re: Stuck in Maintenance Mode
« Reply #44 on: August 05, 2014, 06:08:49 pm »


Automatic update use the SAME function as user-started update, so if one fails, the other should too.
It could fail for several reasons, most common mistake is that files have wrong permissions (are not writable).



Well not for me. The "automatic" failed, but the Tools/Upgrade worked well.

Or it didn't ? I wonder.

« Last Edit: August 05, 2014, 06:47:08 pm by Aficionado »