Forum OpenACS Q&A: Re: Still using OACS 3.2.5...Upgrade? How?
Please provide details on how you installed the Tcl + AOLserver bundle on your Ubuntu platform. My guess is (from reading the modified config.tcl) that you did not use the packaged versions (https://openacs.org/xowiki/ubuntu) but that you staged custom builts from the source distributions? If so, please provide the exact steps of compiling and installing Tcl + AOLserver.
As for the startup error:
[16/Aug/2010:13:46:14][3020.3065916272][-default:0-] Error: Error sourcing /var/lib/aolserver/schoolacs/packages/acs-bootstrap-installer/installer/index.tcl: invalid command name "ns_getform" while executing "ns_getform"
I think you continue using your 3.2.5 config.tcl under 5.6 which won't work. The most obvious problem to me, which relates to the above error condition (which occurs upon configuring a first connection thread), is that in the 3.2.5 config.tcl the Tcl thread extension (in contrast to AOLservers nsthread module) is not loaded:
(your config.tcl)
# nsthread library which should become standard in 5.3 # ns_param libthread [lindex [glob ${homedir}/lib/libnsthread*[info sharedlibextension]] 0]
(the current 5.6 config.tcl)
see e.g. http://fisheye.openacs.org/browse/OpenACS/openacs-4/etc/config.tcl?r=HEAD
ns_param libthread [lindex [glob ${homedir}/lib/thread*/libthread*[info sharedlibextension]] 0]
Did you install the Tcl thread extension? What were the installation instructions you followed?
Many Thanks for your time and the detailed reply.
Indeed I have custom installed/compiled Aolserver, Postgresql , TCLTK from the tar zips available for ubuntu lucid distro.
I have compiled TCLTK with --enable-threads option with location optionas /usr/local/aolserver.
I have compile Aolserver4.5.3 with location option as /usr/local/aolserver --with-tcl=/usr/local/aolserver.
The Postgresql install location is /usr/local/pgsql
I did not use the packages for 2 reasons 1. The install instructions re locations for AOLserver , Postgres & TCLTK have been changing from version to version of OpenAcs. I went by the locations in the earliest version of OpenAcs. 2. I am new to CVS or SVN and I did not want to search around for locations of bin,lib,include files.
As recommended by you I will try with config.tcl for OpenAcs5.6.
I will get back as soon as I am done...
Regards,
Gunalan
I have compiled and installed TCL 8.5.8 with the following options :
--prefix = /usr/local/aolserver
--enable-threads
--enable-shared
--enable-symbols
--enable-langinfo
I remember commenting the libthread option because it was giving mod-load error. Now I have restored it and the error is given below.
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: nsmain: AOLserver/4.5.1 starting
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: nsmain: security info: uid=1002, euid=1002, gid=1001, egid=1001
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur = 1024, rl_max = 1024
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: encoding: loaded: utf-8
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: fastpath[schoolacs]: mapped GET /
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: fastpath[schoolacs]: mapped HEAD /
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: fastpath[schoolacs]: mapped POST /
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: adp[schoolacs]: mapped GET /*.adp
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: adp[schoolacs]: mapped HEAD /*.adp
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: adp[schoolacs]: mapped POST /*.adp
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssock.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nslog.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: nslog: opened '/var/lib/aolserver/schoolacs/log/schoolacs.log'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssha1.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nsdb.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nspostgres.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: PostgreSQL loaded.
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Notice: modload: loading '/usr/local/aolserver/lib/libnsthread.so'
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Warning: modload: could not find Ns_ModuleInit in /usr/local/aolserver/lib/libnsthread.so
[18/Aug/2010:11:09:20][2088.3078702784][-main-] Fatal: modload: failed to load module '/usr/local/aolserver/lib/libnsthread.so'
Regards,
Gunalan
Tcl8.5 is installed in /usr/local/aolserver
Options used:
--prefix=/usr/local/aolserver
--enable-threads
--enable-shared
--enable-symbols
--enable-langinfor
Aolserver is installed in /usr/local/aolserver
options used for compiling :
--with-tcl=/usr/local/aolserver/lib
Posgresql is installed in /usr/local/pgsql
based on instructions in OpenAcs5.6.0 document
Postgres , Web user and group ids have been created as required and given ownership of /usr/local/pgsql
Pgclient and psql have been installed and are working fine
Openacs5.6.0 files are in /var/lib/aolserver/schoolacs
config file for aolserver is in /var/lib/aolserver/schoolacs/etc
schoolacs, web user and group ids own /var/lib/aolserver/schoolacs
I had the following error while re-installing TCL8.5.8 - just to be sure that I had compiled with --enable-shared and --enable-threads options.
exec.test
==== exec-9.7 commands returning errors FAILED
==== Contents of test case:
list [catch {exec [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2 ; \"$path(sleep)\" 1" | [interpreter] "$path(sh)" -c "\"$path(echo)\" error msg 1>&2 ; \"$path(sleep)\" 1"} msg] $msg
---- Result was:
1 {error msg}
---- Result should have been (exact matching):
1 {error msg
error msg}
==== exec-9.7 FAILED
execute.test
expr-old.test
expr.test
fCmd.test
fileName.test
fileSystem.test
for-old.test
for.test
foreach.test
format.test
get.test
history.test
http.test
Running httpd in thread 1081539440
httpold.test
if-old.test
if.test
incr-old.test
incr.test
indexObj.test
info.test
init.test
: Total 25 Passed 25 Skipped 0 Failed 0
interp.test
io.test
ioCmd.test
ioUtil.test
iogt.test
join.test
lindex.test
link.test
linsert.test
list.test
listObj.test
llength.test
load.test
lrange.test
lrepeat.test
lreplace.test
lsearch.test
lset.test
lsetComp.test
macOSXFCmd.test
macOSXLoad.test
main.test
mathop.test
misc.test
msgcat.test
namespace-old.test
namespace.test
notify.test
obj.test
opt.test
package.test
parse.test
parseExpr.test
parseOld.test
pid.test
pkg.test
: Total 384 Passed 384 Skipped 0 Failed 0
pkgMkIndex.test
platform.test
proc-old.test
proc.test
pwd.test
reg.test
regexp.test
regexpComp.test
registry.test
rename.test
result.test
safe.test
scan.test
security.test
set-old.test
set.test
socket.test
source.test
split.test
stack.test
string.test
stringComp.test
stringObj.test
subst.test
switch.test
tcltest.test
thread.test
timer.test
tm.test
trace.test
unixFCmd.test
unixFile.test
unixInit.test
unixNotfy.test
unknown.test
unload.test
uplevel.test
upvar.test
utf.test
util.test
var.test
while-old.test
while.test
winConsole.test
winDde.test
winFCmd.test
winFile.test
winNotify.test
winPipe.test
winTime.test
Tests ended at Wed Aug 18 11:51:33 IST 2010
all.tcl: Total 24472 Passed 23250 Skipped 1221 Failed 1
Sourced 137 Test Files.
Files with failing tests: exec.test
Number of tests skipped for each constraint:
9 !ieeeFloatingPoint
3 asyncPipeChan
76 bigEndian
1 dontCopyLinks
59 emptyTest
2 hasIsoLocale
1 impossible
27 knownBug
2 largefileSupport
100 localeRegexp
12 longIs64bit
14 macosxFileAttr
17 memory
40 nonPortable
265 notRoot
8 nt
1 testWinCPUID
7 testaccessproc
1 testexprparser && !ieeeFloatingPoint
8 testopenfilechannelproc
7 teststatproc
1 testwinclock
21 testwordend
3 unknownFailure
2 unthreaded
523 win
Regards,
Gunalan