[CWB] CQP reports errors: File length of subcorpus <= 0
Albert Gatt
albert.gatt at um.edu.mt
Mon Aug 8 15:24:23 CEST 2016
Many thanks. Turns out it was a cache leak in fact. Checked for and deleted
the file as per your advice and things are working again.
Cheers
Albert
On 7 Aug 2016 02:10, "Hardie, Andrew" <a.hardie at lancaster.ac.uk> wrote:
> Hi Albert,
>
>
>
> This error arises when a query result is listed in the cache table
> (“saved_queries”) as being in the query cache, but the actual cache file
> does not exist or cannot be loaded by CQP.
>
>
>
> Things to check:
>
>
>
> Is the cache directory correctly specified in your config file?
>
> Is the cache directory both readable and writable to the WWW server?
>
> Does a file called “NAME_OF_CORPUS:f6jc2g8lg0'” exist in that directory?
> (or, check this with any cached query handle you are getting this error for)
>
>
>
> best
>
>
>
> Andrew.
>
>
>
>
>
> *From:* cwb-bounces at liste.sslmit.unibo.it [mailto:cwb-bounces at liste.
> sslmit.unibo.it] *On Behalf Of *Albert Gatt
> *Sent:* 05 August 2016 18:08
> *To:* Open source development of the Corpus WorkBench
> *Subject:* [CWB] CQP reports errors: File length of subcorpus <= 0
>
>
>
> Dear Andrew
>
>
>
> We are experiencing errors with our CQPweb installation on Ubuntu 14.04
> running on apache. This seems to have cropped up suddenly (it wasn't
> happening before). The error occurs in one of two places:
>
>
>
> 1. When trying to run a concordance; OR
>
> 2. After running a concordance, when seeking to expand one of the results,
> building a frequency table, etc.
>
>
>
> Since the error occurred, I have tried to reset the saved_queries table
> (since the error seems to involve a query handle). I have also upgraded to
> the latest version of CQPweb from the subversion repo, and run the db setup
> php script, followed by a restart of the mysql and apache services. The
> problem, however, persists.
>
>
>
> It seems to be coming from a CQP error. I reproduce the error message and
> stacktrace below.
>
>
>
> Thanks in advance for any advice
>
> albert
>
>
>
> **** CQP ERROR ****
>
> ERROR: File length of subcorpus is <= 0
>
> CQP Error:
>
> Corpus ``f6jc2g8lg0'' is undefined
>
>
>
> *** PHP DEBUG STACKTRACE ***
>
> array(6) {
>
> [1]=>
>
> array(2) {
>
> ["function"]=>
>
> string(13) "exiterror_cqp"
>
> ["args"]=>
>
> array(1) {
>
> [0]=>
>
> &array(4) {
>
> [0]=>
>
> string(19) "**** CQP ERROR ****"
>
> [1]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [2]=>
>
> string(10) "CQP Error:"
>
> [3]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> }
>
> }
>
> [2]=>
>
> array(4) {
>
> ["file"]=>
>
> string(31) "/var/www/CQPweb/lib/cqp.inc.php"
>
> ["line"]=>
>
> int(1021)
>
> ["function"]=>
>
> string(14) "call_user_func"
>
> ["args"]=>
>
> array(2) {
>
> [0]=>
>
> &string(13) "exiterror_cqp"
>
> [1]=>
>
> &array(4) {
>
> [0]=>
>
> string(19) "**** CQP ERROR ****"
>
> [1]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [2]=>
>
> string(10) "CQP Error:"
>
> [3]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> }
>
> }
>
> [3]=>
>
> array(7) {
>
> ["file"]=>
>
> string(31) "/var/www/CQPweb/lib/cqp.inc.php"
>
> ["line"]=>
>
> int(922)
>
> ["function"]=>
>
> string(5) "error"
>
> ["class"]=>
>
> string(3) "CQP"
>
> ["object"]=>
>
> object(CQP)#34 (16) {
>
> ["process":"CQP":private]=>
>
> resource(39) of type (process)
>
> ["handle":"CQP":private]=>
>
> array(3) {
>
> [0]=>
>
> resource(36) of type (stream)
>
> [1]=>
>
> resource(37) of type (stream)
>
> [2]=>
>
> resource(38) of type (stream)
>
> }
>
> ["major_version"]=>
>
> int(3)
>
> ["minor_version"]=>
>
> int(0)
>
> ["revision_version"]=>
>
> int(0)
>
> ["revision_version_flagged_beta":"CQP":private]=>
>
> bool(false)
>
> ["compile_date"]=>
>
> NULL
>
> ["error_handler":"CQP":private]=>
>
> string(13) "exiterror_cqp"
>
> ["status":"CQP":private]=>
>
> string(5) "error"
>
> ["error_message"]=>
>
> array(3) {
>
> [0]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [1]=>
>
> string(10) "CQP Error:"
>
> [2]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> ["progress_handler":"CQP":private]=>
>
> bool(false)
>
> ["has_been_disconnected":"CQP":private]=>
>
> bool(false)
>
> ["gzip_path":"CQP":private]=>
>
> string(0) ""
>
> ["debug_mode":"CQP":private]=>
>
> bool(false)
>
> ["corcpus_charset":"CQP":private]=>
>
> NULL
>
> ["corpus_charset"]=>
>
> int(0)
>
> }
>
> ["type"]=>
>
> string(2) "->"
>
> ["args"]=>
>
> array(1) {
>
> [0]=>
>
> &array(4) {
>
> [0]=>
>
> string(19) "**** CQP ERROR ****"
>
> [1]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [2]=>
>
> string(10) "CQP Error:"
>
> [3]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> }
>
> }
>
> [4]=>
>
> array(7) {
>
> ["file"]=>
>
> string(31) "/var/www/CQPweb/lib/cqp.inc.php"
>
> ["line"]=>
>
> int(492)
>
> ["function"]=>
>
> string(8) "checkerr"
>
> ["class"]=>
>
> string(3) "CQP"
>
> ["object"]=>
>
> object(CQP)#34 (16) {
>
> ["process":"CQP":private]=>
>
> resource(39) of type (process)
>
> ["handle":"CQP":private]=>
>
> array(3) {
>
> [0]=>
>
> resource(36) of type (stream)
>
> [1]=>
>
> resource(37) of type (stream)
>
> [2]=>
>
> resource(38) of type (stream)
>
> }
>
> ["major_version"]=>
>
> int(3)
>
> ["minor_version"]=>
>
> int(0)
>
> ["revision_version"]=>
>
> int(0)
>
> ["revision_version_flagged_beta":"CQP":private]=>
>
> bool(false)
>
> ["compile_date"]=>
>
> NULL
>
> ["error_handler":"CQP":private]=>
>
> string(13) "exiterror_cqp"
>
> ["status":"CQP":private]=>
>
> string(5) "error"
>
> ["error_message"]=>
>
> array(3) {
>
> [0]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [1]=>
>
> string(10) "CQP Error:"
>
> [2]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> ["progress_handler":"CQP":private]=>
>
> bool(false)
>
> ["has_been_disconnected":"CQP":private]=>
>
> bool(false)
>
> ["gzip_path":"CQP":private]=>
>
> string(0) ""
>
> ["debug_mode":"CQP":private]=>
>
> bool(false)
>
> ["corcpus_charset":"CQP":private]=>
>
> NULL
>
> ["corpus_charset"]=>
>
> int(0)
>
> }
>
> ["type"]=>
>
> string(2) "->"
>
> ["args"]=>
>
> array(0) {
>
> }
>
> }
>
> [5]=>
>
> array(7) {
>
> ["file"]=>
>
> string(39) "/var/www/CQPweb/lib/concordance.inc.php"
>
> ["line"]=>
>
> int(753)
>
> ["function"]=>
>
> string(7) "execute"
>
> ["class"]=>
>
> string(3) "CQP"
>
> ["object"]=>
>
> object(CQP)#34 (16) {
>
> ["process":"CQP":private]=>
>
> resource(39) of type (process)
>
> ["handle":"CQP":private]=>
>
> array(3) {
>
> [0]=>
>
> resource(36) of type (stream)
>
> [1]=>
>
> resource(37) of type (stream)
>
> [2]=>
>
> resource(38) of type (stream)
>
> }
>
> ["major_version"]=>
>
> int(3)
>
> ["minor_version"]=>
>
> int(0)
>
> ["revision_version"]=>
>
> int(0)
>
> ["revision_version_flagged_beta":"CQP":private]=>
>
> bool(false)
>
> ["compile_date"]=>
>
> NULL
>
> ["error_handler":"CQP":private]=>
>
> string(13) "exiterror_cqp"
>
> ["status":"CQP":private]=>
>
> string(5) "error"
>
> ["error_message"]=>
>
> array(3) {
>
> [0]=>
>
> string(39) "ERROR: File length of subcorpus is <= 0"
>
> [1]=>
>
> string(10) "CQP Error:"
>
> [2]=>
>
> string(34) "Corpus ``f6jc2g8lg0'' is undefined"
>
> }
>
> ["progress_handler":"CQP":private]=>
>
> bool(false)
>
> ["has_been_disconnected":"CQP":private]=>
>
> bool(false)
>
> ["gzip_path":"CQP":private]=>
>
> string(0) ""
>
> ["debug_mode":"CQP":private]=>
>
> bool(false)
>
> ["corcpus_charset":"CQP":private]=>
>
> NULL
>
> ["corpus_charset"]=>
>
> int(0)
>
> }
>
> ["type"]=>
>
> string(2) "->"
>
> ["args"]=>
>
> array(1) {
>
> [0]=>
>
> &string(19) "cat f6jc2g8lg0 0 49"
>
> }
>
> }
>
> [6]=>
>
> array(4) {
>
> ["file"]=>
>
> string(35) "/var/www/CQPweb/exe/concordance.php"
>
> ["line"]=>
>
> int(1)
>
> ["args"]=>
>
> array(1) {
>
> [0]=>
>
> string(39) "/var/www/CQPweb/lib/concordance.inc.php"
>
> }
>
> ["function"]=>
>
> string(7) "require"
>
> }
>
> }
>
>
>
>
> --
>
> Albert Gatt
>
> Institute of Linguistics
>
> University of Malta
>
> http://staff.um.edu.mt/albert.gatt/
>
> _______________________________________________
> CWB mailing list
> CWB at liste.sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20160808/a3de4667/attachment-0003.html>
More information about the CWB
mailing list