Forum OpenACS Development: Re: Re: Re: Re: Re: Re: Re: contacts pkg installation

Collapse
Posted by Iuri Sampaio on
well the page you just put, it takes me to another screen.
The one i had is. acs-admin->install software->from local

http://www.myybiz.net:8090/acs-admin/install/install?package%5ftype=apm%5fapplication

now, it requires for acs-events>=0.5, http://www.myybiz.net/file-storage/view/error3.jpg

i already put the version from head there but it still get the error.
version name="0.5d3" url="https://openacs.org/repository/download/apm/acs-events-0.5d3.apm";

Collapse
Posted by Iuri Sampaio on
Hi Malte,
I figured there are two ways to install a new package.

1 - The one you post above
From acs-admin -> package manager -> install new package
http://www.myybiz.net:8090/acs-admin/apm/packages-install

2- The one i oftenly used on my box
From acs-admin -> install software -> install from local/install from repository

So far i installed using the 1 method and chose to install the datamodel manually. then it was just run:
psql -f contact-create.sql

and get back to the website and enable the new package i installed.

It's working fine I believe there's no risk to be loosing data, is it correct?

ps:
before I ran contact-create.sql mannually I tried the follow steps.

I ran psql -f contact-drop.sql. Just to be sure I cleaned up everything. Then i tried to install the datamodel from the browser but i got an error reference at

psql:contacts-search-create.sql:38: ERROR: duplicate key violates unique constraint "acs_object_types_pk"
CONTEXT: PL/pgSQL function "acs_object_type__create_type" line 37 at SQL statement

Is there any way to track the message error to show up this info then we can delete mannually from the table the record referenced by the ID?
It seems madness but I was looking at the tables the data, but it's just impossible to know all the relations. :)

I've got contacts pkg installed on my website. Mannualy I ran the sql script and enabled the pkg afterwards.

I debugged every table created by the script sql/postgresql/contacts-create.sql

the good thing is i can understand much clear what contact pkg does. Now I will have look at the procs.

I tried to track the relations created between contacts pkg and others tables on oacs. It's just impossible. I've found some and deleted. But I still get the error if i try to install the pkg form the browser
Diferent form the duplicated key error message.
psql:contacts-search-create.sql:38: ERROR: duplicate key violates unique constraint "acs_object_types_pk"
CONTEXT: PL/pgSQL function "acs_object_type__create_type" line 37 at SQL statement

I've got this peculiar error message about write permissions on the folder
psql:contacts-package-create.sql:125: ERROR: -20000: This folder does not allow subfolders to be created
CONTEXT: PL/pgSQL function "content_folder__new" line 7 at return
PL/pgSQL function "contact__folder_id" line 11 at assignment