Forum OpenACS Q&A: notes package

Collapse
Posted by alaa aziz on
hi
i deleted notes package and i want to install it again .... how
would i be able to do that ..i tried doing that from Install
packages but it said no new packages to install ... any ideas

thanks

Collapse
Posted by Ola Hansson on
Alaa,

when you delete a package from the apm admin pages, it really gets deleted from the file system, too.

This is a bit dangerous IMO and there should probably be a checkbox you have to check if you really want to delete it from packages/ ...

You'll need to fetch it over again.

Collapse
Posted by alaa aziz on
sorry for being such a pain .... but how do i do that ????

thanks

Collapse
Posted by Matthew Geddert on
you can uncompress the openacs-release.tar.gz file you downloaded into a different location... and then copy or move the directory notes from that newly uncompressed location to /web/yourserver/packages, following are the exact steps, download openacs-release.tar.gz to tmp unless you already have it there:
# cd /tmp
# tar xzf openacs-release.tar.gz
# mv openacs-4/packages/notes /web/yourserver/packages/
# rm -rf openacs-4
(this is to delete the newley created directory in tmp, not your main /web/yourserver/ directory)... be careful
Collapse
Posted by alaa aziz on
hi

i done all of the above and now when i come to do "install package" i get the following error ... can anyone please help

thanks

<Installing packages...

    * Installing data model for Note 0.11d...
          o Loading data model
/web/AOL/packages/notes/sql/postgresql/notes-create.sql...

CREATE
DROP
CREATE
DROP
acs_sc_impl__new
------------------
            7491
(1 row)
HTTP/1.0 200 OK
Server: AOLserver/3.3.1+ad13
Content-Type: text/html; charset=iso-8859-1
MIME-Version: 1.0
Date: Tue, 01 Oct 2002 22:34:59 GMT
Content-Length: 4455
Connection: close






            Request Error

psql:notes-create.sql:30: ERROR:  Cannot insert a duplicate key into
unique index acs_object_types_pk
psql:notes-create.sql:72: ERROR:  Cannot insert a duplicate key into
unique index acs_attributes_attr_name_un
psql:notes-create.sql:89: ERROR:  Relation 'notes' already exists
psql:notes-create.sql:127: ERROR:  ProcedureCreate: procedure note__new
already exists with same arguments
psql:notes-create.sql:145: ERROR:  ProcedureCreate: procedure note__delete
already exists with same arguments
psql:notes-create.sql:159: ERROR:  ProcedureCreate: procedure note__name
already exists with same arguments
psql:notes-sc-create.sql:13: ERROR:  Cannot insert a duplicate key into
unique index acs_sc_impl_alias_un
psql:notes-sc-create.sql:21: ERROR:  Cannot insert a duplicate key into
unique index acs_sc_impl_alias_un
psql:notes-sc-create.sql:29: ERROR:  ProcedureCreate: procedure
notes__itrg already exists with same arguments
psql:notes-sc-create.sql:36: ERROR:  ProcedureCreate: procedure
notes__dtrg already exists with same arguments
psql:notes-sc-create.sql:43: ERROR:  ProcedureCreate: procedure
notes__utrg already exists with same arguments
psql:notes-sc-create.sql:47: ERROR:  CreateTrigger: trigger notes__itrg
already defined on relation notes
psql:notes-sc-create.sql:50: ERROR:  CreateTrigger: trigger notes__dtrg
already defined on relation notes
psql:notes-sc-create.sql:53: ERROR:  CreateTrigger: trigger notes__utrg
already defined on relation notes

    invoked from within
"db_source_sql_file -callback $callback $path/$file_path"
    (procedure "apm_package_install_data_model" line 32)
    invoked from within
"apm_package_install_data_model -callback $callback -data_model_files
$data_model_files $spec_file_path"
    (procedure "apm_package_install" line 19)
    invoked from within
"apm_package_install -install_path $install_path  -callback
apm_ns_write_callback -load_data_model  -data_model_files
$data_model_files $spec_file"
    ("foreach" body line 36)
    invoked from within
"foreach pkg_info $pkg_install_list {
    set spec_file [pkg_info_spec $pkg_info]
    if { [catch {
    array set version [apm_read_package_info_file $spe..."
    ("uplevel" body line 34)
    invoked from within
"uplevel {
          ad_page_contract {

    Installs the packages.

    @author Bryan Quinn (mailto:bquinn@arsdigita.com)
    @creation-date Mon Oct  9 00:22:31..."
    (procedure
"code::tcl::/web/AOL/packages/acs-admin/www/apm/packages-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 3)
    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 7)
    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([ad_conn url]) [ad_conn path_inf...">