[CWB] [CQPweb] Can't install new corpora
Hardie, Andrew
a.hardie at lancaster.ac.uk
Sat Jun 22 00:57:55 CEST 2019
This helps somewhat, albeit I’m still not entirely sure what is happening.
__ is not reserved, except in combination with __freq in final position. And that’s checked.
If you turn on “print_debug_messages”, you might be able to see what SQL commands are actually run during installation. There should be a number of “insert” statements one for the corpus, one for each p-attribute except “word”, one for each s-attribute.
>> 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.
The variable contains “../handleofyourcorpus”, i.e., it’s the web directory within the main CQPweb folder.
>> even when I successfully make a corpus …I still get the following errors in my Apache2 log every time.
I don’t see how you could have got “Trying to get property 'indexing_notes' of non-object” after a *success*. That error can only occur if the corpus does not exist in the DB. And if the corpus is not in the DB, you should get a critical error when you try later to use it. Couold that error have stemmed from an unsuccessful run earlier?
best
Andrew.
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Scott Sadowsky
Sent: 21 June 2019 19:01
To: Open source development of the Corpus WorkBench <CWB at liste.sslmit.unibo.it>
Subject: Re: [CWB] [CQPweb] Can't install new corpora
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<http://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<mailto: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<http://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/7ab7bf65/attachment-0001.html>
More information about the CWB
mailing list