Forum OpenACS Q&A: AOLServer installation problem

Collapse
Posted by Jarkko Laine on
I installed the AOLServer according the instructions and put the
"as:2345:respawn:/home/aolserver/bin/nsd -it
/home/aolserver/nsd.tcl -u nsadmin -g nsadmin" line in the
/etc/inittab. The server seems to be starting at startup (I get
the following notices:
[root@a9c2 aolserver]# [27/May/2002:18:30:31][2362.1024][-main-]
Notice: nsd.tcl: starting to read config file...
[27/May/2002:18:30:31][2362.1024][-main-] Warning: nsd.tcl: nsssl
not loaded because key/cert files do not exist.
[27/May/2002:18:30:31][2362.1024][-main-] Notice: nsd.tcl:
finished reading config file.
)

However, when I try ps aux | grep nsd, I don't get anything
(correct). When trying to connect to localhost with Opera I get
the following error:
[27/May/2002:18:15:13][2119.1024][-main-] Fatal: config:
stat(/-u) failed: No such file or directory

I just can't figure out what that error is trying to refer to.

TIA for any help,
Jarkko

Collapse
Posted by Jarkko Laine on
Another problem I came across was that for some reason I can't execute pgsql commands (e.g. createdb) with nsadmin, i.e. the path is not working. With root and postgres they're all working fine.
Collapse
Posted by Kenny Chan on
Hi Jarkko,

For the PostgreSQL problem, you have to "createuser nsadmin" first if you haven't already done so.

Sincerely,

Collapse
Posted by Jarkko Laine on
I have tried to do everything according to OpenACS docs, i.e. I've created the user answering yes to both questions about it's rights. It worked fine when I used the pgsql packaged in the RH distribution but when I compiled it from the source, this problem occured.
Collapse
Posted by Jonathan Ellis on
try running in the forground and see what it says when it dies.  nsd -f rather than -i.
Collapse
Posted by Jade Rubick on
I suspect the problem might be permissions. Are you able to run
any postgres commands? createdb, etc...? If not, then you need
to cd to the postgres directory and chmod g+rx postgresdirectory,
and make sure your path includes the postgres directory. I think
this is something that we fixed in the install docs, but the
problem might still be there...
Collapse
Posted by Jarkko Laine on
Jade,

Thanks for your answer. I think the reason was that nsadmin wasn't in the web group like postgres and though files in the pgsql/bin dir were 755, the pgsql dir was not and therefore it didn't work.

Collapse
Posted by Jarkko Laine on
Jonathan,

This is what I get:
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nsd.tcl: starting to read config file...
[29/May/2002:09:54:16][11770.1024][-main-] Warning: nsd.tcl: nsssl not loaded because key/cert files do not exist.
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nsd.tcl: finished reading config file.
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nsmain: AOLserver/3.4.2 starting
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nsmain: security info: uid=503, euid=503, gid=503, egid=503
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024
[29/May/2002:09:54:16][11770.1024][-main-] Notice: modload: loading '/home/aolserver/bin/postgres.so'
[29/May/2002:09:54:16][11770.1024][-main-] Notice: PostgreSQL loaded.
[29/May/2002:09:54:16][11770.1024][-main-] Notice: adp: mapped /*.adp
[29/May/2002:09:54:16][11770.1024][-main-] Notice: modload: loading '/home/aolserver/bin/nssock.so'
[29/May/2002:09:54:16][11770.1024][-main-] Notice: modload: loading '/home/aolserver/bin/nslog.so'
[29/May/2002:09:54:16][11770.1024][-main-] Notice: nslog: opened '/home/aolserver/servers/jarkko/modules/nslog/access.log'
[29/May/2002:09:54:16][11770.1024][-main-] Notice: modload: loading '/home/aolserver/bin/libnsjava.so'
[29/May/2002:09:54:16][11770.1024][-main-] Warning: modload: failed to load '/home/aolserver/bin/libnsjava.so': '/home/aolserver/bin/libnsjava.so: cannot open shared object file: No such file or directory'
[29/May/2002:09:54:16][11770.1024][-main-] Fatal: modload: failed to load module '/home/aolserver/bin/libnsjava.so'

I can see the problem is that there isn't this libnsjava.so file. But I'm not sure if I want to have the nsjava module. So why does the server automatically want to have that module and what configuration file should I change to get that corrected?

Collapse
Posted by Ola Hansson on
You may safely comment out the line that loads the nsjava module in section:

ns_section "ns/server/${server}/modules"

in /home/aolserver/nsd.tcl.

The only module I know uses nsjava is webmail which doesn't work so well anyway, I believe.