[CWB] Where to start looking for the problem?

"Andrés Chandía" andres at chandia.net
Sat Apr 23 14:15:58 CEST 2022



Hi Andres,   two or three thoughts:  > On 22 Apr 2022, at 21:06,
Andrés Chandía <andres at chandia.net>
wrote: >  > Checking that it's
possible to read lines of cqp output...  > CHECK FAILED.
Couldn't read a line from CQP.  What version of CQP is installed on your system? Did
you upgrade it to a reasonably current one or is it still from back when you set up the
server?  (I.e.: what does '/usr/local/bin/cqp -v' tell you?)

*****
/usr/local/bin/cqp: error while loading shared libraries: libreadline.so.7: cannot open
shared object file: No such file or directory

cd /lib/x86_64-linux-gnu
ln -s
libreadline.so.8.0 libreadline.so.7

/usr/local/bin/cqp -v

The IMS Open
Corpus Workbench (CWB)

Copyright (C) 1993-2006 by IMS, University of Stuttgart
Original developer:       Oliver Christ
    with contributions by Bruno Maximilian
Schulze
Version 3.0 developed by: Stefan Evert
    with contributions by Arne
Fitschen

Copyright (C) 2007-today by the CWB open-source community
   
individual contributors are listed in source file AUTHORS

Download and contact:
http://cwb.sourceforge.net/

Compiled:  lun sep 10 17:23:10 CEST 2018
Version: 
 3.4.14


Does the CQP backend work if you run it from the command line?  CQP
might stumble over a parse / data access error when starting up and die before CQPweb can read
its output.  Run the following in a terminal:          /usr/local/bin/cqp -c -r
/mnt/vmdata/corptedig-glif/corpora/cqp/registry/

This should print a single line
with the CQP version and then wait until you press Ctrl+D. 
*****
/usr/local/bin/cqp
-c -r /mnt/vmdata/corptedig-glif/corpora/cqp/registry/
CQP version 3.4.14


Finally, are you sure the Apache Web server has access to the CQP binary, registry and corpus
data?  Try the command above running as the Web server account.  If your Apache server is
running as user www-data (which it seems to be on Ubuntu) that would be something like        
 sudo -u www-data /usr/local/bin/cqp -c -r /mnt/vmdata/corptedig-glif/corpora/cqp/registry/

********
sudo -u www-data /usr/local/bin/cqp -c -r
/mnt/vmdata/corptedig-glif/corpora/cqp/registry/
CQP version 3.4.14


"ln -s libreadline.so.8.0 libreadline.so.7"
this have enabled me to again
succesfully query all other corpus that were without problems at the beginning

As I
see the cwb version is also outdated I have downloaded cwb-3.4.22-source.tar.gz
and install it

but after install it, if I do a  /usr/local/bin/cqp -v I still get
3.4.14. What I'm missing?


Now, If I query the corpus with problems I get:

CQP reports an error! The CQP program sent back these error messages:

****
CQP ERROR ****

CQP Error:

CQP Syntax Error: syntax error, unexpected
';', expecting ID

show +word + ; <--

Synchronizing until next
';'...

PARSE ERROR
PHP debugging backtrace

