Forum OpenACS Q&A: Re: OpenFTS Request Error

Collapse
Posted by Joel Aufrecht on
I think you're looking at the right log. Try trailing the log (with tail -f or with less and then shift-F) and then causing the error again.
Collapse
Posted by Phillip Kuo on
Here is what I have in my error log

[28/Apr/2003:15:14:06][8472.2051][-sched-] Notice: Running scheduled proc search_indexer...
[28/Apr/2003:15:14:06][8472.2051][-sched-] Notice: Done running scheduled proc search_indexer.
[28/Apr/2003:15:14:07][8472.6151][-conn3-] Notice: Security: 1051560847 sec_generate_session_id_cookie setting 403, 2121.
NOTICE:  identifier "apm_package_type__num_parameters" will be truncated to "apm_package_type__num_parameter"
NOTICE:  identifier "apm_package_type__num_parameters" will be truncated to "apm_package_type__num_parameter"
[28/Apr/2003:15:14:24][8472.4101][-conn1-] Error: Ns_PgExec: result status: 7 message: ERROR:  Relation "fts_conf" does not exist

[28/Apr/2003:15:14:36][8472.6151][-conn3-] Notice: ns_getform using encoding iso8859-1 for charset iso-8859-1
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 'txt_pkey' for table 'txt'
NOTICE:  CREATE TABLE / UNIQUE will create implicit index 'txt_path_key' for table 'txt'
[28/Apr/2003:15:14:36][8472.6151][-conn3-] Error: Ns_PgExec: result status: 7 message: ERROR:  Relation 'txt' already exists

[28/Apr/2003:15:14:36][8472.6151][-conn3-] Notice: RP (234.3 ms): error in rp_handler: serving POST /openfts/admin/initialize-2
        ad_url "/openfts/admin/initialize-2" maps to file "/home/phill/web/itgroup/packages/openfts-driver/www/admin/initialize-2.tcl"
errmsg is Database operation "dml" failed
[28/Apr/2003:15:14:36][8472.6151][-conn3-] Error: POST http://debianbox.rgmiller.com:8000/openfts/admin/initialize-2?
referred by "http://debianbox.rgmiller.com:8000/openfts/admin/initialize"
Database operation "dml" failed
    while executing
"error "$err""
    invoked from within
"if [catch {
    db_dml create_table "create table $table_name ( ${table_id} int not null primary key, path varchar unique, fts_index txtidx, last_modi..."
    ("uplevel" body line 21)
    invoked from within
"uplevel {
          ad_page_contract {

    Initialize OpenFTS

    @author Neophytos Demetriou

} {
    table_name
    table_id
    dict
    numbergroup..."
    (procedure "code::tcl::/home/phill/web/itgroup/packages/openfts-driver/w..." 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..."
[28/Apr/2003:15:15:06][8472.2051][-sched-] Notice: Running scheduled proc search_indexer...
[28/Apr/2003:15:15:06][8472.2051][-sched-] Notice: Done running scheduled proc search_indexer.