ok i've just got from cvs:
cvs -d
mailto:anonymous@cvs.openacs.org:/cvsroot co -r oacs-5-2 openacs-4
followed by the steps:
1. mv openacs-4 myserver
2. cvs -d
mailto:anonymous@cvs.openacs.org:/cvsroot co openacs-4
3. mv openacs-4 HEAD
4. cd myserver/packages
5. rm -rf acs-mail-lite *contact* *ams* *mail-tracking*
6. mv ../../HEAD/packages acs-mail-lite *contact* *ams* *mail-tracking* .
then i tried to install contacts pkg and I got the error bellow:
*********************************************
Server Error
There was a server error processing your request. We apologize.
Take me back where I was (before the error)
Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")
ERROR: duplicate key violates unique constraint "acs_object_types_table_name_un"
CONTEXT: PL/pgSQL function "acs_object_type__create_type" line 37 at SQL statement
PL/pgSQL function "acs_rel_type__create_type" line 22 at perform
SQL:
select acs_rel_type__create_type (
'contact_rels_spouse',
'<span>#</span>contacts.lt_Contact_Rel_Spouse#',
'<span>#</span>contacts.lt_Contact_Rels_Spous#',
'contact_rel',
'contact_rel_employment',
'rel_id',
'contact_rels_spouse',
'person',
'spouse',
'0',
NULL,
'person',
'spouse',
'0',
NULL
);
while executing
"ns_pg_bind 0or1row nsdb0 {
select acs_rel_type__create_type (
:rel_type,
:pretty_name,
:pretty_plural,
:supertype,
:table_name,
'rel_id',
:pac..."
("uplevel" body line 1)
invoked from within
"uplevel $ulevel [list ns_pg_bind $type $db $sql]"
("postgresql" arm line 2)
invoked from within
"switch $driverkey {
oracle {
return [uplevel $ulevel [list ns_ora $type $db $sql] $args]
}
..."
invoked from within
"db_exec 0or1row $db $full_statement_name $sql"
invoked from within
"if {[regexp -nocase -- {^\s*select} $test_sql match]} {
# ns_log Debug "PLPGSQL: bypassed anon function"
set selection..."
("uplevel" body line 6)
invoked from within
"uplevel 1 $code_block "
invoked from within
"db_with_handle -dbn $dbn db {
# plsql calls that are simple selects bypass the plpgsql
# mechanism for creating anonymous fun..."
(procedure "db_exec_plsql" line 57)
invoked from within
"db_exec_plsql create_type FOO"
("eval" body line 1)
invoked from within
"eval [lindex $pair 0] [lindex $pair 1] [lindex $pair 2]"
(procedure "rel_types::new" line 63)
invoked from within
"rel_types::new -table_name "contact_rel_employment" -create_table_p "t" -supertype "contact_rel" -role_one "spouse" -role_two "spouse" "contact_rels_..."
(procedure "contacts::install::package_install" line 17)
invoked from within
"contacts::install::package_install "
("eval" body line 1)
invoked from within
"eval $command"
(procedure "apm_invoke_callback_proc" line 37)
invoked from within
"apm_invoke_callback_proc -version_id $version_id -type after-install"
(procedure "apm_package_install" line 146)
invoked from within
"apm_package_install -enable -package_path $package_path -load_data_model -data_model_files $data_model_files $spec_file"
("foreach" body line 52)
invoked from within
"foreach package_key $install {
ns_log Notice "Installing $package_key"
array unset version
array set version $repository($package_key..."
("uplevel" body line 49)
invoked from within
"uplevel {
ad_page_contract {
Install packages -- actual installation
@param install Tcl list of packages to install in the order in wh..."
(procedure "code::tcl::/home/yabtdev/yabtdev/packages/acs-admin/www/inst..." line 2)
invoked from within
"code::tcl::$__adp_stub"
invoked from within
"if { [file exists $__adp_stub.tcl] } {
# ensure that data source preparation procedure exists and is up-to-date
adp_init tcl $__adp_stub
..."
("uplevel" body line 3)
invoked from within
"uplevel {
if { [file exists $__adp_stub.tcl] } {
# ensure that data source preparation procedure exists and is up-to-date
adp_init t..."
(procedure "adp_prepare" line 2)
invoked from within
"adp_prepare "
(procedure "template::adp_parse" line 30)
invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
(procedure "adp_parse_ad_conn_file" line 5)
invoked from within
"$handler"
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
$handler
} ad_script_abort val {
# do nothing
}"
invoked from within
"rp_serve_concrete_file [ad_conn file]"
(procedure "rp_serve_abstract_file" line 60)
invoked from within
"rp_serve_abstract_file "$root/$path""
("uplevel" body line 2)
invoked from within
"uplevel $code"
invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info..."