[SOLVED] Error trying to install a multisite

moravia

Joined: 2005-08-01
Posts: 12
Posted: Mon, 2005-08-01 01:07

me too :)

Gallery 2 beta 4

It told me to make sure the directory was writable by the php user, but then it said the g2data directory didn't exist. Why didn't it just create it? (I'm attempting multi-site install.)

http://sean.porterfield.net/gallery/phpinfo.php

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-01 07:37

moravia, i've split your issue from the "Core module is only partially installed" topic.

what exactly is your problem. do you also get a "core module is only partially installed" error? or do you just wonder why it didn't create the g2data directory for you when it actually should have had the permissions to do it?

from your phpinfo
- PHP Version 4.1.2 (old, but we should support everything since 4.1)
- memory limit 8mb (may be the reason for a "error installing gallery core)
you should increase the memory limit to 16mb or higher.
- on another note: your apache is very old. there were a lot of vulnerabilities since 1.3.22.

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Mon, 2005-08-01 18:22

I got the exact same "Core module is only partially installed." which is why I replied in that thread. I didn't want to waste space by including the entire "debug output" section.

I added the extra info about g2data directory in case there was something related.

I left the 8MB PHP limit because I thought that only applied to uploads and don't want anyone to send even that much data to the server. I can't understand why a script would need more than 8MB.

I know the software on the server is very old, but running Red Hat means RPM upgrades, and that version is not supported. Until we can get physical access to the box to upgrade, it is stuck where it is.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-08-01 18:37

G2 needs more than 8mb, we load a very large framework. you need to put it to 16mb or more such that we can conclude that this is not the source of your problem.

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Mon, 2005-08-01 22:38

OK, I see the memory limit and post limit are two different settings. I have changed my memory limit to 16M and still get the same error.

I don't see any errors in my httpd error_log (which is good, I guess). Any other suggestions?

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Tue, 2005-08-02 10:09

Following some other advice for "Core module is only partially installed.", I dropped all tables from the gallery database and cleared out my g2data directory. I then chose "Start Over" from the install page. I still got the error. I repeated the procedure for good measure. Then deleted *everything* from gallery2 and started over wih single site instead of multisite - same error.

I'm tempted to try beta3 then upgrade, since that apparently worked for someone else. I'll post my debug info this time in case it makes more sense to someone else.

file_exists(/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.inc)

(mysql):
SELECT
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(/var/www/sean/html/gallery/g2data/cache/module/core/0/0)
file_exists(/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.inc)

(mysql):
SELECT
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(/var/www/sean/html/gallery/g2data/cache/module/core/0/0)
file_exists(/var/www/sean/html/gallery/g2data/cache/module/core/0)
file_exists(/var/www/sean/html/gallery/g2data/cache/module/core)
file_exists(/var/www/sean/html/gallery/g2data/cache/module)
file_exists(/var/www/sean/html/gallery/g2data/cache)
is_dir(/var/www/sean/html/gallery/g2data/cache)
mkdir(/var/www/sean/html/gallery/g2data/cache/module, 755)
mkdir(/var/www/sean/html/gallery/g2data/cache/module/core, 755)
mkdir(/var/www/sean/html/gallery/g2data/cache/module/core/0, 755)
mkdir(/var/www/sean/html/gallery/g2data/cache/module/core/0/0, 755)
rename(/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.incIiddmP,
/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.inc)
file_exists(/var/www/sean/html/gallery/g2data/cache/module/core/0/0)
is_dir(/var/www/sean/html/gallery/g2data/cache/module/core/0/0)
rename(/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.inc3Vm3tp,
/var/www/sean/html/gallery/g2data/cache/module/core/0/0/0.inc)
file_exists(/var/www/sean/html/gallery/g2data//cache/entity)
file_exists(/var/www/sean/html/gallery/g2data//cache/theme)
file_exists(/var/www/sean/html/gallery/g2data//cache/module)
recursiveRmdir(/var/www/sean/html/gallery/g2data//cache/module)
opendir(/var/www/sean/html/gallery/g2data//cache/module)
readdir(Resource id #6)
readdir(Resource id #6)
readdir(Resource id #6)
is_dir(/var/www/sean/html/gallery/g2data//cache/module/core)
recursiveRmdir(/var/www/sean/html/gallery/g2data//cache/module/core)
opendir(/var/www/sean/html/gallery/g2data//cache/module/core)
readdir(Resource id #7)
readdir(Resource id #7)
readdir(Resource id #7)
is_dir(/var/www/sean/html/gallery/g2data//cache/module/core/0)
recursiveRmdir(/var/www/sean/html/gallery/g2data//cache/module/core/0)
opendir(/var/www/sean/html/gallery/g2data//cache/module/core/0)
readdir(Resource id #8)
readdir(Resource id #8)
readdir(Resource id #8)
is_dir(/var/www/sean/html/gallery/g2data//cache/module/core/0/0)
recursiveRmdir(/var/www/sean/html/gallery/g2data//cache/module/core/0/0)
opendir(/var/www/sean/html/gallery/g2data//cache/module/core/0/0)
readdir(Resource id #9)
readdir(Resource id #9)
readdir(Resource id #9)
is_dir(/var/www/sean/html/gallery/g2data//cache/module/core/0/0/0.inc)
unlink(/var/www/sean/html/gallery/g2data//cache/module/core/0/0/0.inc)
readdir(Resource id #9)
rmdir(/var/www/sean/html/gallery/g2data//cache/module/core/0/0)
readdir(Resource id #8)
rmdir(/var/www/sean/html/gallery/g2data//cache/module/core/0)
readdir(Resource id #7)
rmdir(/var/www/sean/html/gallery/g2data//cache/module/core)
readdir(Resource id #6)
rmdir(/var/www/sean/html/gallery/g2data//cache/module)
file_exists(/var/www/sean/html/gallery/g2data//cache/derivative)

(mysql): SHOW TABLES

file_exists(/var/www/sean/html/gallery/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/var/www/sean/html/gallery/modules/core/classes/../../..)
Binding text domain: modules_core ->
/var/www/sean/html/gallery/modules/core/locale
file_exists(/var/www/sean/html/gallery/g2data/versions.dat)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-08-02 10:16

thanks and sorry for the issues :/

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Wed, 2005-08-03 00:58

Thanks for the continued attempts to help, valiant.

My install of beta3 was even worse. I tried to load the initial install/index.php and got:

Fatal error: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition multisitestep of the object you are trying to operate on was loaded _before_ the session was started in /var/www/sean/html/gallery/install/index.php on line 163

I'm thinking it's probably better to go forward than back, so I'm going to play in CVS next. I also saw a patch you (I think?) posted in another thread http://dev.nei.ch/install_log_diff.txt that I might look into.

Even though I really want to get it working so I can post my photos, I hope that we might stumble across a solution (else why try beta software in the first place?) It seems many others have this same problem. I haven't cross-referenced their software versions to see if there is a commonality.

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Wed, 2005-08-03 01:08

One thing I will say (refer to first post in this thread) is that I never remember to go create the g2data directory. I keep expecting gallery to do it for me then have to run the same page again after I created it. Maybe there is no connection.

Anyway, just for fun I applied the aforementioned patch to beta4 and got the expected failure on step 8:

Error installing Gallery Core

Something went wrong when we tried to install the core module. In the boxes below you can find some debug information. Report this in the Gallery Forums and we'll help you diagnose the problem.
Stack Trace:

Debug Output:

Yep. That's it! No output whatsover under debug :(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-08-03 05:41

with my patch, you get a log of the installer in g2data/install.log. please zip it and attach it to the topic or upload it somewhere and link to it.
just don't paste it here, it's huge.

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Wed, 2005-08-03 09:44

I didn't read your patch carefully enough, and I didn't go back to the thread where you suggested it, so shame on me.

I'm not sure what you mean by "attach it to the topic" so I'll just leave it on my server. http://sean.porterfield.net/install.log.zip

Thanks! (I haven't made it to my CVS trial yet.)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-08-03 11:50

moravia, ok, we know now a little more.
in your case, it died during $ret = $theme->installOrUpgrade(); in CoreModuleExtras.inc.

Perhaps I can add even more debug information such that we can further isolate the problem.
I'll look into it when I'm at home.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-08-03 12:58

moravia, how long does the install core module step run before it stops? could you measure it?
and what was your php execution time limit?

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Wed, 2005-08-03 16:45

Just by counting, I'd say it ran 6 seconds. max_execution_time = 30

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Thu, 2005-08-04 22:36

I got the CVS version a few minutes ago and still had a problem on step 8. It definitely had differences from Beta4, and it mentioned the install.log file. It tells me that there are 30 files missing and 23 modified. Since it suggested a cvs update, I did. I then started over. Then it worked!!!

I'm not sure if I've done something wrong afterward, but it said to go to the main.php in my gallery directory. I did, but it went back to the installer. (This was after registering/activating all the modules.) I might try again or search for that problem or start a new thread, since the install core issue is mostly resolved (it worked on the second try but not the first.) OR I could try the install in a clean location and see if it can be done the first time through. I changed my configuration plans a bit based on new text that I saw about separate databases per install and didn't have everything created in advance (not that it should matter in the real world.)

 
moravia

Joined: 2005-08-01
Posts: 12
Posted: Thu, 2005-08-04 22:52

I'm feeling sheepish. I hadn't read the multisite doc prior to trying this and realize that I was setting it up backwards. I thought the install directory (codebase) would get copied to the multisite and then configured for each site. I reversed the setup, carefully (mostly!) configured all settings, ran a brand new setup from the same CVS code, got completed and running install!!!! Thank you valiant (and the other programmers who made this possible.) Now I can go upload pictures :)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-08-05 10:26

The nightly snapshot is now available:

Get either
- G2/gallery-2.0-rc-1.zip
or
- G2/gallery-2.0-rc-1.tar.gz

from http://galleryupdates.jpmullan.com/ .

moravia , this "works on the second attempt" thing is hard to believe.

could you please run the installer again, in the database step choose "erase" and finish the installer? and if it doesn't work in this first attempt, please post the install.log.

thanks for your feedback!