Author Topic: SOLVED: upgrade 1.3 to 1.3.1. not available  (Read 4422 times)

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
SOLVED: upgrade 1.3 to 1.3.1. not available
« on: March 27, 2009, 03:29:57 pm »
when using the upgrade function from the administration controls, it says there is no upgrade available - but i'm on 1.3 and 1.3.1. has just been published?
« Last Edit: March 29, 2009, 06:34:01 pm by max »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #1 on: March 27, 2009, 11:04:42 pm »
Ok, now it is available ;D

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #2 on: March 28, 2009, 05:01:49 am »
well, almost... when I try to run the automatic upgrade, i get

>You already have upgraded to the latest possible version.

  >  * There is no upgrade path from version 1.3 to 1.3.1.


... and then when I close the error message theres an update message tells me "new version available"...!

catch-22!

I'll go for the manual update next...


oxydum

  • Full Member
  • ***
  • Posts: 156
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #3 on: March 28, 2009, 05:24:48 am »
I got the problem too :

Quote
Fatal error: Maximum execution time of 60 seconds exceeded in /opengoo/public/upgrade/auto.php on line 17

 ::)
Propulsé par OpenGoo 1.5.3 sur Xampp Windows XP SP3

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #4 on: March 29, 2009, 02:39:26 pm »
Hi oxydum,

Try adding this line at the beginning of file 'public/upgrade/auto.php', after the '<?php':

Code: [Select]
set_time_limit(0);

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #5 on: March 29, 2009, 03:16:21 pm »
max,

Most likely the problem in your case was that the webserver didn't have write access for all files and folders inside OpenGoo. This is needed for automatic upgrade. What the automatic upgrade does is download the OpenGoo zip file, extract it into your OpenGoo folder and then redirect to the upgrade process. If the webserver couldn't successfully extract the zip files then the upgrade process won't run correctly.

We need better error feedback for this feature.

max

  • Jr. Member
  • **
  • Posts: 87
    • View Profile
Re: upgrade 1.3 to 1.3.1. not available
« Reply #6 on: March 29, 2009, 06:33:34 pm »
hi ignacio,

ok, then a little bit of feedback;

just as you'd expected, most of the files in var/www/opengoo were owned by root, not by www-data (I'm running ubuntu server).
so a little
sudo chown -R www-data:www-data *
inside the opengoo dir did the trick.

being a newbie on my own testing server I am only a little unsure if this couldn't pose a security risk. Wouldt this way anyone with an upload permission be able to insert executable code somewhere? Initially I had only set those directories to be owned by www-data which are mentioned in the installer, e.g. /cache, /config etc...

that aside I can say that this is surely one of the easiest updaters I've ever seen on a web site.

Wording could be improved: after the upgrade it says:

Quote
You already have upgraded to the latest possible version.

    * Config file found and loaded.
    * File '/config/config.php' exists and is writable
    * Folder '/config' exists and is writable
    * Folder '/public/files' exists and is writable
    * Folder '/cache' exists and is writable
    * Folder '/tmp' exists and is writable
    * Folder '/upload' exists and is writable
    * Extension 'mysql' is loaded
    * Extension 'gd' is loaded
    * Extension 'simplexml' is loaded
    * Upgrade script has connected to the database.
    * Test query has been executed. Its safe to proceed with database migration.
    * Upgrade script has connected to the database.
    * Test query has been executed. Its safe to proceed with database migration.
    *
    * Database schema transformations executed (total queries: 5)
    * OpenGoo has been upgraded. You are now running OpenGoo 1.3.1 Enjoy!

Well, obviously, "You have already upgraded" is irritating when after that you get the info about the upgrade.... the upgrade itself apparently went all right.

by the way, the mail reading still didn't work as expected, but I'll keep that in this thread: http://forums.opengoo.org/index.php?topic=1287.0