Upgrade 2.0.2 to latest nightly build or cvs

profix898

Joined: 2005-11-08
Posts: 135
Posted: Tue, 2006-01-10 22:18

I tried to upgrade my existing multisite G2 installation (2.0.2) to the latest
nightly build 2.1 (01-10-2006).

1. Replaced /gallery2 (codebase) with the one from nightly archive
2. Browsed to the first multisite /files/siteA/gallery/upgrade
I passed the first 3 steps without any errors, but after step 3 (core upgrade:
1.0.0.2 => 1.0.16) I am presented an empty page.

I never reach step 4 (module upgrade). I also tried this procedure with a clean
2.0.2 installation on Win32 and Linux. No success. Step 3 destroys my installation
and no page can be accessed afterwards (neither /upgrade nor gallery itself).

Did I miss anything? Any missing steps? Did anyone encounter the same problem?

Regards Thilo


Gallery version : 2.0.2
PHP version : 5.1.1
Webserver : 2.2.0
Database : 5.0.18
Activated toolkits : ImageMagick, NetPBM, GD2
Operating system : Win32/Linux (problem exists on both platforms)
Browser : Firefox 1.5

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-01-11 01:30

please check your config.php (of the multisite).
does the path in
$gallery->setConfig('data.gallery.base', __HERE__ )
have a traling / (linux/unix) or \ (windows server) ?

are you using mysql? from the version (5.0.18) i guess so.
also, note that mysql 5 has not been tested with g2 yet.

i'd restore and try tomorrows nightly snapshot again.

hmm, is it a windows server?
i guess there might be a bug in the upgrade code.
in config.php, check again the data.gallery.base path. i guess all \ should be \\ , else it won't work.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2006-01-11 01:47

a fix for windows upgrades is in the next nightly snapshot.

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Wed, 2006-01-11 11:25

I tried with last night's build (01-11-2006). Nearly same problem as reported above.
Now core upgrade finishes successful, but the next page is still empty.
To answer your questions:

from my config.php
Win32: $gallery->setConfig('data.gallery.base', 'C:\\Programme\\xampp\\htdocs\\files\\gallery\\g2data');
Linux: $gallery->setConfig('data.gallery.base', '/www/htdocs/files/gallery/g2data');

Yes, your guess was right: I'm using MySQL 5
(I will check the upgarde-procedure with MySQL 4 in the afternoon).

 
profix898

Joined: 2005-11-08
Posts: 135
Posted: Wed, 2006-01-11 16:57

Upgrade from 2.0.2 to 2.1 (01-11-2006) on Linux works perfectly now.
Thanks. But I was unable to perform the same upgrade on Win32 platform.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2006-01-12 01:21

@mysql5:
we tested mysql5 today with the latest nightly snapshot and there were no issues, all unit tests pass.
so g2 and mysql 5 should work together nicely.

@windows
can't test that right now myself. buying a new PSU tomorrow for my windows box and asked another g2 dev to test it on windows.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Fri, 2006-01-13 14:04
valiant wrote:
a fix for windows upgrades is in the next nightly snapshot.

is it already in the public CVS? Tried yesterday evening (12.11./19:00CET) and got the same break you've identified not having performed the step:

valiant wrote:
for some reason, it did not execute a ALTER TABLE drop kex statement (the GalleryAccessMap 1.0 -> 1.1 update). it only executed the 1.1 -> 1.2 update.

Is it better to use a Nightly?

Thanks Lutz

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-13 16:33