Forum OpenACS Q&A: Vlad's ATS giving me problems

Collapse
Posted by Patrick Giagnocavo on
Vlad was kind enough to post his version of the ATS during a discussion in this thread:

Here is the thread

However, I have been having problems getting it working. The demo files have been installed; showi.tcl and compile.tcl work fine, however I get an error message when trying to actually view the templated file (ie run the page).

Has anyone else run into similar problems? I have tried this under both "classic" AOLserver v3.0 and under mod_aolserver.

Collapse
Posted by Vlad Seryakov on
What was the error message?
Can you provide with errors from log file and your browser.
Thank you
Collapse
Posted by Grzegorz Mucha on
I too have a problem with the ATS. However, mine is, that after adding the neccessary code to nsd.tcl I can't access any pages - server.log keeps saying about 'sec_read_security_info' returning illegal value, literally 'ForceHostP'
Collapse
Posted by Vlad Seryakov on
There is no sec_read_security in ATS code, i recommend to test it standalone without ACS first. After you install it as a module into modules/tcl/ats and load it in the nsd.tcl section
ns_section "ns/server/${server}/modules"
ns_param ats Tcl
every request that ends with .acs will be handled by ATS. Not all demos will work, because some of them for Oracle, i didn't modify all demos.
Collapse
Posted by Patrick Giagnocavo on
Yes, here is what I get when I attempt to view the "hello"
example. I typed it by hand, so formatting is screwed up.

An internal error occurred while preparing a template
/demo/hello:

can't read "code": no such variable
while executng
"proc ::template::code::$type::$file_stub {} "
uplevel {
$code
}
""
(procedure "template::adp_init "line 29)
invoked from within
"template::adp_init $template_extension $__adp_stub"
(procedure "template::adp_parse" line 59)
invoked from within
"template::adp_parse $file_stub {}"

Environment:  mod_aolserver, with Tcl 8.3.2, on a completely
CLEAN install (no ACS, nothing else).

Entry from nsd.tcl :

ns_section "ns/server/acs/modules"
ns_param ats Tcl

ns_section "ns/server/acs/ats"
ns_param ResourcePath  /var/www/tcl_modules/ats/resources

Error from the error_log file:

[notice] [client 127.0.0.1] [uri: /demo/hello.acs] //demo/hello

Hope this helps, and thank you for  offering to help me figure this
out.

Collapse
Posted by Vlad Seryakov on
Patrick,

can you provide me with part of the server's startup log. I've never
got such error before, i'd like to take a look how ATs was loaded.
Thank you

Collapse
Posted by Vlad Seryakov on
Patrick,
i got your log file,
you should not load resources directory,
if apache mod loads everything, just move this outside Tcl module dir.
if you move resource directory, put config parameter
ns_param ResourcePath /tour_new_path
in yur nsd.tcl config file
your ATS anyway should work
Collapse
Posted by Patrick Giagnocavo on
Vlad, unfortunately I get the same error even after doing this.

Do you have any other thoughts about this?