[CWB] Adding metadata from XML
mansur
6688000 at gmail.com
Mon Nov 16 11:59:04 CET 2020
Hi, Andrew!
After refreshing the page it shows that the metadata table is not installed
and apache continues to consume 100% of CPU!
When I click the "Create metadata table from XML using the settings above"
the browser sends the following request to the server. I exported it from
Firefox in curl format and it looks like this:
---------------------
curl 'http://localhost:8090/cqpweb/t_corpus_v1_1/metadata-act.php'
............
-H 'Referer:
http://localhost:8090/cqpweb/t_corpus_v1_1/index.php?ui=manageMetadata&createMetadataFromXml=1'
--data-raw
'mdAction=createMetadataFromXml&corpus=t_corpus_v1_1&createMetadataFromXmlUse_text_nice=1&createMetadataFromXmlDescription_text_nice=Structure+%60%60text_nice%27%27%27%27&
............
createMetadataFromXmlUse_text_lang=1&createMetadataFromXmlDescription_text_lang=Structure+%60%60text_lang%27%27%27%27&createMetadataRunFullSetupAfter=0'
---------------------
On the server side apache starts consuming 100% CPU, but doesn't write
anything to the log in this particular case. When I click any other links
and buttons in CQPweb I see them in the log.
If I click "Create minimalist metadata table" it doesn't hang, it works.
Repos I use with default settings:
http://svn.code.sf.net/p/cwb/code/cwb/trunk/
http://svn.code.sf.net/p/cwb/code/perl/trunk/CWB
http://svn.code.sf.net/p/cwb/code/gui/cqpweb/branches/3.2-latest
One more important detail. I run it in a docker container (official
"php:apache" image).
With best wishes,
Mansur
Am Mo., 16. Nov. 2020 um 06:05 Uhr schrieb Hardie, Andrew <
a.hardie at lancaster.ac.uk>:
> Hi Mansur,
>
>
>
> The “processing” box is supposed to stay up until the server finishes
> processing the HTTP request that asked for the xml-to-text metadata
> installation, and returns a redirection header. The fact that you’re not
> getting an HTTP response either means that then server is getting stuck
> somewhere along the way, or else there is a bug in the client-side
> javascript somewhere blocking the browser from moving on.
>
>
>
> To find out which, hit “refresh” on the page with the spinning popup. If
> it shows the metadata table as installed, then the problem is likely in the
> javascript. If it shows the metadata table as not installed, the problem is
> likely something going wrong along the way (in which case, check your
> server logs for error messages!)
>
>
>
> In either case, I will need to know exactly which version of the code
> you’re running to propose a fix once the problem is identified. Note that
> 3.2 lives on a branch now so commits that refer to the trunk are outdated.
>
>
>
> best
>
>
>
> Andrew.
>
>
>
> PS sorry for the delay replying, I am way behind with my correspondence at
> the minute.
>
>
>
> *From:* cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> *On
> Behalf Of *mansur
> *Sent:* 30 October 2020 20:18
> *To:* Open source development of the Corpus WorkBench <cwb at sslmit.unibo.it
> >
> *Subject:* [CWB] Adding metadata from XML
>
>
>
> Hello!
>
>
>
> During the last few days I have a very interesting problem:
>
> 1. I compile (index) several small corpora with cwb utilities and generate
> registry files.
>
> 2. I add these corpora to the CQPweb.
>
> 3. I choose adding metadata from XML, select the necessary fields and
> click "Create metadata table from XML using the settings above" button
> without running frequency-list setup. And a small box pops up about the
> task being processed. And it doesn't end, lasts forever. Apache web-server
> (httpd process) starts to consume 100% CPU time (1 core). It doesn't give
> any errors, though I tried to enable debug messages in the config file.
>
>
>
> I tried to reinstall the system, and used different revisions of CQPweb
> and CWB that were released during last year: something around 1400-1559.
> The most stable ones here as I understand are trunc for cwb and 3.2-latest
> for CQPweb (3.2.42 if I remember it correctly).
>
>
>
> Today I found out a detail that maybe could help to locate the source of
> the problem: after adding a corpus to the CQPweb, but before trying to add
> metadata if I try to make a search query, then adding metadata works well.
> I understand that search queries don't work before adding metadata and it
> gives an error, but after that I can easily add metadata without any
> problems.
>
>
>
> Could you, please, share your opinion about it? How can I fix it or
> investigate further to find the exact reason? Maybe it is a bug?
>
>
>
> With best wishes,
>
> Mansur
> _______________________________________________
> CWB mailing list
> CWB at 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/20201116/b848217d/attachment.html>
More information about the CWB
mailing list