This is in AOLserver 4.5.1.
Error: tcl: source /usr/local/aolserver/modules/tcl/pools.tcl failed: maxconns cannot be less than 1
I can change that and that error will go away, but I do not think that is what I should be doing.
I did not have this issue in 4.5.0.
# $Header: /cvsroot/aolserver/aolserver/nsd/Attic/sample-config.tcl,v 1.2.4.1 2002/09/17 23:52:03 jgdavidson Exp $
#
# sample-config.tcl -- The AOLserver Startup Script
#
# This is a Tcl script that is sourced when AOLserver starts up.
# A detailed reference is in "doc/config.txt".
#
ns_log notice "nsd.tcl: starting to read config file for server0..."
#
# Set some Tcl variables that are commonly used throughout this file.
#
set httpport 80
set httpsport 8443
# The hostname and address should be set to actual values.
set hostname [ns_info hostname]
set address 0.0.0.0
set servername "server0"
set serverdesc "Server 0"
set homedir /usr/local/aolserver
set bindir /usr/local/aolserver/bin
set pageroot ${homedir}/servers/${servername}/pages
set directoryfile index.tcl,index.adp,index.html,index.htm
set ext .so
set serverlog ${homedir}/servers/${servername}/server_log/server.log
#
# Global server parameters
#
ns_section "ns/parameters"
ns_param home $homedir
ns_param debug false
ns_param serverlog $serverlog
ns_param user nsadmin
ns_param logroll on
ns_param logmaxbackup 10
#ns_param mailhost $the_mailhost ;# do not set this parameter - it causes the server to die
ns_param keepalivetimeout 30; # keepalivetimeout
#
# Thread library (nsthread) parameters
#
ns_section "ns/threads"
ns_param mutexmeter true ;# measure lock contention
ns_param stacksize [expr 1024*1024] ;# Per-thread stack size.
#
# MIME types
#
# Note: AOLserver already has an exhaustive list of MIME types, but in
# case something is missing you can add it here.
#
ns_section "ns/mimetypes"
ns_param default "*/*" ;# MIME type for unknown extension.
ns_param noextension "*/*" ;# MIME type for missing extension.
ns_param ".xls" "application/vnd.ms-excel"
ns_param ".qtl" "application/x-quicktimeplayer"
ns_param ".gif" "image/gif"
############################################################
#
# Server-level configuration
#
# There is only one server in AOLserver, but this is helpful when multiple
# servers share the same configuration file. This file assumes that only
# one server is in use so it is set at the top in the "server" Tcl variable.
# Other host-specific values are set up above as Tcl variables, too.
#
ns_section "ns/servers"
ns_param $servername $serverdesc
#
ns_section "ns/server/${servername}"
ns_param directoryfile $directoryfile
ns_param pageroot $pageroot
ns_param globalstats false ;# Enable built-in statistics.
ns_param urlstats false ;# Enable URL statistics.
ns_param maxurlstats 1000 ;# Max number of URL's to do stats on.
#
# Scaling and Tuning Options
#
# Note: These values aren't necessarily the defaults.
#
ns_param connsperthread 1 ;# Normally there's one conn per thread
ns_param flushcontent false ;# Flush all data before returning
# ns_param maxconnections 5 ;# Max connections to put on queue
ns_param maxdropped 0 ;# Shut down if dropping too many conns
ns_param socktimeout 30
# ns_param threadtimeout 120 ;# Idle threads die at this rate
ns_param maxkeepalive 100
# Directory listings -- use an ADP or a Tcl proc to generate them.
#ns_param directoryadp $pageroot/dirlist.adp ;# Choose one or the other.
ns_param directoryproc _ns_dirlist ;# ...but not both!
ns_param directorylisting simple ;# Can be simple or fancy.
# miscellaneous
ns_param enabletclpages true ;# Parse *.tcl files in pageroot.
ns_param enableaolpress false
ns_param checkmodifiedsince true
ns_param flushcontent false
ns_param noticedetail true
ns_param headercase preserve
ns_param outputcharset UTF-8
ns_param sendfdthreshold 2048
ns_param errorminsize 514
ns_param maxline 16384
ns_param maxheaders 65536
ns_param maxpost 62914560
#
# Internal redirects
#
ns_section "ns/server/${servername}/redirects"
ns_param 404 /redirects/notfound.tcl
ns_param 500 /redirects/servererror.tcl
ns_param 403 /redirects/forbidden.tcl
#
# fastpath serves html
#
ns_section "ns/server/${servername}/fastpath"
ns_param cache 10
ns_param cachemaxentry 524288
ns_param cachemaxsize 5242880
ns_param mmap false
ns_param pageroot $pageroot
ns_param directorylisting fancy
ns_param directoryproc css_dirlist
ns_param directoryfile $directoryfile
ns_param directoryadp {}
#
# Tcl interpreter
#
ns_section "ns/server/${servername}/tcl"
ns_param autoclose true
ns_param debug false
ns_param nsvbuckets 8
ns_param statlevel 0
ns_param statmaxbuf 100
ns_param library ${homedir}/servers/${servername}/modules/tcl
#
# ADP (AOLserver Dynamic Page) configuration
#
ns_section "ns/server/${servername}/adp"
ns_param map /*.adp ;# Extensions to parse as ADP's.
ns_param map /*.html ;# Any extension can be mapped.
ns_param enableexpire false ;# Set "Expires: now" on all ADP's.
ns_param enabledebug true ;# Allow Tclpro debugging with "?debug".
ns_param defaultparser fancy
ns_param cachesize 5242880
# do we need these?
ns_param cache on ; # caching is enabled
# ADP special pages
ns_param errorpage ${pageroot}/errorpage.adp ;# ADP error page.
#
# ADP custom parsers -- see adp.c
#
ns_section "ns/server/${servername}/adp/parsers"
ns_param adp ".adp" ;# adp is the default parser.
ns_param fancy .adp
#
# Modules to load
#
ns_section "ns/server/${servername}/modules"
ns_param nssock ${bindir}/nssock${ext}
ns_param nslog ${bindir}/nslog${ext}
ns_param nsperm ${bindir}/nsperm${ext} ;# Edit passwd before using.
# ns_param nsxml ${bindir}/nsxml${ext} ; # old nsxml module
ns_param nsdb ${bindir}/nsdb${ext}
# ns_param php ${bindir}/libphp5${ext}
# ns_param nscache ${bindir}/nscache${ext} ; # ns_cache module
# PHP
# ns_section "ns/server/${servername}/module/php"
# ns_param map *.php
#
# Socket driver module (HTTP) -- nssock
#
ns_section "ns/server/${servername}/module/nssock"
ns_param port $httpport
ns_param hostname $host ; # was $hostname
ns_param address $address
ns_param location $location
#
# Access log -- nslog
#
ns_section "ns/server/${servername}/module/nslog"
ns_param file ${homedir}/servers/${servername}/access.log
ns_param enablehostnamelookup false
ns_param formattedtime true
ns_param logcombined true
ns_param logrefer true
ns_param loguseragent true
ns_param rollday *
ns_param rollfmt %Y-%m-%d-%H:%M
ns_param rolllog true ;# Should we roll log?
ns_param rollonsignal true ;# Roll log on SIGHUP.
ns_param rollhour 0 ;# Time to roll log.
ns_param maxbackup 10 ;# Max number to keep around when rolling.
#
# Database drivers
#
ns_section "ns/db/drivers"
ns_param postgres ${bindir}/nspostgres${ext}
#
# Database pools
#
ns_section "ns/db/pools"
ns_param tmayes "Pool for postgres database"
#
# database pool () configuration
#
ns_section "ns/db/pool/tmayes"
ns_param driver postgres
ns_param connections 20
ns_param datasource localhost:5432:testdb
ns_param user nsadmin
ns_param password {}
ns_param verbose true
ns_param logsqlerrors true
ns_param extendedtableinfo true
ns_param maxidle 1000000000
ns_param maxopen 1000000000
#
# Database pools accessible by server
#
ns_section "ns/server/${servername}/db"
ns_param pools *
ns_param defaultpool "tmayes"
# set file max size
# ns_limits set default -maxupload [expr 15 * 1024 * 1024] ;# Maximum file size set to 15Mb - default is 10Mb
ns_log notice "nsd.tcl: finished reading config file for server0)."