Forum OpenACS Development: Re: Error installing 5.9 from scratch

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