Forum OpenACS Q&A: Re: FreeBSD, AOL Server 4 and OpenACS 5 (HEAD)

Collapse
Posted by Tyge Cawthon on
GREAT Instructions.  Below are some findings I discovered
and I would appreciate help.  Thanks in advance.

"Prepare AOLserver"
1. permission issue with /usr/local/aolserver/servers/server1/modules/nslog/access.log

changed from rw-r-r to 755.

Aolserver works but getting Warning: config.tcl: nsssl not loaded -- key/cert files does not exist.

Any suggestion why this is?

"Bring daemontools down: Test"

1. /usr/local/bin/svc -dx /var/lib/aolsever/service0/etc/daemontools
error: svc warning: unable to control. File does not exist.

2. /usr/local/bin/svstat/service/servic0
error: unable to chdir. File does not exist.

"Install with automated script"

1. ee /home/service0/install/install.sh
FYI -
change "." to ":" is line 427

Not sure what to do here and need help.
/home/service0/install/install.sh

ee /home/service0/install/install.tcl
I made the recommended changes under to install.tcl
example:
set server_host highlandpiping.net
set server_ip 69.212.248.18
set server_url -b  "http://${server_ip}:${server_port}"

Is this the correct format and method?
FYI - I own the IP and name.

Running install.sh, below are the results
I noticed that not all the variables appear.  Is this a problem? i.e.  "Using serverroot=,server_url=,....do_install=yes,"

I would appreciate any help.  Thanks in advance.

Thu Oct  7 19:03:56 EDT 2004: Starting installation with config_file ./install.tcl. Using serverroot=, server_url=, do_checkout=, do_install=yes, dotlrn=, and database=., use_daemontools=
Thu Oct  7 19:03:56 EDT 2004: Taking down
Thu Oct  7 19:03:56 EDT 2004: Issuing command
./install.sh: line 263: test: 0: unary operator expected
Thu Oct  7 19:03:56 EDT 2004: Recreating database user and database.
./install.sh: line 290: [: ==: unary operator expected
su: Sorry
./install.sh: line 326: [: ==: unary operator expected
Thu Oct  7 19:03:56 EDT 2004: Proceeding without checkout.  This assumes that you have a full working site already set up at , including correctly configured /etc/config.tcl and
Thu Oct  7 19:03:56 EDT 2004: Bringing  back up
Thu Oct  7 19:03:56 EDT 2004: Issuing command
./install.sh: line 473: test: 0: unary operator expected
./install.sh: line 491: [: ==: unary operator expected
Thu Oct  7 19:04:00 EDT 2004: Starting installation of OpenACS.
./install.sh: line 505: /tclwebtest: No such file or directory
Thu Oct  7 19:04:00 EDT 2004: Restarting
Thu Oct  7 19:04:00 EDT 2004: Issuing command
./install.sh: line 532: test: 0: unary operator expected
./install.sh: line 581: ${install_error_file}: ambiguous redirect

Collapse
Posted by xx xx on
Brian, I'm in a hurry, but here are some remarks:

1. Ignore "..nsssl not loaded.." or comment it out in your config.tcl file.
2. "I noticed that not all the variables appear.  Is this a problem?" No.
3. When you use "./install.sh" instead of "sh ./install.sh", it usually doesn't complain about "[: ==: unary operator expected" anymore.  If it still does change all "==" to "=" in install.sh (AFAIK Jade recently corrected it in CVS).
4."change '.' to ':' in line 427" probably means replace "chown -R service0.web ..." with "chown -R service0:web ..."
5. did you install tclwebtest?
6. Maybe others can comment on steps to be taken when daemontools doesn't work. Try search. There also seems to be a typo "servic0"
7. Try set deamontools to "no" in install.sh and set start_server_command "exec /usr/local/aolserver/bin/nsd-postgres -b ${server_ip}:${server_port} -it $serverroot/etc/config.tcl -u $aolserver_user -g $aolserver_group" (or better, just don't use install.sh)

Collapse
Posted by Tyge Cawthon on
Aldert - Thanks for your suggestions.

item 1 - closed
itme 2 - thanks for the information. Closed
item 3 - closed
item 4 - closed
item 5 - tclwebtest was/is installed.  I had to "hardcode" the pathname in the install.sh (line 505).  No longer an issue.
item 6 - Open.  The typo was in my message. Anyone?
item 7 - Open.  I changed the install.tcl file to your suggestions.  As you can see from below, I am still getting errors.

You suggested "better, don't use install.sh".
Could you please point me in the right direction. I am new and have been doing a lot of reading, but not sure which direction to go.  Once again thanks for all you help.

When I am finished with this, I hope to have a "complete" start to end documentation (error free) on how to load OpenACS on FreeBSD for people like me.

FYI - I looked at the install.sh file and went to each line to try to better understand the error messages below.

install.sh messages below here.
On your system, tclsh is installed under at least the following names:

tclsh8.4
Fri Oct  8 14:30:13 EDT 2004: Starting installation with config_file ./install.tcl. Using serverroot=, server_url=, do_checkout=, do_install=yes, dotlrn=, and database=., use_daemontools=
Fri Oct  8 14:30:13 EDT 2004: Taking down
Fri Oct  8 14:30:13 EDT 2004: Issuing command
./install.sh: line 263: test: 0: unary operator expected
Fri Oct  8 14:30:13 EDT 2004: Recreating database user and database.
./install.sh: line 290: [: =: unary operator expected
su: Sorry
./install.sh: line 326: [: =: unary operator expected
Fri Oct  8 14:30:13 EDT 2004: Proceeding without checkout.  This assumes that you have a full working site already set up at , including correctly configured /etc/config.tcl and
Fri Oct  8 14:30:13 EDT 2004: Bringing  back up
Fri Oct  8 14:30:13 EDT 2004: Issuing command
./install.sh: line 473: test: 0: unary operator expected
./install.sh: line 491: [: =: unary operator expected
Fri Oct  8 14:30:18 EDT 2004: Starting installation of OpenACS.
In FreeBSD, tclsh is named with a version number.  This is because
different versions of tclsh are not compatible with each other and
they can not all be called "tclsh"!  You may need multiple versions
installed because a given port may depend on a specific version.

On your system, tclsh is installed under at least the following names:

tclsh8.4
Fri Oct  8 14:30:18 EDT 2004: Restarting
Fri Oct  8 14:30:18 EDT 2004: Issuing command
./install.sh: line 532: test: 0: unary operator expected
./install.sh: line 581: ${install_error_file}: ambiguous redirect

Collapse
Posted by Tyge Cawthon on
I justed notice from the install.sh messages the line

"Fri Oct  8 14:30:13 EDT 2004: Proceeding without checkout.  This assumes that you have a full working site already set up at , including correctly configured /etc/config.tcl and"

I looked in my /etc directory I do not see a "config.tcl"

Could this be an issue?