Forum OpenACS Development: acs-boostrap crashes

Collapse
Posted by Iuri Sampaio on
Rebooting OACS with acs-lang translator mode enabled (i.e. TRN activated) causes a system crash. See logs bellow: I haven't finished debugging yet. I'll paste the results later on.

Best wishes,
Iuri

[14/Sep/2017:20:54:44][23353.7f67e7fff700][-sched:idle0-] Notice: starting


[14/Sep/2017:20:55:19][23353.7f6803fff700][-conn:evex:0-] Notice: random: generating 1 seed
[14/Sep/2017:20:55:20][23353.7f6803fff700][-conn:evex:0-] Error: rp_report_error: Error rendering error page (!)
expected boolean value but got ""
    while executing
"if { [lang::util::translator_mode_p] } {
        # Translator mode - record the message lookup
        lang::util::record_message_lookup $key
        ..."
    (procedure "lang::message::lookup" line 78)
    invoked from within
"lang::message::lookup "" $key "TRANSLATION MISSING" $substitution_list 2"
    (procedure "_" line 2)
    invoked from within
"_ acs-tcl.lt_Error_Report_in_ad_sy"
    ("uplevel" body line 31)
    invoked from within
"uplevel {
    # /packages/acs-tcl/lib/page-error.tcl 

ad_page_contract {
    
    @author Victor Guerra (guerra@galileo.edu)
    @creation-date 2005-..."
    (procedure "code::tcl::/var/www/evex/packages/acs-tcl/lib/page-error" line 2)
    invoked from within
"code::tcl::$__adp_stub"
    ("uplevel" body line 12)
    invoked from within
"uplevel {

        if { [file exists $__adp_stub.tcl] } {

            # ensure that data source preparation procedure exists and is up-to-date
      ..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare"
    invoked from within
"template::adp_parse /var/www/evex/packages/acs-tcl/lib/page-error {stacktrace expected\ boolean\ value\ but\ got\ \"\"\n\ \ \ \ while\ executing\n\"if..."
    ("uplevel" body line 1)
    invoked from within
"uplevel [list template::adp_parse [template::util::url_to_file $template [ad_conn file]] $template_params]"
    (procedure "::nsf::procs::ad_parse_template" line 10)
    invoked from within
"ad_parse_template -params $params "/packages/acs-tcl/lib/page-error""
    ("uplevel" body line 2)
    invoked from within
"uplevel $body "
[14/Sep/2017:20:55:20][23353.7f6803fff700][-conn:evex:0-] 

Collapse
2: Re: acs-boostrap crashes (response to 1)
Posted by Iuri Sampaio on
Furthermore, how to I recover the system?

I'm unable to run any script through the website. Neither / nor /ds/shell. All pages throws the error posted above.

How and where would I run lang::util::translator_mode_set (public) 0 ?

Or even better, is there a psql function to set translation mode to 0?

/api-doc/proc-view?proc=lang%3a%3autil%3a%3atranslator_mode_set&source_p=1
/api-doc/proc-view?proc=ad_set_client_property&source_p=1

Best wishes,

Collapse
3: Re: acs-boostrap crashes (response to 1)
Posted by Iuri Sampaio on
It seems I got it back. The bug is somehow related to the session variables. Not sure.

Nevertheless, the issue is still there. Meaning, if I enable translator mode then restart Naviserver, the system crashes.

I'll continue debugging and if I find anything I past here.

Best wishes,

Collapse
4: Re: acs-boostrap crashes (response to 1)
Posted by Gustaf Neumann on
Dear Iuri: I have tried with OpenACS 5.9.1:
a) start server
b) active developer support
c) activate TRN
d) restart the server

everything is fine (ds and TRN are turned off). neither turning ds on/off or TRN of/off reveal an error.

Probably you are using some old version. If the problem persists on your site, please submit a proper bug-report with version numbers on the bug tracker.

Collapse
5: Re: acs-boostrap crashes (response to 4)
Posted by Iuri Sampaio on
Sure.
The error's gone for now. I don't know what was the cause then. If it repeats I'll investigate it further to collect more details.
Best wishes,