[SOLVED] CVS upgrade gone wrong

Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Fri, 2005-05-27 09:07

Hi,
I just tried an upgrade from CVS, and on the Core Upgrade step (I'm upgrading from 9.18 to 9.20), I get the following messages, sprayed (not so) neatly about the page :

Notice: Use of undefined constant GALLERY_CONFIG_DIR - assumed 'GALLERY_CONFIG_DIR' in /blahblah/gallery2/upgrade/steps/UpgradeCoreModuleStep.class on line 67
Notice: Use of undefined constant GALLERY_CONFIG_DIR - assumed 'GALLERY_CONFIG_DIR' in /blahblah/gallery2/upgrade/templates/UpgradeCoreModuleRequest.html on line 40
Unable to write to config.php in your GALLERY_CONFIG_DIR directory. Please change its permissions. You can do chmod 666 config.php to fix this.

I checked my config.php and found that it was still there with the usual permissions that worked until now ( 644). I chmoded it to 666 as advised, to no effect. It just seems that the config path constant is not being defined as it should. Any idea ?

Additional info :
On step 2, I had a warning about 58 modified files, but also 2 missing files, but since I'm running on CVS, dunno if it is normal :
# install/multiconfig.php-template
# install/templates/WelcomeMultiSite.html

Fred

----

Gallery URL (optional): http://frederic.degand.net/gallery2/
Gallery version = 2.0-beta-3+ core 0.9.18
PHP version = 4.3.10-13 cgi-fcgi
Serveur Web = Apache/1.3.33 (Debian GNU/Linux) mod_jk/1.2.5 PHP/4.3.10-13 mod_ssl/2.8.22 OpenSSL/0.9.7d
Base de données = mysql 4.0.21-log
Boîtes à outils = ArchiveUpload, Exif, Gd, ImageMagick, NetPBM, Thumbnail, Ffmpeg
Système d'exploitation = Linux Oopa 2.4.23-0.rc5.2mdk #1 Fri Nov 28 14:50:43 EST 2003 i686
Navigateur Web = Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.7.icon_cool.gif Gecko/20050511 Firefox/1.0.4

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-27 09:19

please test the upgrade with a nightly snapshot, i.e. http://galleryupdates.jpmullan.com/G2/current.gallery2.tar.gz

reason: cvs versions don't have updated MANIFEST files and i'd like to make sure you have zero modified / missing files.

plus, are you using a multisite G2? if so, you have to read the instructions in README.html, the multisite upgrade includes manual steps (this time).

 
Tonton_Fred

Joined: 2005-04-17
Posts: 28
Posted: Fri, 2005-05-27 09:43

Alright, that worked, thanks !

* Gallery integrity was ok this time, since the manifest was updated
* the Core Upgrade showed 9.21 instead of 9.20
* I was advised after the Core Upgrade to make sure that config.php was not 'globally writeable', which I assumed meant chmodding it to 644.

And to answer your question, I am not running a multisite gallery. So I can only guess something went wrong with the CVS update. I just ran another one after putting in the nightly build, and it worked ok. I note that I get a few "move away (some file) ... it is in the way" messages, don't know if it's ok :

cvs -z3 update -Pd
? .htaccess
? MANIFEST
? README.html
? bootstrap.inc
? config.php
? embed.php
? index.php
? init.inc
? main.php
? install/login.txt
cvs update: Updating .
cvs update: move away `./MANIFEST'; it is in the way
C MANIFEST
cvs update: move away `./README.html'; it is in the way
C README.html
cvs update: move away `./bootstrap.inc'; it is in the way
C bootstrap.inc
cvs update: move away `./embed.php'; it is in the way
C embed.php
cvs update: move away `./index.php'; it is in the way
C index.php
cvs update: move away `./init.inc'; it is in the way
C init.inc
cvs update: move away `./main.php'; it is in the way
C main.php
cvs update: Updating docs
cvs update: Updating images
cvs update: Updating install
.....

Fred

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-05-27 09:47

never seen this error before, but google knows the answer, as usual:

http://www.google.com/search?hl=en&q=cvs+move+away++it+is+in+the+way&btnG=Google+Search

marking the topic as solved.