[CWB] Where to start looking for the problem?
Stephanie Evert
stefanML at collocations.de
Sat Apr 23 09:34:29 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?)
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.
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/
Best,
Steph
More information about the CWB
mailing list