array(6) {
 
[1]=>
  array(4) {
    ["file"]=>
    string(55)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/exiterror-lib.php"
   
["line"]=>
    int(380)
    ["function"]=>
   
string(9) "exiterror"
    ["args"]=>
    array(1) {
    
 [0]=>
      array(7) {
        [0]=>
        string(69) "CQP
reports an error! The CQP program sent back these error messages:"
       
[1]=>
        string(19) "**** CQP ERROR ****"
        [2]=>
  
     string(10) "CQP Error:"
        [3]=>
        string(60) "CQP
Syntax Error: syntax error, unexpected ';', expecting ID"
        [4]=>
    
   string(18) "show +word + ; <--"
        [5]=>
        string(31)
"Synchronizing until next ';'..."
        [6]=>
        string(11)
"PARSE ERROR"
      }
    }
  }
  [2]=>
  array(4) {
    ["file"]=>
    string(45)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
    ["line"]=>
    int(1798)
    ["function"]=>
    string(13)
"exiterror_cqp"
    ["args"]=>
    array(1) {
     
[0]=>
      array(6) {
        [0]=>
        string(19) "**** CQP
ERROR ****"
        [1]=>
        string(10) "CQP Error:"
   
    [2]=>
        string(60) "CQP Syntax Error: syntax error, unexpected ';',
expecting ID"
        [3]=>
        string(18) "show +word + ;
<--"
        [4]=>
        string(31) "Synchronizing until next
';'..."
        [5]=>
        string(11) "PARSE ERROR"
     
}
    }
  }
  [3]=>
  array(7) {
    ["file"]=>

   string(45) "/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
   
["line"]=>
    int(1850)
    ["function"]=>
   
string(11) "shout_error"
    ["class"]=>
    string(3)
"CQP"
    ["object"]=>
    object(CQP)#67 (21) {
     
["has_been_disconnected":"CQP":private]=>
      bool(false)
 
    ["process":"CQP":private]=>
      resource(10) of type
(process)
      ["pipe":"CQP":private]=>
      array(3) {
        [0]=>
        resource(7) of type (stream)
        [1]=>
      
 resource(8) of type (stream)
        [2]=>
        resource(9) of type
(stream)
      }
     
["last_registry_invoked":"CQP":private]=>
      string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
     
["major_version"]=>
      int(3)
     
["minor_version"]=>
      int(4)
     
["revision_version"]=>
      int(14)
     
["revision_version_flagged_beta":"CQP":private]=>
     
bool(false)
      ["compile_date"]=>
      NULL
     
["version_string"]=>
      string(18) "CQP version 3.4.14"
  
   ["status":"CQP":private]=>
      int(1)
     
["error_handler":"CQP":private]=>
      string(13)
"exiterror_cqp"
     
["error_message":"CQP":private]=>
      array(6) {
       
[0]=>
        string(19) "**** CQP ERROR ****"
        [1]=>
  
     string(10) "CQP Error:"
        [2]=>
        string(60) "CQP
Syntax Error: syntax error, unexpected ';', expecting ID"
        [3]=>
    
   string(18) "show +word + ; <--"
        [4]=>
        string(31)
"Synchronizing until next ';'..."
        [5]=>
        string(11)
"PARSE ERROR"
      }
     
["EOL":"CQP":private]=>
      string(1) "
"
  
   ["progress_handler":"CQP":private]=>
      bool(false)
   
  ["gzip_path":"CQP":private]=>
      string(0) ""

     ["debug_mode":"CQP":private]=>
      bool(false)
     
["unbuffered_output_pending":"CQP":private]=>
      bool(false)
      ["pretty_suspended":"CQP":private]=>
      bool(false)
      ["corpus_charset":"CQP":private]=>
      int(0)
     
["last_set_corpus":"CQP":private]=>
      string(4)
"COCA"
    }
    ["type"]=>
    string(2)
"->"
    ["args"]=>
    array(0) {
    }
  }
  [4]=>
  array(7) {
    ["file"]=>
    string(45)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/cqp.php"
    ["line"]=>
    int(1143)
    ["function"]=>
    string(20)
"check_pipe_for_error"
    ["class"]=>
    string(3)
"CQP"
    ["object"]=>
    object(CQP)#67 (21) {
     
["has_been_disconnected":"CQP":private]=>
      bool(false)
 
    ["process":"CQP":private]=>
      resource(10) of type
(process)
      ["pipe":"CQP":private]=>
      array(3) {
        [0]=>
        resource(7) of type (stream)
        [1]=>
      
 resource(8) of type (stream)
        [2]=>
        resource(9) of type
(stream)
      }
     
["last_registry_invoked":"CQP":private]=>
      string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
     
["major_version"]=>
      int(3)
     
["minor_version"]=>
      int(4)
     
["revision_version"]=>
      int(14)
     
["revision_version_flagged_beta":"CQP":private]=>
     
bool(false)
      ["compile_date"]=>
      NULL
     
["version_string"]=>
      string(18) "CQP version 3.4.14"
  
   ["status":"CQP":private]=>
      int(1)
     
["error_handler":"CQP":private]=>
      string(13)
"exiterror_cqp"
     
["error_message":"CQP":private]=>
      array(6) {
       
[0]=>
        string(19) "**** CQP ERROR ****"
        [1]=>
  
     string(10) "CQP Error:"
        [2]=>
        string(60) "CQP
Syntax Error: syntax error, unexpected ';', expecting ID"
        [3]=>
    
   string(18) "show +word + ; <--"
        [4]=>
        string(31)
"Synchronizing until next ';'..."
        [5]=>
        string(11)
"PARSE ERROR"
      }
     
["EOL":"CQP":private]=>
      string(1) "
"
  
   ["progress_handler":"CQP":private]=>
      bool(false)
   
  ["gzip_path":"CQP":private]=>
      string(0) ""

     ["debug_mode":"CQP":private]=>
      bool(false)
     
["unbuffered_output_pending":"CQP":private]=>
      bool(false)
      ["pretty_suspended":"CQP":private]=>
      bool(false)
      ["corpus_charset":"CQP":private]=>
      int(0)
     
["last_set_corpus":"CQP":private]=>
      string(4)
"COCA"
    }
    ["type"]=>
    string(2)
