Forum OpenACS Q&A: Re: installation failure of openacs on a server running Ubuntu 8.04

Hi Stefan,

It's always good to be welcome ! Thank you.

the command ps ax | grep nsd gives back this :

9119 ? Ssl 0:00 /usr/sbin/aolserver4-nsd -u www-data -g www-data -b 127.0.0.1:8000 -t /etc/openacs/config.tcl
9932 pts/0 S+ 0:00 grep nsd

The last 20 lines of /usr/share/openacs/log/error.log are the following :

[10/Jun/2009:09:53:15][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/request-processor-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/rollout-email-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/security-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/server-cluster-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/set-operation-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/site-node-apm-integration-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/site-node-object-map-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/site-nodes-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/sql-statement-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/stack-trace-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/table-display-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/tcl-documentation-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/tdom-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/text-html-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/user-extensions-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/utilities-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/whos-online-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/widgets-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/xml-0-sgml-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/xml-1-dom-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Loading acs-tcl/tcl/xml-2-procs.tcl
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Bootstrap: Installation is not complete - sourcing the installer.
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Sourcing files for postload...
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Done.
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: Executing initialization code blocks...
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: nsmain: AOLserver/4.5.0 running
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: nsmain: security info: uid=33, euid=33, gid=33, egid=33
[10/Jun/2009:09:53:16][9119.3075050384][-sched-] Notice: sched: starting
[10/Jun/2009:09:53:16][9119.3083695792][-main-] Notice: driver: starting: nssock
[10/Jun/2009:09:53:16][9119.3063868304][-nssock:driver-] Notice: starting
[10/Jun/2009:09:53:16][9119.3063868304][-nssock:driver-] Notice: nssock: listening on 127.0.0.1:8000

Thank you for your help,

Gilmar

Gilmar,

The good news is, the basics are fine. The problem is that the the nsd process is limited to listening to request on the localhost *alone*:

[10/Jun/2009:09:53:16][9119.3063868304][-nssock:driver-] Notice: nssock: listening on 127.0.0.1:8000

Assuming that you access the machine remotely (e.g. through the 95.*.*.* address), this won't work then ... you must change the configuration accordingly. Edit the following line(s)in /usr/share/openacs/etc/config.tcl:

# The hostname and address should be set to actual values.
# setting the address to 0.0.0.0 means aolserver listens on all interfaces
set hostname localhost
set address 0.0.0.0

After a restart, it should be fine then.

//stefan

p.s. I won't be able to respond through saturday, in case sth. is unclear, as I am leaving for a hiking trip.

Hallo Stefan,

Vielen Dank für die Hilfe ! Mein Deutsch ist schrecklich so es wird besser auf Englisch sein...

So, I followed your advice. However, I did not find any file "config.tcl" in the folder "/usr/share/openacs/etc" but there was a file named "config.tcl.dpkg-new". I made a copy with a new name ("config.tcl") and I modified and saved it with nano and then, still as root, I typed /etc/init.d/aolserver4 restart. I had the following answer :

gilmar@dotlrn:~$ /etc/init.d/aolserver4 restart
* Stopping web server aolserver4 [ OK ]
* Starting web server aolserver4 [12/Jun/2009:14:59:16][3026.3083183792][-main-] Error: prebind: invalid entry: 127.0.0.1:80: Permission denied [ OK ]

From outside, I tried then http://92.243.19.47/ but no connexion. I connected again with Putty (an ssh utility) and, as the aolserver4 was not running (I saw it with the command ps aux), I typed "/etc/init.d/aolserver4 start".

And then, there was this :

root@dotlrn:/home/gilmar# ps ax | grep nsd
2176 ? Ssl 0:00 /usr/sbin/aolserver4-nsd -u www-data -g www-data -b 127.0.0.1:80 -s main -t /etc/aolserver4/aolserver4.tcl
2273 pts/0 S+ 0:00 grep nsd

And no connexion from outside...

In the folder /etc/aolserver2, there is a file named aolserver4.tcl and it has also a section specifying ports and so on. It says this :

#
# GLOBAL VARIABLES
#

set httpport 80
set httpsport 443
set controlport 9999

set hostname localhost
set address 127.0.0.1

Do I have to change this and replace 127.0.0.1 with 0.0.0.0?

What do you think ?

Thank for your patience (it is a long message, sorry...)

Gilmar

Gilmar,

Sorry, I misguided you, i was confusing the setup variants. The responsible config.tcl in the ubuntu setup is found in:

/etc/openacs/config.tcl

You can learn this also from:

9119 ? Ssl 0:00 /usr/sbin/aolserver4-nsd -u www-data -g www-data -b 127.0.0.1:8000 -t /etc/openacs/config.tcl

You don't have to touch anything related to the aolserver4 package (e.g., /etc/aolserver4/*). This is a bare aolserver installation which is activated by default when installing this package. It is entirely unrelated to the openacs package.

//stefan

Hi Stefan,

It's great, it works !

Thank you indeed for your help and have a nice hiking trip !

Gilmar