Forum OpenACS Development: Error installing 5.9 from scratch

Collapse
Posted by Antonio Pisano on
Hello there,

I am installing OpenACS 5.9 from the latest (today) installation script here http://www.openacs.org/xowiki/naviserver-openacs. I installed both naviserver and openacs.

When I first started my new instance, I got a minor error from the config file because in section
...
ns_section "ns/server/${server}/module/nsssl"
ns_param address $address
...

I had $address instead of one of the new $addres_v4 or $address_v6. Setting the variable with the addres_v4 value made me proceed.

The problem came when I tried to access the instance, as I get

invalid database id: "handle"
while executing
"ns_db releasehandle $db"
(procedure "::nsf::procs::db_release_unused_handles" line 20)
invoked from within
"db_release_unused_handles"
(procedure "::nsf::procs::apm_bootstrap_load_libraries" line 29)
invoked from within
"apm_bootstrap_load_libraries -procs acs-tcl"

Instead of the usual installation page to create the data model. Seems this has to do with nsf, but in this I am no expert. Looking into the api-doc of openacs.org for proc db_release_unused_handles I could not find references to nsf, so maybe it has to do with some installation parameter I have used (just guessing)

Any clues?

Thanks in advance

Antonio

Collapse
Posted by Gustaf Neumann on
I assume, you using

version_ns=4.99.11
version_modules=4.99.11

You are right, the https setup in the sample config file for OpenACS in the NaviServer distro was incorrect. The updated version [1] should be better.

The error message about the invalid handle is coming from postgres. Are you sure this is the first error message in the log file? Is your DB running on the default port?

-g

[1] https://bitbucket.org/naviserver/naviserver/src/947978d7a934f36a4ad407f5718754b5bcb9e952/openacs-config.tcl?fileviewer=file-view-default

Collapse
Posted by Antonio Pisano on
Ok, it was my fault in the end, user was set to the name of the instance in the config, while it had to be the actual db user.

Thank you and all the best

Collapse
Posted by Gustaf Neumann on
The sample openacs-config.tcl file from naviserver [1] is setting per default the db_user to the name of the server instance - similar to the sample config file for aolserver and also similar to what you describe.

The install script install-oacs.sh [2] creates among other things the oacs_user with the configured value in postgres and alters the default db_user that value (normally "nsadmin"). This happens in nstall-oacs.sh around line 310. So, an explanation might be, that install-oacs.sh was not run (has not tailored the startup file) or stopped prematurely.

-g

[1] https://bitbucket.org/naviserver/naviserver/src/a5d22d7256340e245badbdb2ae7b2a512b6c89e5/openacs-config.tcl?fileviewer=file-view-default
[2] https://github.com/gustafn/install-ns/blob/master/install-oacs.sh

Collapse
Posted by Antonio Pisano on
Yes, your explanation fits, I have tweaked the sample and used it as conf after installing.

Thank you again