Forum OpenACS Q&A: Re: Problem duplicating server setup

Collapse
Posted by Jesse Kipp on
A tcl procedure registered with ns_register_filter is bombing out because you are missing a tcl library or package that uses the namespace 'parameter'. Maybe the $AOLHOME/servers/servername/modules/tcl directory did not get copied, or maybe when you copied something the permissions on a file got changed so that aolserver doesn't have permission to read it.

You could try 'grep -r "namespace eval ::package" *' in your old server directories to try to figure out what is missing.

Collapse
Posted by Sean Redmond on

Maybe the $AOLHOME/servers/servername/modules/tcl directory did not get copied

Thanks. That was the clue I needed. The config file for the original server is in /usr/local/aolserver. In setting up the copy, I put the config file in /web/devel/etc, more in line with the current installation instructions, and that was causing the problem, because my config file (which has been around for a while) set $homedir like so:

set homedir [file dirname [ns_info config]]

So this caused it so look for /web/devel/etc/modules/tcl. Moving the config file to /usr/local/aolserver fixed it as did just setting $homedir to /usr/local/aolserver, like the current reference config