Forum OpenACS Q&A: AOLserver permission denied when restarted with daemontools

Another problem that I can't solve myself (tried though). I installed OpenACS with AOLServer4 to be started with daemontools. When I started the service openasc5 with

svc -u openacs5

it works, but when I  kill the server, it restarts, but refuses connections. After the restart error.log says:

[07/Jun/2004:00:25:32][18228.1024][-main-] Notice: nsmain: AOLserver/4.0 running
[07/Jun/2004:00:25:32][18228.1024][-main-] Notice: nsmain: security info: uid=1004, euid=1004, gid=1004, egid=1004
[07/Jun/2004:00:25:32][18228.2051][-sched-] Notice: sched: starting
[07/Jun/2004:00:25:32][18228.1024][-main-] Error: nssock: failed to listen on 213.239.201.239:80: Permission denied
[07/Jun/2004:00:25:32][18228.8201][-driver-] Notice: starting
[07/Jun/2004:00:25:32][18228.8201][-driver-] Notice: driver: accepting connections
[07/Jun/2004:00:26:30][18228.9226][-sched:idle0-] Notice: starting

What's the mistake?

Thank you
Christof

there is a command line parameter of

-b 213.239.201.239:80

that probably isn't being passed.

Chris, -b 213.239.201.239:80 is in the openacs5/etc/daemontools/run script. Must me something else?
AOlserver is not releasing the port. Try the newest AOLserver 4.0.3, I believe this has been fixed.
Dave, I just installed latest AOLServer 4.0.5, but the problem remains the same 😟 The server doesn't accept connections after an automatic restart. If I kill it manually with svc -o and restart it, it works.

Maybe it needs some time in between before the restart?

Ok, I tried to give AOLserver a little sleep in between:

sleep 4

in the daemontools/run file and it works. Found it in a another post here by googling. Thanks!

Christof,

You might also try 'svc -du', compliments of Bart (https://openacs.org/forums/message-view?message_id=187691).

/R