[CWB] [CQPweb] Can't install new corpora

Scott Sadowsky ssadowsky at gmail.com
Fri Jun 21 20:01:24 CEST 2019


An addendum to my previous message...

I've been trying to deal with the failed corpus creation problem on my own
in the meantime, and I chanced upon the following: the one thing that has
changed on my end with respect to the entire corpus creation process is the
naming convention I use. I'm now creating versioned corpora whose names
follow this pattern: corpus_name__1_7 for corpus version 1.7. Trying to
create corpora like this inevitably fails, even with older version of
CQPweb (I tried 1253, 1251, 1250 and 1240, with the same results, so this
isn't a recent regression at least).

If I try to install an older corpus with the naming pattern corpus_name,
everything works. And when I manually edit directory names and the registry
file so that corpora with names like corpus_name__1_7 (note the double
underscore) become corpus_name_1_7, (no double underscore), everything also
works. But if I use a double underscore, corpus creation fails part way
through the process, and a ghost corpus entry with the form corpus_name__0_
is created (it has no actual content, though, and of course can't be used).

Is the double underscore a reserved character combination by chance? I've
noticed frequency lists use them (e.g. your_corpus's frequency list is
created as your_corpus__freq), which makes me wonder.

Finally, even when I successfully make a corpus, and the corpus works
perfectly (as far as I can tell), I still get the following errors in my
Apache2 log every time.

[Fri Jun 21 04:43:21.226946 2019] [php7:warn] [pid 883] [client
192.168.0.1:33476] PHP Warning:  chmod(): Operation not permitted in
/var/www/html/cqpweb/lib/admin-install-lib.php on line 530, referer: http://
192.168.0.1/adm/index.php?ui=installCorpusIndexed

[Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client
192.168.0.1:33476] PHP Notice:  Trying to get property 'indexing_notes' of
non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251, referer:
http://192.168.0.1/adm/index.php?ui=installCorpusIndexed

Ideas? The relevant code is trying to change permissions on a directory
that's held in a variable, so I can't see what it's actually trying to act
upon.

Cheers,
Scott


On Fri, Jun 21, 2019 at 4:59 AM Scott Sadowsky <ssadowsky at gmail.com> wrote:

> This seems to have cropped up between 1249 (or perhaps a bit earlier) and
> 1253. When I do...
>
> Corpora > Install new corpus > Click here to install a corpus you have
> already indexed in CWB > [FILL IN FIELDS] > Install corpus with settings
> above
>
> ...the operation is far too fast, and the following errors pop up in my
> Apache log:
>
> [Fri Jun 21 04:43:21.226946 2019] [php7:warn] [pid 883] [client
> 192.168.0.1:33476] PHP Warning:  chmod(): Operation not permitted in
> /var/www/html/cqpweb/lib/admin-install-lib.php on line 530, referer: http://
> 192.168.0.1/adm/index.php?ui=installCorpusIndexed
>
> [Fri Jun 21 04:43:21.256755 2019] [php7:notice] [pid 883] [client
> 192.168.0.1:33476] PHP Notice:  Trying to get property 'indexing_notes'
> of non-object in /var/www/html/cqpweb/lib/html-lib.php on line 1251,
> referer: http://192.168.0.1/adm/index.php?ui=installCorpusIndexed
>
> If I then proceed to Design and insert a text-metadata table for the
> corpus, I get this error: "Core critical error: invalid corpus handle
> submitted to database."
>
> Everything I do before adding the Corpus to CQPweb is done through
> scripts, including setting permissions, so the cause really shouldn't be
> something I'm doing.
>
> Best,
> Scott
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20190621/e89ffdc7/attachment.html>


More information about the CWB mailing list