(Solved) Error installing Gallery Core

Geekess

Joined: 2005-07-04
Posts: 5
Posted: Mon, 2005-07-04 18:33

When trying to install G2 in step 8 it says:

Quote:
Core module is only partially installed.
Error installing Gallery Core

After this a lot of debug info follows, but I don't see any errors.

Here's the full debug-output:

Quote:
file_exists(/usr/local/www/data/gallery2/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(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0)
file_exists(/usr/local/www/data/gallery2/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(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0)
file_exists(/usr/local/www/data/gallery2/g2data/cache/module/core/0)
file_exists(/usr/local/www/data/gallery2/g2data/cache/module/core)
file_exists(/usr/local/www/data/gallery2/g2data/cache/module)
file_exists(/usr/local/www/data/gallery2/g2data/cache)
is_dir(/usr/local/www/data/gallery2/g2data/cache)
mkdir(/usr/local/www/data/gallery2/g2data/cache/module, 755)
mkdir(/usr/local/www/data/gallery2/g2data/cache/module/core, 755)
mkdir(/usr/local/www/data/gallery2/g2data/cache/module/core/0, 755)
mkdir(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0, 755)
rename(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0/0.incNZAqtS,
/usr/local/www/data/gallery2/g2data/cache/module/core/0/0/0.inc)
file_exists(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0)
is_dir(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0)
rename(/usr/local/www/data/gallery2/g2data/cache/module/core/0/0/0.incG6pEmg,
/usr/local/www/data/gallery2/g2data/cache/module/core/0/0/0.inc)
file_exists(/usr/local/www/data/gallery2/g2data//cache/entity)
file_exists(/usr/local/www/data/gallery2/g2data//cache/layout)
file_exists(/usr/local/www/data/gallery2/g2data//cache/module)
recursiveRmdir(/usr/local/www/data/gallery2/g2data//cache/module)
opendir(/usr/local/www/data/gallery2/g2data//cache/module)
readdir(Resource id #55)
readdir(Resource id #55)
readdir(Resource id #55)
is_dir(/usr/local/www/data/gallery2/g2data//cache/module/core)
recursiveRmdir(/usr/local/www/data/gallery2/g2data//cache/module/core)
opendir(/usr/local/www/data/gallery2/g2data//cache/module/core)
readdir(Resource id #56)
readdir(Resource id #56)
readdir(Resource id #56)
is_dir(/usr/local/www/data/gallery2/g2data//cache/module/core/0)
recursiveRmdir(/usr/local/www/data/gallery2/g2data//cache/module/core/0)
opendir(/usr/local/www/data/gallery2/g2data//cache/module/core/0)
readdir(Resource id #57)
readdir(Resource id #57)
readdir(Resource id #57)
is_dir(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0)
recursiveRmdir(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0)
opendir(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0)
readdir(Resource id #58)
readdir(Resource id #58)
readdir(Resource id #58)
is_dir(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0/0.inc)
unlink(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0/0.inc)
readdir(Resource id #58)
rmdir(/usr/local/www/data/gallery2/g2data//cache/module/core/0/0)
readdir(Resource id #57)
rmdir(/usr/local/www/data/gallery2/g2data//cache/module/core/0)
readdir(Resource id #56)
rmdir(/usr/local/www/data/gallery2/g2data//cache/module/core)
readdir(Resource id #55)
rmdir(/usr/local/www/data/gallery2/g2data//cache/module)
file_exists(/usr/local/www/data/gallery2/g2data//cache/derivative)

(mysql): SHOW TABLES

file_exists(/usr/local/www/data/gallery2/modules/core/classes/helpers/../../../../modules/core/module.inc)
realpath(/usr/local/www/data/gallery2/modules/core/classes/../../..)
Binding text domain: modules_core ->
/usr/local/www/data/gallery2/modules/core/locale
file_exists(/usr/local/www/data/gallery2/g2data/versions.dat)

It's a fresh install from a nightly build, with no previous Gallery install present.

----

Gallery version: G2 beta 3 nightly build
Webserver (with version): Apache/1.3.33 (Unix)
Datatabase (with version): 3.23.54
PHP version (eg 4.2.1): PHP/4.3.11
phpinfo URL (optional): http://www.catbytes.org/info.php
Operating system: FreeBSD 4.10-PRERELEASE
Web browser/version: Opera 8

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-04 18:42

this debug output is too short to tell what went wrong.

have all tests passed in the system checks step? no file integrity warning?
and is there really not more debug output?

 
Geekess

Joined: 2005-07-04
Posts: 5
Posted: Mon, 2005-07-04 18:54

All tests passed ok, no file integrity warnings.
To be sure, I've rerun the install, same problem.
And yes, this is all the debuginformation there was, but with the reinstall (which it sees as an upgrade) there is more:

Quote:
Stack Trace:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1192 (gallerystatus::error)
in modules/core/classes/GalleryStorage.class at line 241 (mysqldatabasestorage::execute)
in modules/core/CoreModuleExtras.inc at line 322 (gallerystorage::execute)
in modules/core/module.inc at line 520 (coremoduleextras::upgrade)
in modules/core/classes/GalleryModule.class at line 138 (coremodule::upgrade)
in upgrade/steps/UpgradeCoreModuleStep.class at line 80 (coremodule::installorupgrade)
in upgrade/index.php at line 177 (upgradecoremodulestep::processrequest)

After this there's a lot more debug info, this time with an error at the end:

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

Unimplemented: ImageFrameInterface_1_1

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

mysql error: [1051: Unknown table 'g2_ItemPropertiesMap'] in EXECUTE("DROP
TABLE g2_ItemPropertiesMap")

(mysql): DROP TABLE g2_ItemPropertiesMap

1051: Unknown table 'g2_ItemPropertiesMap'

adodb_mysql._execute(DROP TABLE
g2_ItemPropertiesMap, false) % line
833, file: adodb.inc.php
adodb_mysql.execute(DROP TABLE g2_ItemPropertiesMap,
Array[0]) % line 1186, file: DatabaseStorage.class
mysqldatabasestorage.execute(DROP TABLE
[GalleryItemPropertiesMap], Array[0]) %
line 241, file: GalleryStorage.class
gallerystorage.execute(DROP TABLE
[GalleryItemPropertiesMap]) % line
322, file: CoreModuleExtras.inc
coremoduleextras.upgrade(Object:coremodule, null,
Object:statustemplate) % line 520,
file: module.inc

realpath(/usr/local/www/data/gallery2/modules/core/classes/../../../)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-04 19:51

your error trace says it's trying to upgrade. so it can't be a clean install.
please empty the database, empty the g2data directory and try again.

 
Geekess

Joined: 2005-07-04
Posts: 5
Posted: Mon, 2005-07-04 20:46

Yeah that's because I started the install again.

The problem is solved, though I don't know how.
After several retries of the updating/installation process it suddenly worked.
Very strange, but I won't complain.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-07-04 20:52

strange indeed. good that it works nnow.