Upgrade Problem!

buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Thu, 2013-01-10 18:27

Hello I discovered that my gallery which was working fine all of the sudden is forcing me to upgrade?

So I started the process and am getting stuck on step 3?

The best i can tell my hosting changed my root path on me and so I did change that in my config file but I notice that the second error saying 'Unknown module version 8.0 in prepareConfigUgrade) is referencing the old server path still?

Any thoughts as to what I can do to fix this and get my gallery back up?

file_exists(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat)
file(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat,
)
Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/config.php)

--------------------------------------------------------
Upgrade Core Module
--------------------------------------------------------

--------------------------------------------------------
System and Gallery information:
--------------------------------------------------------
Gallery version: 2.0-alpha-3
File integrity: There are missing/modified files!
SVN install: No
PHP version: 4.4.9 cgi
PHP memory limit: 16M
PHP disable_functions:
PHP zend.ze1_compatibility_mode:
Webserver: Apache/2
Database: mysqlt 5.0.91-log
Operating system: Linux cgi0604.int.bizland.net 3.0.9-bl3-grsec #9 SMP
Thu Feb 2 08:22:02 EST 2012 i686
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0)
Gecko/20100101 Firefox/17.0
--------------------------------------------------------

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-10 21:51
Quote:
Gallery version: 2.0-alpha-3

You cannot upgrade directly from 2.0-alpha to 2.3.x
Why would you wait 8yrs to upgrade?
2.1 was a major refactoring of the codebase and that was early '06

You're going to need to find a 2.0 final release -> 2.1.2 -> 2.2.6 -> 2.3.2

Not even sure 2.0 files are still available.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-10 22:18

Good news, I just looked back on your old thread and it looks like you're on at least 2.1

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2013-01-10 22:43

If the version dat file is missing gallery will report as the alpha version.

Quote:
File integrity: There are missing/modified files!

After the version file is replaced/found you should be able to sort those out next.

Dave
__________________________________________
Blog & G2 || floridave - Gallery Team

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Wed, 2013-01-16 13:39

Hi,

Thanks for your help but I can not seem to figure out the problem still?

There is a version.dat file and it says

1.2.0.7
2.2.5

Yet in step 2 of the upgrade it says the following:

Currently installed Core Module version: 0.8 (Gallery 2.0-alpha-3)
New version Core Module version: 1.2.0.7 (Gallery 2.2.5)

I think the problem could possibly be partly that my server root path changed over time as it used to be ( /hermes/waloraweb027/b1391/as.buildara/public_html ) and is now ( /home/users/web/b1391/as.buildara/public_html )

I did update the path in my config.php file but perhaps the upgrade is picking up the old path still somewhere in the database? I noticed in the debug output on step 3 where im stuck it says the following:

Error (ERROR_STORAGE_FAILURE)
• in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 961 (GalleryCoreApi::error)
• in modules/core/classes/GalleryStorage.class at line 493 (GalleryStorageExtras::execute)
• in modules/core/CoreModuleExtras.inc at line 354 (GalleryStorage::execute)
• in modules/core/module.inc at line 433 (CoreModuleExtras::upgrade)
• in modules/core/classes/GalleryModule.class at line 160 (CoreModule::upgrade)
• in upgrade/steps/UpgradeCoreModuleStep.class at line 85 (GalleryModule::installOrUpgrade)
• in upgrade/index.php at line 185 (UpgradeCoreModuleStep::processRequest)

file_exists(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat)
file(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat,
)
Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/config.php)

If you notice in this debug output it references the new AND old server paths? I think this may have something to do with why I'm stuck on step 3 of the upgrade.

Any thoughts?

Is there a way to just bypass this upgrade crap that just came out of nowhere so I can get my gallery back up the way it was, working just fine by the way! Or Help me figure out what I can do to get this upgrade finished.

I tried to do a new fresh install of gallery 3 but can't even use that because I can't use the import gallery2 until my gallery2 is upgraded! How frustrating!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-01-16 13:42