"->"
    ["args"]=>
    array(0) {
    }
  }
  [5]=>
  array(7) {
    ["file"]=>
    string(56)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/concordance-ui.php"
   
["line"]=>
    int(770)
    ["function"]=>
   
string(7) "execute"
    ["class"]=>
    string(3)
"CQP"
    ["object"]=>
    object(CQP)#67 (21) {
     
["has_been_disconnected":"CQP":private]=>
      bool(false)
 
    ["process":"CQP":private]=>
      resource(10) of type
(process)
      ["pipe":"CQP":private]=>
      array(3) {
        [0]=>
        resource(7) of type (stream)
        [1]=>
      
 resource(8) of type (stream)
        [2]=>
        resource(9) of type
(stream)
      }
     
["last_registry_invoked":"CQP":private]=>
      string(48)
"/mnt/vmdata/corptedig-glif/corpora/cqp/registry/"
     
["major_version"]=>
      int(3)
     
["minor_version"]=>
      int(4)
     
["revision_version"]=>
      int(14)
     
["revision_version_flagged_beta":"CQP":private]=>
     
bool(false)
      ["compile_date"]=>
      NULL
     
["version_string"]=>
      string(18) "CQP version 3.4.14"
  
   ["status":"CQP":private]=>
      int(1)
     
["error_handler":"CQP":private]=>
      string(13)
"exiterror_cqp"
     
["error_message":"CQP":private]=>
      array(6) {
       
[0]=>
        string(19) "**** CQP ERROR ****"
        [1]=>
  
     string(10) "CQP Error:"
        [2]=>
        string(60) "CQP
Syntax Error: syntax error, unexpected ';', expecting ID"
        [3]=>
    
   string(18) "show +word + ; <--"
        [4]=>
        string(31)
"Synchronizing until next ';'..."
        [5]=>
        string(11)
"PARSE ERROR"
      }
     
["EOL":"CQP":private]=>
      string(1) "
"
  
   ["progress_handler":"CQP":private]=>
      bool(false)
   
  ["gzip_path":"CQP":private]=>
      string(0) ""

     ["debug_mode":"CQP":private]=>
      bool(false)
     
["unbuffered_output_pending":"CQP":private]=>
      bool(false)
      ["pretty_suspended":"CQP":private]=>
      bool(false)
      ["corpus_charset":"CQP":private]=>
      int(0)
     
["last_set_corpus":"CQP":private]=>
      string(4)
"COCA"
    }
    ["type"]=>
    string(2)
"->"
    ["args"]=>
    array(1) {
      [0]=>
      string(13) "show +word + "
    }
  }
  [6]=>
 
array(4) {
    ["file"]=>
    string(53)
"/mnt/vmdata/corptedig-glif/cqpweb/exe/concordance.php"
   
["line"]=>
    int(1)
    ["args"]=>
    array(1)
{
      [0]=>
      string(56)
"/mnt/vmdata/corptedig-glif/cqpweb/lib/concordance-ui.php"
    }
   
["function"]=>
    string(7) "require"
  }
}

Thanks.....


 Best, Steph





_______________________

            andrés
chandía
 
Düngupeyem | IECMap | ISECMap | NMT | Corlexim

Desarrollador de:
Parles.upf | IWCH | Amind terapia | Nocando | IAC | CddZ | ISAC | CatCg
P No imprima innecesariamente. ¡Cuide el
medio ambiente!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20220423/855b6790/attachment-0001.html>


More information about the CWB mailing list