[SOLVED]Beta1 -> Beta2, install problems

kreator

Joined: 2005-03-30
Posts: 10
Posted: Sun, 2005-04-24 04:00

The error i'm getting:

Quote:
Error (ERROR_STORAGE_FAILURE)
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 1409 (gallerystatus::error)
in modules/core/classes/GalleryStorage.class at line 320 (postgresqldatabasestorage::updatemapentry)
in modules/core/classes/interfaces/GalleryPluginMap.inc at line 158 (gallerystorage::updatemapentry)
in modules/core/classes/GalleryPlugin.class at line 145 (gallerypluginmap::updatemapentry)
in modules/core/classes/GalleryModule.class at line 275 (galleryplugin::activate)
in install/steps/InstallCoreModuleStep.class at line 89 (coremodule::activate)
in install/index.php at line 168 (installcoremodulestep::loadtemplatedata)

Now after it follows a huge stack (20 pages long) so i won't post it (unless needed), but there are 3 warnings in the midst of it:

Quote:
Warning: pg_exec(): Query failed: ERROR: function
"bit_or" already exists with same argument types in
/usr/share/gallery2/lib/adodb/drivers/adodb-postgres64.inc.php on
line 722
-1: ERROR: function "bit_or" already exists with same argument types
adodb_postgres7._execute(
CREATE AGGREGATE BIT_OR
(
basetype = ..., false) % line
833, file: adodb.inc.php
adodb_postgres7.execute(
CREATE AGGREGATE BIT_OR
(
basetype = ...) % line 128,
file: PostgreSqlDatabaseStorage.class
postgresqldatabasestorage.configurestore(core) % line 338, file: GalleryStorage.class
gallerystorage.configurestore(core) % line 132, file: GalleryModule.class
coremodule.installorupgrade(true) % line 83, file: InstallCoreModuleStep.class

Quote:
Warning: pg_exec(): Query failed: ERROR: relation
"g2_permissionmap" does not exist in
/usr/share/gallery2/lib/adodb/drivers/adodb-postgres64.inc.php on
line 722
-1: ERROR: relation "g2_permissionmap" does not exist

adodb_postgres7._execute(
SELECT
COUNT(DISTINCT g2_PermissionMa..., false) % line 833, file: adodb.inc.php
adodb_postgres7.execute(
SELECT
COUNT(DISTINCT g2_PermissionMa..., Array[0]) % line 43, file: adodb-postgres7.inc.php
adodb_postgres7.selectlimit(
SELECT
COUNT(DISTINCT g2_PermissionMa..., 1, -1,
Array[0]) % line 1152, file: DatabaseStorage.class
postgresqldatabasestorage.search(
SELECT
COUNT(DISTINCT [GalleryPermiss..., Array[0],
Array[1]) % line 220, file: GalleryStorage.class
gallerystorage.search(
SELECT
COUNT(DISTINCT [GalleryPermiss..., Array[0],
Array[1]) % line 206, file: Gallery.class

Quote:
Warning: pg_exec(): Query failed: ERROR: current transaction is
aborted, commands ignored until end of transaction block in
/usr/share/gallery2/lib/adodb/drivers/adodb-postgres64.inc.php on
line 722
-1: ERROR: current transaction is aborted, commands ignored until end of
transaction block
adodb_postgres7._execute(UPDATE g2_PluginMap
SET g_active=1 WHERE g_pluginType='module' A...) % line 818, file: adodb.inc.php
adodb_postgres7.execute(UPDATE g2_PluginMap SET g_active=?
WHERE g_pluginType=? AND g_pl..., Array[3]) % line 1406, file: DatabaseStorage.class
postgresqldatabasestorage.updatemapentry(GalleryPluginMap,
Array[2], Array[1]) % line 320, file:
GalleryStorage.class
gallerystorage.updatemapentry(GalleryPluginMap, Array[2],
Array[1]) % line 158, file: GalleryPluginMap.inc
gallerypluginmap.updatemapentry(Array[2],
Array[1]) % line 145, file: GalleryPlugin.class

realpath(/usr/share/gallery2/modules/core/classes/../../../)

read through the errors people were having, but haven't found much help in this particular case.

Thanks,
Igor

 
kreator

Joined: 2005-03-30
Posts: 10
Posted: Sun, 2005-04-24 04:03

oh and the system parameters are in my sig

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-04-24 06:15

you say beta-1 to beta-2.. why are you running the installer?
just access the site and it should bring up the upgrader.

 
kreator

Joined: 2005-03-30
Posts: 10
Posted: Sun, 2005-04-24 13:36

hmm, interresting. on the upgrade page it said to overwrite the beta1 version. What was it supposed to mean? What i did, was just move the old gallery to a different folder. Was i supposed to just copy over new files?

got confused on that one :)

Igor

PS oh and the upgrader - is it supposed to be in the http://pathtogallery/upgrade/index.php or just go to the index.php of the gallery itself? Since i believe there was no folder upgrade under the beta2 folder

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-04-24 14:53

- just copy the new gallery files over the old files
- if you move the old files away, keep g2data in place
- and keep config.php in place

a g2 without a valid config.php or without a g2data dir, can't be upgraded.

 
kreator

Joined: 2005-03-30
Posts: 10
Posted: Sun, 2005-04-24 20:01

ok, thanks
did it the right way this time, went without a glitch