[CWB] index (data) subdir secretly deleted?

Hardie, Andrew a.hardie at lancaster.ac.uk
Mon Dec 12 12:09:04 CET 2016


Line 603 refers to the web-directory, not the index-data directory. So this error message does not seem to have any bearing on the problem at hand...

best

Andrew.

-----Original Message-----
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jiayue Wang
Sent: 12 December 2016 11:06
To: Open source development of the Corpus WorkBench
Subject: Re: [CWB] index (data) subdir secretly deleted?

Thanks Andrew. I check the error log and found the only suspicious 
message to be

PHP Warning:  chmod(): Operation not permitted in 
/home/arthur/www_root/CQPweb/lib/admin-install.inc.php on line 603 ...

It seems the installation was unsuccessful because it failed to 
chmod($newdir, 0775) after creating that folder? But I don't see why 
this particular corpus was special - other corpora were installed 
without a problem.

Jiayue

On 12/12/16 10:38, Hardie, Andrew wrote:
> I have a fairly good idea where in the code this is happening: when the system detects that a data directory of the name of the new corpus already exists, it attempts to delete it. However, I cannot see why this would affect the entire index directory instead of just that of the corpus to be created; there are already checks against the name of the corpus being an empty string, which would be the normal thing I would suspect.
>
> It's possible that your web server error log file may contain an informative PHP message....
>
> best
>
> Andrew.
>
> -----Original Message-----
> From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Jiayue Wang
> Sent: 12 December 2016 08:49
> To: Open source development of the Corpus WorkBench
> Subject: [CWB] index (data) subdir secretly deleted?
>
> Hi
>
> I've experienced this quite a few times - when installing a corpus, the
> whole index folder disappears. I don't know why, but it seems this
> happens when the corpus handle is not too long or ill-formed. But the
> problem is that all other corpora are lost too and must be re-installed.
> Any ideas? Thanks for any help!
>
> Jiayue
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
> _______________________________________________
> CWB mailing list
> CWB at sslmit.unibo.it
> http://liste.sslmit.unibo.it/mailman/listinfo/cwb
>
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://liste.sslmit.unibo.it/mailman/listinfo/cwb


More information about the CWB mailing list