<div dir="ltr"><div>Hello, Graham!</div><div><br></div><div>Location of logs depends on what web-server you are using. If it is Apache, then the location is usually:</div><div>/var/log/httpd/</div><div><br></div><div>There must be 'access_log' file. If you have "Virtual Hosts" configured, then it will look like</div><div> 'your.domain.com-access_log'</div><div><br></div><div> There are also older (rotated) logs with a date postfix, for example:</div><div>access_log-20190120</div><div><br></div><div>You can take look at all of them. Please use grep, for example:</div><div>grep "installCorpus" /var/log/httpd/*access_log*</div><div><br></div><div>to save it to the file use:</div><div>grep "installCorpus" /var/log/httpd/*access_log* > ~/installCorpusError.log</div><div><br></div><div>With best wishes,</div><div>Mansur</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mo., 11. März 2019 um 21:23 Uhr schrieb Graham Ranger -- UAPV <<a href="mailto:graham.ranger@univ-avignon.fr">graham.ranger@univ-avignon.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
Le 11/03/2019 à 18:21, Hardie, Andrew a écrit :<br>
<blockquote type="cite">
<div class="gmail-m_1300508949238926715WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Re>></span>
I'm afraid I haven't kept the screenshot<span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Maybe
ask your technician to look for the URL in the http server
access log? searching for any line(s) that contain
“installCorpus” should do the trick.</span></p>
</div>
</blockquote>
I've forwarded the request to the tech, Andrew, thanks. If you tell
me where the log is, I can ssh into the machine and find the line(s)
myself.<br>
<blockquote type="cite">
<div class="gmail-m_1300508949238926715WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">RE>></span>
though I'm getting "0" results for queries in some corpora<span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Yes,
the index data is
<i>gone</i>. The corpora are not there. There’s just a
record for each pointing at nothing.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">>></span>
makes me think I might need to reinstall<span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Definitely.
There’s no way to reconstruct a lost index.
</span></p>
</div>
</blockquote>
OK. Have done so and all is working.<br>
<blockquote type="cite">
<div class="gmail-m_1300508949238926715WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">>></span>One
possible clue to the reason behind all this,
<b>might</b> lie in the fact that, in the corpus I was
attempting to index, there was a trailing angle-bracket. I
wonder whether this "<" might be responsible for throwing a
spanner in the works<span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">This
is unlikely – the error occurs before any files are opened.
The error is more likely to have been triggered by the
parameters you specified when you filled in the
install-new-corpus form. If you run the SQL query I put in
the last email in your MySQL client (or get your techie to
do same!),
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-indent:36pt"><b><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">select
* from corpus_info where corpus="</span></b><b><i><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(192,80,77)">handle_of_your_corpus</span></i></b><b><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">"; </span></b><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">..
the (lengthy) result will contain
<i>some</i> of those parameters and I might be able to work
backwards to the cause of the problem.</span></p>
</div>
</blockquote>
I tried this with the handles for the corpora I was trying to index
when all went haywire, but it was not found in the database.<br>
Thanks for the help!<br>
Best,<br>
Graham.<br>
<blockquote type="cite">
<div class="gmail-m_1300508949238926715WordSection1">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Thanks<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">best<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Andrew.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext" lang="EN-US">From:</span></b><span style="color:windowtext" lang="EN-US">
<a class="gmail-m_1300508949238926715moz-txt-link-abbreviated" href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>
<a class="gmail-m_1300508949238926715moz-txt-link-rfc2396E" href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank"><cwb-bounces@sslmit.unibo.it></a>
<b>On Behalf Of </b>Graham Ranger -- UAPV<br>
<b>Sent:</b> 11 March 2019 16:59<br>
<b>To:</b> <a class="gmail-m_1300508949238926715moz-txt-link-abbreviated" href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a><br>
<b>Subject:</b> Re: [CWB] Corpus installation problem<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="margin-bottom:12pt">Hi Andrew,<br>
Thanks for your answer.<u></u><u></u></p>
<div>
<p class="MsoNormal">Le 11/03/2019 à 17:43, Hardie, Andrew a
écrit :<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Hi
Graham,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">This
looks like you have run into the bug that others have
reported whereby an error in corpus installation
configuration causes the whole index data directory to be
deleted. </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">I
have never been able to reproduce or track down this bug.
Instead I added checks intended to spot the error
condition and abort before data can be lost. I don’t know
why the system dd not abort before deleting index data in
the situation you report.
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Can
you tell me
<b>exactly</b> what version of the code you are running?
(Version, or even better, SVN checkout number). Possibly
you have a version that precedes these protective checks.</span><u></u><u></u></p>
</blockquote>
<p class="MsoNormal">The version was CQPweb v3.2.30. I'm not
sure how to get the checkout number, I'm afraid.<br>
<br>
<u></u><u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Also,
I know you probably don’t have it open in a browser now
after allthis time, but the full URL of the screen where
you got the “Critical error in installation” message would
be useful for diagnosis. Failing that, the database entry
for the corpus whose installation caused the problem might
shed light (<b>select * from corpus_info where corpus="</b></span><b><i><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(192,80,77)">handle_of_your_corpus</span></i></b><b><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">";
</span></b><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">).</span><u></u><u></u></p>
</blockquote>
<p class="MsoNormal">I'm afraid I haven't kept the screenshot,
and have messed around since, manually deleting things from a
shell. Interestingly, there's also a tech' at university
working on it, who seems to have got some of the functions
back (though I'm getting "0" results for queries in some
corpora, which makes me think I might need to reinstall).<br>
One possible clue to the reason behind all this, <b>might</b>
lie in the fact that, in the corpus I was attempting to index,
there was a trailing angle-bracket. I wonder whether this
"<" might be responsible for throwing a spanner in the
works.<br>
I'm sorry I can't be more precise. When the tech' gets back in
touch, I'll see whether his debugging has revealed anything
interesting and will report back. Thanks again.<br>
Best,<br>
Graham.<br>
<br>
<br>
<u></u><u></u></p>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Thanks</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">best</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)">Andrew.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Verdana",sans-serif;color:rgb(31,73,125)"> </span><u></u><u></u></p>
<div>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext" lang="EN-US">From:</span></b><span style="color:windowtext" lang="EN-US">
<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">cwb-bounces@sslmit.unibo.it</a>
<a href="mailto:cwb-bounces@sslmit.unibo.it" target="_blank">
<cwb-bounces@sslmit.unibo.it></a> <b>On
Behalf Of </b>Graham Ranger -- UAPV<br>
<b>Sent:</b> 09 March 2019 14:43<br>
<b>To:</b> <a href="mailto:cwb@sslmit.unibo.it" target="_blank">cwb@sslmit.unibo.it</a><br>
<b>Subject:</b> Re: [CWB] Corpus installation problem</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12pt">Hello again,<br>
The problem is worse than it first appeared. In fact none of
the corpora word. I'm getting error messages of the
following type for simple queries on ALL, previously well
installed, corpora: "Corpus ``ENGLISH_TEST'' is undefined".<br>
As far as I know, nothing has changed in the cqpweb since
yesterday... when I successfully installed another corpus.<br>
Help will be much appreciated,<br>
Best,<br>
Graham.<u></u><u></u></p>
<div>
<p class="MsoNormal">Le 09/03/2019 à 15:05, Graham Ranger --
UAPV a écrit :<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<p class="MsoNormal">Hello to all,<br>
I'm having trouble installing a corpus with the message
"Critical error in installation: corpus dir not
specified". After this, the corpus name actually shows up
in the "Show corpora" area, but it is obviously empty.<br>
Any thanks much appreciated, as ever.<br>
Best,<br>
Graham.<br>
<br>
<br>
<br>
<br>
<u></u><u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>CWB mailing list<u></u><u></u></pre>
<pre><a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><u></u><u></u></pre>
<pre><a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><br>
<br>
<br>
<u></u><u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>CWB mailing list<u></u><u></u></pre>
<pre><a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><u></u><u></u></pre>
<pre><a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<fieldset class="gmail-m_1300508949238926715mimeAttachmentHeader"></fieldset>
<br>
<pre>_______________________________________________
CWB mailing list
<a class="gmail-m_1300508949238926715moz-txt-link-abbreviated" href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a>
<a class="gmail-m_1300508949238926715moz-txt-link-freetext" href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a>
</pre>
</blockquote>
<br>
</div>
_______________________________________________<br>
CWB mailing list<br>
<a href="mailto:CWB@sslmit.unibo.it" target="_blank">CWB@sslmit.unibo.it</a><br>
<a href="http://liste.sslmit.unibo.it/mailman/listinfo/cwb" rel="noreferrer" target="_blank">http://liste.sslmit.unibo.it/mailman/listinfo/cwb</a><br>
</blockquote></div>