Forum OpenACS Development: Installer broken?

Collapse
Posted by Gilbert Wong on

I just loaded the newest code from the CVS, dropped my db and recreated it. I get this error when bootstraping. Any ideas?

[02/Sep/2001:12:51:17][1173.5126][-conn0-] Error: Error 
sourcing /web/openacs-4/packages/acs-bootstrap-
installer/installer/packages-install.tcl:
psql:acs-install.sql:224: ERROR:  apm_packages_package_key_fk 
referential integrity violation - key referenced from apm_packages 
not found in apm_package_types
psql:acs-install.sql:231: ERROR:  ExecAppend: Fail to add null value 
in not null attribute object_id

    invoked from within
"db_source_sql_file -callback apm_ns_write_callback acs-install.sql"
    invoked from within
"if { ![ad_acs_admin_node] } {
    ns_write "  <p><li> Completing Install 
sequence.<p>
    <blockquote><pre>"
    cd [file join [acs_root_dir] packages..."
    (file "/web/openacs-4/packages/acs-bootstrap-
installer/installer/packages-install.tcl" line 34)
    invoked from within
"source $__file "
Collapse
Posted by Don Baccus on
Hmmm...I just did a "cvs update -d -P .", dropped my PG db and re-installed without a problem ...
Collapse
Posted by Gilbert Wong on
hmmm...  I tried the update and that didn't work.  I also tried grabbing a clean copy of the CVS tree.  Same error.  Argh.  I'm going to try again...
Collapse
Posted by Don Baccus on
If it makes you feel better your e-commerce port is now working like a champ for me under PG!
Collapse
Posted by Gilbert Wong on
Thanks :)

Still a no go on the bootstrap installer.  I brought up a clean box (FreeBSD) and did the install.  The installer dies at the same point.

This is really bugging me now.  The only thing I changed was the StackSize parameter to meet the new minimum of 131072.  Any ideas?

Collapse
Posted by Gilbert Wong on
I think I found the problem.

in acs-kernel/sql/postgresql/acs-install.sql

there is something called the acs-service-contract.  I commented out lines 95 to 117 and now the installation completes. (ie lines pertaining to acs-service-contract).  I don't know what's going on here.  Any ideas?

Collapse
Posted by Gilbert Wong on
Ok.  Figured it out.  I did a cvs co acs-core which does not grab acs-service-contract.  I grabbed it separately and it installs correctly now.

Don - can you add acs-service-contract to the acs-core module in the cvs repository.  Thanks.