[SOLVED] Error in upgrade from beta1 .8 to beta1 .9
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
Hello Everyone, Installed beta 2 v.8 it wants to automagically upgrade to .9 today, and this is the error message I am receiving. Any tips? Thanks! JC Stack Trace: * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1162 (gallerystatus::error) Debug Output: (mysql): SHOW TABLES realpath(/home/johnc/public_html/gallery2/modules/core/classes/../../..) (mysql): SHOW TABLES (mysql): SELECT g_name, g_major, g_minor FROM g2_Schema |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
johnc, are you sure that's the whole output? at the end, it should go on... mindless, why does it query the same db query again and again? is this just inefficient because there's no efficiency required in the upgrade process or something else? |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
valiant, I think file caching is turned off in the upgrader. |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
sorry about the post length. It said to post it all, and for all I knew, the part you would need was right in the middle. =) Here's the error message at the bottom. 1051: Unknown table 'g2_ItemPropertiesMap' adodb_mysql._execute( realpath(/home/johnc/public_html/gallery2/modules/core/classes/../../../) Also, sorry for the improper terminology. It's beta 1 of gallery 2. Downloaded this file: gallery-2.0-beta-1.tar.gz After the initial setup, it worked last week. Needed to re-install, and this week, after the initial setup, it goes into this upgrade mode. JC |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
Why did you have to reinstall? Because of errors? |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
Nuked the entire directory, dropped all of the tables, reinstalled....same error. 1051: Unknown table 'g2_ItemPropertiesMap' adodb_mysql._execute( realpath(/home/johnc/public_html/gallery2/modules/core/classes/../../../) |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
The fairly obvious answer is that the table g2_ItemPropertiesMap doesn't exist. +--------------------------+ So, anyone know where this was supposed to be created? Can anyone tell me the structure of the table? JC |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
smells like a corrupted codebase. remember: don't use winzip to unarchive G2, it may corrupt the directory structure. use another program. |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
This is exactly what I did. Running linux. Did a: 1) rm -rf public_html/gallery2 Using tar -zxvf <filename> to un-archive. Downloading gallery2 with wget straight to the machine. Dunno...any other ideas? JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
i haven't debugged in detail, but the most likely cause of this is a versions.dat file already exists in the g2data storage directory you provide. make sure it is completely empty... (no mention of this in your steps above, unless your g2data dir was under your gallery2 dir). maybe clear cookies too before installing? |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
OK....I fixed it.....just added a table..... mysql> create table g2_ItemPropertiesMap ( And it then went through. JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
oh well, that doesn't help us fix it for other people.... |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
Yes, my g2data directory was under my gallery2 directory. Anything and everything to do with gallery2 was completely removed from the file system. Unfortunately the server I'm on doesn't have EXEC set up for apache, so any files that apache creates, I can't delete. I'd start from scratch again, but I have to get the admin to nuke the directory, and it's a PITA. JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
you can delete the files.. you just have to do it through the webserver.. |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
huh....that was a damn good idea, but it doesn't seem to work. [johnc@degas ~/public_html]$ cat temp.php <?php system("rm -rf /home/johnc/public_html/gallery2/g2data/*"); ?> </body> I tried executing it from the command line, and from a web browser....neither work. Any other ideas? JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
that should work if the path is correct.. |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
it's strange, I can get it to touch a file (creates it as apache:apache) and I can get it to delete that file, but it won't delete the existing directory structure under g2data. JC |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
execute this script: to see if the webserver user owns these files. IMO you can delete these files with a ftp client. you uploaded them, right? |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
No. Didn't upload any files. Everything in the g2data directory was created by gallery2, thus the apache:apache ownership. I also checked to see if safemode was on in PHP, and it is not. This may help. http://cherbini.net/install/phpinfo.php Results of your script below... Hello, time to delete! whoami: apache /home/johnc/public_html/gallery2/g2data/cache: /home/johnc/public_html/gallery2/g2data/locks: /home/johnc/public_html/gallery2/g2data/sessions: /home/johnc/public_html/gallery2/g2data/smarty: |
|
valiant
Joined: 2003-01-04
Posts: 32509 |
![]() |
sorry, confused g2data with gallery2 folder. i don't see any reason why you a php script executed as apache couldn't rm -rf /home/johnc/public_html/gallery2/g2data/smarty and other folders in g2data. |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
Everything you said is correct. If I put this in the file, <?php exec('touch /home/johnc/public_html/gallery2/g2data/johnc_temp.temp'); ?> I get this: [johnc@degas ~/public_html]$ ls -la gallery2/g2data/ Then I put this in: <?php exec('rm -rf /home/johnc/public_html/gallery2/g2data/johnc_temp.temp'); ?> And I get: [johnc@degas ~/public_html]$ ls -la gallery2/g2data/ So, it definitely works. I have no idea why it won't nuke the rest of the directory. No matter which part of the directory structure I point it at, I get permission denied. JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
try /bin/rm instead of rm |
|
johnc
Joined: 2003-06-10
Posts: 17 |
![]() |
No dice. This is quite odd. JC |
|
mindless
![]()
Joined: 2004-01-04
Posts: 8601 |
![]() |
well, i'm marking this topic as solved as we've now strayed into a different problem that isn't really gallery related. good luck! |
|