Hi, I'm trying to set up 2 or 3 pools for a second database. I'm getting this error, even when I configure the second database to be the same and the main database pools (where pool1, pool2, and pool3 work..):
no access to pool: "pool4"
while executing
"ns_db gethandle $pool"
invoked from within
"db_with_handle -dbn $dbn db {
set selection [db_exec select $db $full_statement_name $sql]
set result [list]
while { [db_getro..."
(procedure "db_list" line 23)
invoked from within
"db_list -dbn other1 get_
.....
Any ideas about the cause?
Here's the relevant portions of the config.tcl file:
ns_section ns/db/pools
ns_param pool1 "Pool 1"
ns_param pool2 "Pool 2"
ns_param pool3 "Pool 3"
ns_param pool4 "Pool4 Other1"
ns_param pool5 "Pool5 Other1"
ns_param pool6 "Pool6 Other1"
ns_section ns/db/pool/pool1
...
ns_section ns/db/pool/pool2
...
ns_section ns/db/pool/pool3
...
ns_section ns/db/pool/pool4
# in this section, changed ${db_name} to a predefined ${other1_name}, doesn't work with ${db_name} either (same error)
...
ns_section ns/db/pool/pool5
# in this section, changed ${db_name} to a predefined ${other1_name}, doesn't work with ${db_name} either (same error)
...
ns_section ns/db/pool/pool6
# in this section, changed ${db_name} to a predefined ${other1_name}, doesn't work with ${db_name} either (same error)
...
ns_section ns/server/${server}/db
ns_param pools pool1,pool2,pool3
# old was: ns_param pools "*"
ns_param defaultpool pool1
# following from https://openacs.org/doc/tutorial-second-database.html
ns_section ns/server/${server}/acs/database
ns_param database_names [list main other1]
ns_param pools_main [list pool1 pool2 pool3]
ns_param pools_other1 [list pool4 pool5 pool6]