Forum OpenACS Development: Server startup failed: Error during bootstrapping

I'm trying to install dotlrn, but i received an error message during the bootstrapping and I'm not sure what is causing it or what to do it. I've included my log file below and would really appreciate it if any of you could help me figure out the problem. I'm using postgresql 7.2.3, aolserver 3.3+ad13 and openacs 4.6 in a machine whith redhat 8.0.I'm following the installation instrutions given in the openacs website.
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 starting
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nsmain: security info: uid=500, euid=500, gid=500, egid=500
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nsmain: max files: FD_SETSIZE
= 1024, rl_cur = 1024, rl_max = 1024
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: return: redirecting '404' to 'global/file-not-found.html'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: return: redirecting '403' to 'global/forbidden.html'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/postgres.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: PostgreSQL loaded.
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: adp: mapped /*.adp
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssock.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nslog.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nslog: opened '/home/admin/web/openacs/log/access.log'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssha1.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nscache.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nscache module version @VER@
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nsrewrite.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nsxml.so'
[26/Mar/2003:13:01:30][1055.8192][-main-] Notice: nsxml module starting
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: conf: [ns/server/openacs]enabletclpages = 0
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Loading OpenACS, rooted at /home/admin/web/openacs
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/bootstrap.tcl
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl
[26/Mar/2003:13:01:31][1055.8192][-main-] Error: Bootstrap: Server startup failed: Error during bootstrapping
syntax error in expression " [nsv_exists proc_source_file $proc_name] \
            && [string"
    ("if" test expression)
    while compiling
"if { [nsv_exists proc_source_file $proc_name] \
            && [string compare [nsv_get proc_source_file $proc_name] [info script]] != 0 } {
        ns_log..."
    (compiling body of proc "ad_proc", line 231)
    invoked from within
"ad_proc -public -deprecated proc_doc { args } {

    A synonym for ad_proc (to support legacy code).
    
} {
    eval ad_proc $args..."
    (file "/home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl" line 393)
    invoked from within
"source $file"
    ("foreach" body line 3)
    invoked from within
"foreach file [lsort $files] {
        ns_log Notice "$proc_name: sourcing $file"
        source $file
    }"
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Sourcing files for postload...[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Done.
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: Executing initialization code
blocks...
[26/Mar/2003:13:01:31][1055.8192][-main-] Error:
invalid command name "ad_find_all_files"
    while executing
"ad_find_all_files -check_file_func __is_xql [acs_root_dir]/$dir"
    ("foreach" body line 2)
    invoked from within
"foreach dir $dirs {
    set files [ad_find_all_files -check_file_func __is_xql [acs_root_dir]/$dir]

   ns_log Debug "QD=Postload files to loa..."
    (file "/home/admin/web/openacs/tcl/zz-postload.tcl" line 48)
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: tcl: generating interp init script
[26/Mar/2003:13:01:31][1055.8192][-main-] Warning: keepalive: insufficient maxkeepalive 0: keepalive disabled
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 running
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: nsmain: security info: uid=500, euid=500, gid=500, egid=500
[26/Mar/2003:13:01:31][1055.16387][-sched-] Notice: sched: starting
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: serv: waiting for warmup
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: serv: warmed up
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: socks: idle
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: sched: idle
[26/Mar/2003:13:01:31][1055.8192][-main-] Notice: nssock: listening on 127.0.0.1:8000
[26/Mar/2003:13:01:31][1055.65545][-nssock-] Notice: nssock: starting
[26/Mar/2003:13:01:31][1055.65545][-nssock-] Notice: nssock: accepting connections
Tanks.
Collapse
Posted by Peter Marklund on
Jorge,
I really don't understand the syntax error that you're experiencing. What do you get if you invoke:

cvs status acs-bootstrap-installer/tcl/00-proc-procs.tcl

You should be on version 1.8.2.4 of the file. The file hasn't changed since the 5:th of march. I successfully installed dotlrn from the head of the 4.6 branch a couple of days ago on both pg and oracle (see http://dotlrn.collaboraid.net/test).

Any errors in the log file previous to the one you posted?

Collapse
Posted by Michael Hinds on
Whenever I see an error that ends in "\" I immediately think "PC format". We see it a lot in here because our source control is Windows based, so we often get files accidentally converted to PC format (^M on the end of the line) rather than Unix format. The Tcl interpreter can cope with this in most cases, but the "\^M" confuses it.
Collapse
Posted by jorge freitas on
I don't have any errors before that one. I have take off the \ sign in the expression
syntax error in expression " [nsv_exists proc_source_file $proc_name] \
            && [string"
and now i get a different type of error:
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 starting
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nsmain: security info: uid=500, euid=500, gid=500, egid=500
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nsmain: max files: FD_SETSIZE = 1024, rl_cur =
1024, rl_max = 1024
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: return: redirecting '404' to 'global/file-not-found.html'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: return: redirecting '403' to 'global/forbidden.html'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/postgres.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: PostgreSQL loaded.
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: adp: mapped /*.adp
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssock.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nslog.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nslog: opened '/home/admin/web/openacs/log/access.log'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nssha1.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nscache.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nscache module version @VER@
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nsrewrite.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: modload: loading '/usr/local/aolserver/bin/nsxml.so'
[27/Mar/2003:18:01:13][2560.8192][-main-] Notice: nsxml module starting
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: conf: [ns/server/openacs]enabletclpages = 0
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Loading OpenACS, rooted at /home/admin/web/openacs
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/bootstrap.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/10-utilities-procs.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/20-db-bootstrap-procs.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/30-apm-load-procs.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Bootstrap: sourcing /home/admin/web/openacs/packages/acs-bootstrap-installer/tcl/40-db-query-dispatcher-procs.tcl
[27/Mar/2003:18:01:14][2560.8192][-main-] Error: Bootstrap: Server startup failed: Error during bootstrapping
invalid command name "{oracle Oracle8 Oracle8} {postgresql PostgreSQL PostgreSQL}"
    while executing
"[list [list "oracle" "Oracle8" "Oracle8"] [list "postgresql" "PostgreSQL" "PostgreSQL"]]"
    (procedure "db_bootstrap_set_db_type" line 54)
    invoked from within
"db_bootstrap_set_db_type database_problem"
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Sourcing files for postload...
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Done.
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: Executing initialization code blocks...
[27/Mar/2003:18:01:14][2560.8192][-main-] Error: Error parsing queryfile /home/admin/web/openacs/www/index-oracle.xql:

invalid command name "xml_parse"
[27/Mar/2003:18:01:14][2560.8192][-main-] Error: Error parsing queryfile /home/admin/web/openacs/www/index-postgresql.xql:

invalid command name "xml_parse"
[27/Mar/2003:18:01:14][2560.8192][-main-] Error: Error parsing queryfile /home/admin/web/openacs/www/index.xql:

invalid command name "xml_parse"
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: tcl: generating interp init script
[27/Mar/2003:18:01:14][2560.8192][-main-] Warning: keepalive: insufficient maxkeepalive 0: keepalive disabled
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: nsmain: AOLserver/3.3.1+ad13 running
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: nsmain: security info: uid=500, euid=500, gid=500, egid=500
[27/Mar/2003:18:01:14][2560.16387][-sched-] Notice: sched: starting
[27/Mar/2003:18:01:14][2560.8192][-main-] Notice: serv: waiting for warmup
[27/Mar/2003:18:01:15][2560.8192][-main-] Notice: serv: warmed up
[27/Mar/2003:18:01:15][2560.8192][-main-] Notice: socks: idle
[27/Mar/2003:18:01:15][2560.8192][-main-] Notice: sched: idle
[27/Mar/2003:18:01:15][2560.8192][-main-] Notice: nssock: listening on 127.0.0.1:8000
[27/Mar/2003:18:01:15][2560.65545][-nssock-] Notice: nssock: starting
[27/Mar/2003:18:01:15][2560.65545][-nssock-] Notice: nssock: accepting connections
Tanks for the replys, and i hope you can help me one more time. Tanks.
Collapse
Posted by Peter Marklund on
It seems you are having the same \^M (backslash followed by carriage return) problem again, only in a different Tcl file. You could backup your source tree and then try executing the following command in the root directory of your server:

find -name '*.tcl' | xargs perl -pi -e 's/\\\r/\\/g'

This should replace all occurencies of \^M with just \. Alternatively I think you could use the utility dos2unix.

Collapse
Posted by jorge freitas on
Peter, I done what you tell and it works. I am now in the welcome page of openacs,i will continue now wiht the installation. Tanks.