Upgrade loop

stukoch

Joined: 2006-01-20
Posts: 33
Posted: Fri, 2006-01-27 03:41

I am stuck in an upgrade loop. I just ran # cvs update -Pd to upgrade my installation of Gallery2. I am now stuck in an upgrade loop. Every time I reach step 6 in the upgrade process it kicks me back to the beginning. I ran in debug mode and received the following output. It's all greek to me, but I would really appreciate some help.

Debug Redirect

Not automatically redirecting you to the next page because we're in debug mode
Continue to the next page
file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../config.php)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)

(mysql): 
                SELECT
                  g2_FactoryMap.g_classType,
                  g2_FactoryMap.g_className,
                  g2_FactoryMap.g_implId,
                  g2_FactoryMap.g_implPath,
                  g2_FactoryMap.g_hints,
                  g2_FactoryMap.g_implModuleId
                FROM
                  g2_FactoryMap
                ORDER BY
                  g2_FactoryMap.g_orderWeight ASC
                   


file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0)
getParameter permissions.directory for core plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'core'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/core)
file_exists(/Users/stu/Pictures/g2data/cache/module)
file_exists(/Users/stu/Pictures/g2data/cache)
is_dir(/Users/stu/Pictures/g2data/cache)
mkdir(/Users/stu/Pictures/g2data/cache/module, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core/0/0, 755)
getParameter permissions.file for core plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'core'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0)
is_dir(/Users/stu/Pictures/g2data/cache/module/core/0/0)
rename(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc9w1b88,
/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)
getParameter permissions.directory for core plugin
rename(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc5gY05p,
/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all)
file_exists(/Users/stu/Pictures/g2data/cache/module)
is_dir(/Users/stu/Pictures/g2data/cache/module)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all/0/0, 755)
rename(/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.incVDquLl,
/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class)
getParameter shortUrls for rewrite plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'rewrite'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite)
file_exists(/Users/stu/Pictures/g2data/cache/module)
is_dir(/Users/stu/Pictures/g2data/cache/module)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0, 755)
rename(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.inc8dTSgH,
/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.inc)
file_exists(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
getParameter session.lifetime for core plugin
getParameter session.inactivityTimeout for core plugin
stat(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
file_exists(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
controller , view 
Loading plugin core
Class not defined, trying to include it.
file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
core plugin successfully instantiated
file_exists(/Users/stu/Pictures/g2data/versions.dat)
file(/Users/stu/Pictures/g2data/versions.dat, )
Redirect to the upgrade wizard, core module version is out of date
getParameter modrewrite.galleryLocation for rewrite plugin
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-27 06:17

> Redirect to the upgrade wizard, core module version is out of date

please run cvs update -dPC which will overwrite all locally changed files too.

also, delete your db cache with yourgallery.com/gallery2/lib/support/ -> cache

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Fri, 2006-01-27 15:16

I get this error when I try cvs update -dPC

update: invalid option -- C

OK, so I've researched the issue and it appears that the version of CVS that comes with OS X Server 10.3.9 does not support the cvs update -C command. I suppose I could try to update cvs on my server, but that appears to be a daunting task.

Are there any alternatives to the recommended method of 'cvs update -dPC" ?

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sat, 2006-01-28 00:25

OK, so I went ahead and compiled the latest stable version of CVS on my server and installed.

I now get the following error when I run cvs update -dPC

can't create temporary directory /tmp/cvs-serv31710
Too many links

Any thoughts? Is this a problem with my CVS installation or Gallery?

BTW, cvs update -Pd works fine with the new CVS, but I'm still stuck in the loop.

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sat, 2006-01-28 01:00

I feel like I'm talking to myself here...

I was able to get csv update -dPC to work. This has not stopped the endless update loop.

When I try to delete my db cache I get this error:

Security Check
You are attempting to access a secure section of this Gallery installation. You can't proceed until you pass the security check.
You must create a config.php file in the Gallery directory before you can continue configuring the application. Use the installer to create one.

I'm running multisite gallery BTW. Here is the output from the debug mode now.

file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../config.php)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)

(mysql): 
                SELECT
                  g2_FactoryMap.g_classType,
                  g2_FactoryMap.g_className,
                  g2_FactoryMap.g_implId,
                  g2_FactoryMap.g_implPath,
                  g2_FactoryMap.g_hints,
                  g2_FactoryMap.g_implModuleId
                FROM
                  g2_FactoryMap
                ORDER BY
                  g2_FactoryMap.g_orderWeight ASC
                   


file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0)
getParameter permissions.directory for core plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'core'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/core)
file_exists(/Users/stu/Pictures/g2data/cache/module)
file_exists(/Users/stu/Pictures/g2data/cache)
is_dir(/Users/stu/Pictures/g2data/cache)
mkdir(/Users/stu/Pictures/g2data/cache/module, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/core/0/0, 755)
getParameter permissions.file for core plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'core'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/core/0/0)
is_dir(/Users/stu/Pictures/g2data/cache/module/core/0/0)
rename(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.incGZQngF,
/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)
getParameter permissions.directory for core plugin
rename(/Users/stu/Pictures/g2data/cache/module/core/0/0/0.incBCDB6g,
/Users/stu/Pictures/g2data/cache/module/core/0/0/0.inc)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/_all)
file_exists(/Users/stu/Pictures/g2data/cache/module)
is_dir(/Users/stu/Pictures/g2data/cache/module)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/_all/0/0, 755)
rename(/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.incQWLVGQ,
/Users/stu/Pictures/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc)
file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class)
getParameter shortUrls for rewrite plugin
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.inc)

