Forum OpenACS Q&A: Re: Backup script doesn't get sourced

Collapse
Posted by Jarkko Laine on
Well, I'm not sure if this has anything to do with the original problem, but I installed monitoring package to track if the proc is scheduled. However, when trying to get the scheduled-procs page from Monitoring home, I just get the following error:



can't use non-numeric string as operand of "+"
    while executing
"expr { [lindex $a 5] + [lindex $a 2] }"
    (procedure "ad_scheduled_procs_compare" line 2)
    invoked from within
"ad_scheduled_procs_compare {t f {0 0} notification::sweep::sweep_notifications {-interval_id 4127 -batched_p 1} 1041855066 0 t} {f f 1800 rss_gen_serv..."
    (-compare command)
    invoked from within
"lsort -command ad_scheduled_procs_compare [nsv_get ad_procs .]"
    invoked from within
"foreach proc_info [lsort -command ad_scheduled_procs_compare [nsv_get ad_procs .]] {
    set bgcolor [lindex $bgcolors [expr { $counter % [llength $bg..."
    ("uplevel" body line 52)
    invoked from within
"uplevel {
      # /admin/monitoring/scheduled-procs.tcl

ad_page_contract {
    Displays a list of scheduled procedures.

    @author Jon Salz (jsalz..."
    (procedure "code::tcl::/web/suisse/packages/monitoring/www/scheduled-pro..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

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

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
$handler
      } ad_script_abort val {
# do nothing
      }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
rp_serve_abstract_file "$root/$path"
set tcl_url2file([ad_conn url]) [ad_conn file]
set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."
Collapse
Posted by Vinod Kurup on
Hi Jarkko,

I fixed that problem in the monitoring package a few days ago (on the CVS HEAD). It happened when you use ad_schedule_proc to schedule a daily or weekly proc. I think it's unrelated to your backup script not getting read.