Forum OpenACS Q&A: Response to Help! I'm sitewide adm. and I can't get access to files in /users

Are you suggesting you've not changed any code? What script is causing the error?

This error means that the thread has tried to do a ns_db gethandle twice on the same database pool. You can only do this once in a thread - this restriction avoids a common deadlock scenario.

You are allowed to grab more than one handle on that single call, or to grab handles from another pool. OpenACS 3.2.5 uses both methods, i.e.

set db_handle_list [ns_db gethandle main 2] # or is that 2 main?
set db [lindex $db_handle_list 0]
set db1 [lindex $db_handle_list 0]
or by grabbing a second handle from the "subquery" pool (typically used in library procs called by scripts).

We need more data - at least the URL that's causing the problem.