Forum OpenACS Q&A: Re: Aolserver 4.0 with Postgres 7.2 , invalid command name "ns_db"
MANY thanks for the tip, which I put to use: I'd put "ns_param nsdb ${bindir}/nsdb.so"
in the wrong place, so now the program finds the database and runs with it, loading lots of openacs and dotlrn but with hundreds of queries and a final, concluding flurry of error messages. So, we're making progress.
I'm hoping I might ask you and others for a quick review of these errors and my code as my partner and I are near our wits end. I'll first list the errors, then the frontend.tcl and backend.tcl codes. Many thanks for any advice you might offer!
Bruce
========================================
1) Errors.
Error: Error sourcing /var/lib/aolserver/service3400/packages/ notifications/tcl/reply-sweep-init.tcl: invalid command name "ns_cache"
Error: Error sourcing /var/lib/aolserver/service3400/packages/acs-templating/tcl/template-init.tcl: invalid command name "ns_cache" Debug: PLPGSQL: bypassed anon function
Error: duplicate server: service3400
Error: server: duplicate host mapping: happy.zedat.fu-berlin.de
Error: server: duplicate host mapping: happy.zedat.fu-berlin.de:80
Error: nslog: mkdir(/usr/local/aolserver40r2/modules/nslog) failed: Permission denied
Error: modload: init /usr/local/aolserver40r2/bin/nslog.so of Ns_ModuleInit returned: -1
Fatal: modload: failed to load module '/usr/local/aolserver40r2/bin/nslog.so'
Error: Error sourcing /var/lib/aolserver/service3400/packages/notifications/tcl/reply-sweep-init.tcl: invalid command name "ns_cache" while executing "ns_cache get util_memoize $script pair"
[plus: a thousand queries: Notice: Querying 'select apm_package__num_instances(...
2) frontend.tcl
#frontend.tcl
ns_log notice "reading front end"
set debug true
set homedir /usr/local/aolserver40r2
set bindir ${homedir}/bin
set serverdesc "skidoo"
# Load nssock globally
ns_section ns/modules
ns_param nssock /usr/local/aolserver40r2/bin/nssock.so
ns_param nssock ${bindir}/nssock.so
ns_param nslog ${bindir}/nslog.so
ns_param nssha1 ${bindir}/nssha1.so
ns_param nscache ${bindir}/nscache.so
ns_param nsdb ${bindir}/nsdb.so
#ns_param nsrewrite ${bindir}/nsrewrite.so
ns_section ns/module/nssock
ns_param port 80
ns_param hostname skidoo.zedat.fu-berlin.de
ns_param address 0.0.0.0
# Map headers to server-name
ns_section ns/module/nssock/servers
ns_param service3400 happy.zedat.fu-berlin.de
ns_param service3400 happy.zedat.fu-berlin.de:80
# ns_param backend2 backend2.com
# ns_param backend2 backend2.com:80
# ns_param backend2 myotherdomain.com
# ns_param backend2 myotherdomain.com:80
ns_section ns/servers
ns_param service3400 "My First Example Site"
# ns_param backend2 "My Second Example Site"
# global parameters
ns_section ns/parameters
ns_param serverlog /usr/local/aolserver40r2/log/error.log
ns_param home $homedir
ns_param maxkeepalive 0
ns_param logroll on
ns_param maxbackup 5
ns_param debug $debug
# Thread library (nsthread) parameters
ns_section ns/threads
ns_param mutexmeter true
ns_param stacksize [expr 128 * 8192]
# MIME types.
ns_section ns/mimetypes
ns_param Default text/plain
ns_param NoExtension text/plain
ns_param .pcd image/x-photo-cd
ns_param .prc application/x-pilot
ns_param .xls application/vnd.ms-excel
ns_param .doc application/vnd.ms-word
source /var/lib/aolserver/service3400/etc/config.tcl
ns_log notice "nsd.tcl: finished reading frontend config file."