bad paths is the answer
make sure the path is correct in gallery2/config.php

You never mentioned the move to a new path.
*** edit ***
You did in the first post, I glazed over it... reading too fast!

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Wed, 2013-01-16 14:52

Yes I realize that the path changed but that's one of the first things I did was change the path in my config file. Hence why it is being refrenced in the debug output:

file_exists(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat)
file(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat,

yet what I am confused about is that I have the new path in place in the config file yet the second part of that debug output is refrencing the old path still:

Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/config.php)

this is why I am confused and why I think the old path is being pulled from somewhere put I have to clue? I even checked my PHP.ini and .htaccess files just in case but no references to the old path?

Where would the "prepareConfigUpgrade" be pulling the old path from?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2013-01-16 16:45

Gallery only stores the path in one place. Lets test your path.
create a new php file my_path.php
content:

<?php echo $_SERVER['SCRIPT_FILENAME'] ?>

and upload it to your gallery2 directory and navigate to it w/ your browser.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Thu, 2013-01-17 13:34

Hi S,

Ya it's pulling in the right path ( http://www.buildaramp.com/gallery2/my_path.php )

Also I double checked my config file and the only place I updated the path was on line 66:

$gallery->setConfig('data.gallery.base', '/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/');

I assume this is the only place I need to update my path and where gallery stores the path? You say gallery only stores it in one place, is this it or should I check elsewhere?

Because I am still confused as to why the debug output would reference the old path still?

Thank you for your time!

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Thu, 2013-01-17 13:40

And just to show you I am pretty sure that this path thing is the problem here is a bit more of the debug output. It's very long so i did not paste it all in but you will see that over and over it is looking for stuff with the old path for some reason?

file_exists(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat)
file(/home/users/web/b1391/as.buildara/public_html/gallery2/g2data/versions.dat,
)
Unknown module version 0.8 in prepareConfigUpgrade()
is_writeable(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/config.php)

--------------------------------------------------------
Upgrade Core Module
--------------------------------------------------------

--------------------------------------------------------
System and Gallery information:
--------------------------------------------------------
Gallery version: 2.0-alpha-3
File integrity: There are missing/modified files!
SVN install: No
PHP version: 5.2.17 cgi
PHP memory limit: 16M
PHP disable_functions:
PHP zend.ze1_compatibility_mode:
Webserver: Apache/2
Database: mysqlt 5.0.91-log
Operating system: Linux cgi0607.int.bizland.net 3.0.9-bl3-grsec #9 SMP
Thu Feb 2 08:22:02 EST 2012 i686
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:18.0)
Gecko/20100101 Firefox/18.0
--------------------------------------------------------

getParameter id.adminGroup for core plugin

(mysqlt):
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

(mysqlt):
SELECT
g2_UserGroupMap.g_userId,
g2_User.g_userName
FROM
g2_UserGroupMap, g2_User
WHERE
g2_UserGroupMap.g_groupId = 3
AND
g2_UserGroupMap.g_userId = g2_User.g_id

ORDER BY
g2_User.g_userName
LIMIT 1

(mysqlt): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (6)

(mysqlt):
SELECT
g2_PluginMap.g_pluginId,
g2_PluginMap.g_active
FROM
g2_PluginMap
WHERE
g2_PluginMap.g_pluginType = 'module'