(mysql): 
	  SELECT
	    g2_PluginParameterMap.g_itemId,
	    g2_PluginParameterMap.g_parameterName,
	    g2_PluginParameterMap.g_parameterValue
	  FROM
	    g2_PluginParameterMap
	  WHERE
	    g2_PluginParameterMap.g_pluginType = 'module'
	    AND
	    g2_PluginParameterMap.g_pluginId = 'rewrite'
	    AND
	    g2_PluginParameterMap.g_itemId = 0   


file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite/0)
file_exists(/Users/stu/Pictures/g2data/cache/module/rewrite)
file_exists(/Users/stu/Pictures/g2data/cache/module)
is_dir(/Users/stu/Pictures/g2data/cache/module)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite/0, 755)
mkdir(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0, 755)
rename(/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.incsFINO2,
/Users/stu/Pictures/g2data/cache/module/rewrite/0/0/0.inc)
file_exists(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
getParameter session.lifetime for core plugin
getParameter session.inactivityTimeout for core plugin
stat(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
file_exists(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a)
controller , view 
Loading plugin core
Class not defined, trying to include it.
file_exists(/Library/WebServer/Documents/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
core plugin successfully instantiated
file_exists(/Users/stu/Pictures/g2data/versions.dat)
file(/Users/stu/Pictures/g2data/versions.dat, )
Redirect to the upgrade wizard, core module version is out of date
getParameter modrewrite.galleryLocation for rewrite plugin
touch(/Users/stu/Pictures/g2data/sessions/b9ad8c8fc73c5764b4ec8a8a27cc5b7a,
, )

-Stuart

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-01-28 14:50

please check
modules/core/module.inc for the g2 core module version, what is it?

then check g2data/versions.dat
what's in there?

and finally your database table g2_PluginParameterMap for row
pluginId = 'core', parameterName = '_version'

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sat, 2006-01-28 17:11

modules/core/module.inc

 * @version $Revision: 1.243 $ $Date: 2006/01/26 05:10:08 $
 * @package GalleryCore

g2data/versions.dat

1.0.19
2.1.0-

g2_PluginParameterMap for row
pluginId = 'core', parameterName = '_version'
1.0.19

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2006-01-28 17:49

please check again your module.inc, i'm asking for the line that is of the form

function CoreModule() {
global $gallery;

$this->setId('core');
$this->setName($gallery->i18n('Core'));
$this->setGalleryVersion('2.1.0-');

/* Don't forget to update CoreModuleExtras::upgrade and _prepareConfigUpgrade too! */
$this->setVersion(THIS IS WHAT I'm LOOKING FOR);

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sun, 2006-01-29 00:59

Sorry for the misunderstanding and thanks for all the help. Here you go

	$this->setId('core');
	$this->setName($gallery->i18n('Core'));
	$this->setGalleryVersion('2.1.0-');

	/* Don't forget to update CoreModuleExtras::upgrade and _prepareConfigUpgrade too! */
	$this->setVersion('1.0.20');
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-29 01:18

see. your gallery2 code is 1.0.20. you're installed version is 1.0.19. there's no way that your upgrader doesn't upgrade the core module version in the corresponding step. click "redo this step" if you have the option.

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sun, 2006-01-29 01:28

I have tried "redo this step" a few times, this does not end the upgrade loop.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-29 01:51

do you have a webaccelerator running? eaccelerator / cache?

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sun, 2006-01-29 02:26

No accelerators running

 
stukoch

Joined: 2006-01-20
Posts: 33
Posted: Sun, 2006-01-29 23:40

Well I gave up and trashed the whole gallery directory, database and g2data. I only had about 100 images so it wasn't a huge deal. FYI, I was not able to install via CVS. I kept getting a "too many links" error. I ended up just downloading a nightly build. Thanks for the help Valiant!