opendir(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/)
readdir(Resource id #60)
readdir(Resource id #60)
readdir(Resource id #60)
is_dir(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/netpbm)
file_exists(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/netpbm/module.inc)
getParameter _version for netpbm plugin

(mysqlt):
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 = 'netpbm'
AND
g2_PluginParameterMap.g_itemId = 0

getParameter _callbacks for netpbm plugin
getParameter _requiredCoreApi for netpbm plugin
getParameter _requiredModuleApi for netpbm plugin
readdir(Resource id #60)
is_dir(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/rewrite)
file_exists(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/rewrite/module.inc)
getParameter _version for rewrite plugin

(mysqlt):
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

getParameter _callbacks for rewrite plugin
getParameter _requiredCoreApi for rewrite plugin
getParameter _requiredModuleApi for rewrite plugin
readdir(Resource id #60)
is_dir(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/keyalbum)
file_exists(/hermes/waloraweb027/b1391/as.buildara/public_html/gallery2/modules/keyalbum/module.inc)
getParameter _version for keyalbum plugin

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-17 13:57

gallery detects paths automatically in some places, but it only stores the data path in one place.

Could it be your host is aliasing the path?

Can you post a phpinfo link?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2013-01-17 14:22

More of a Q to suprsidr...Also why does http://www.buildaramp.com/gallery2/upgrade/index.php?step=1 say 2.2 upgrader?
Should it not say 2.3 since you replaced the files with a 2.3 version? & File integrity: There are missing/modified files!
I guess that is because it cant see any of the files because of the bad path.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-17 14:42

He did not say he upgraded the codebase, its just suddenly prompting him to upgrade.
But this is a mysterious path issue.

Just looked at the base site. My friend and I built our own half pipe in 1982 tons of fun.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Thu, 2013-01-17 14:56

Here is the php info

http://buildaramp.com/myphpinfo.php

Always nice to get help from a fellow skater! I don't get to skate as often as I used to but my gallery had tons of pics from the skatepark I built and some of the other ramps I built and ramps that kids and parents who purchased my guide built and shared with me.

How big of a ramp did you and your friend build back then?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-17 15:12

No clues there.

Lets do a couple of things.
Manually remove gallery's cache directories
g2data/cache/entity
g2data/cache/theme
g2data/cache/module
g2data/smarty/templates_c

also lets see if we can find anywhere the old path is mentioned in your gallery code perhaps its hardcoded for some reason.
from shell execute the following 2 commands:

cd /home/users/web/b1391/as.buildara/public_html/gallery2
find . -exec grep -q "hermes" '{}' \; -print

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Thu, 2013-01-17 18:29

Ok I did what you said with the cache directories but I am afraid I don't know how to perform a shell command?

I use dreamweaver.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-17 18:56

Did your host give you ftp access to port 21 or 22?
22 is secure and if you have that kind of connection you can use certain apps to connect as shell like PuTTy or terminal

Ask your host for secure FTP or SFTP as it is much safer for you and your site.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2013-01-17 20:27

You can also try my shellExec script.
Just edit line 27 with your custom pass phrase upload to your gallery2 directory and visit via browser.
you would not need the cd command as you'd already be in /gallery2 but you would need to alter the other:
/usr/bin/find . -exec grep -q "hermes" '{}' \; -print
it will want to popup a window with the results, so you need to allow popups in your browser for your site.

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Fri, 2013-01-18 15:49

Hi S,

The only thing the shell output gave me was this.

./g2data/upgrade_f89e0fb637.log
./g2data/upgrade_5b57e61d71.log

I also checked with my host provider and they went through everything and could not find anything on this problem and even tried to perform the upgrade and when they got to step 3 with the debug output they told me it is something within the scripts and to contact you guys, which is what I'm doing obviously!

So I manually removed the directories and did the shell command with no luck and not much as far as troubleshooting. Any other thoughts?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-01-18 16:55

PM me w/ ftp info and I will take a shot.
Any thoughts on actually upgrading to the latest codebase?

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
buildaramp

Joined: 2006-12-01
Posts: 11
Posted: Fri, 2013-01-18 17:36

Well I did do that and just installed a new gallery 3 in a new directory, the only problem with that is I can't use the gallery2 import because my gallery2 install needs to be upgraded to do that.

I would be happy to just use gallery 3 but I had alot of photos and to redo everything would really suck.

How can I get my photos and data from the old one into the new one if the import does not work?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2013-01-18 17:49

I was referring to actually upgrading G2(2.3.2) not moving to G3 (G3 is a completely different application)

-s
________________________________
All New jQuery Minislideshow for G2/G3