Question
This is a probelm with trying cleaning Trash web permanently.
Once I removed every thing under /twiki/data/Trash, I realized the entry “Trash” disappeared from the To-Web drop-down box, which shouldn't have happened. Help please.
I am using TWiki v4.0.1 thru TWiki VMvware Machine (Debian stable).
I didn't archive the text and
RCS recommended in
ManagingTopics before hand, would that cause the problem? Otherwise, please give a kindly help.
Environment
--
SpenserKao - 09 Jul 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
Just copy all the files from _default into Trash and you should be fine. TWiki looks for a particular file (or files) to determine if a directory is in fact a web. (I think it only looks for
WebPreferences, but you probably want them all.)
--
MeredithLesly - 09 Jul 2006
Thanks for the hint, Meredith. But something not quite right here.
Tentatively I copied over just
WebPreferences.txt and its
RCS counterpart (textention txt,v) as suggested, then the left hand nanigational Webs showed one extra entry Trash at the bottom, while To-Web drop-down box got two extra, but seemlingly uncessary Trash entries, one on the top and the other at the bottom, with Main, Sandbox and TWiki in between. Further more, copying over everything (
.) under _default also led to the same problem.
Still I deliberately tried to delete a topic named
JustTest, then following attentional message came up: During rename of topic
JustTest to Trash an error (
RCS: move /home/httpd/twiki/data/Sandbox/JustTest.txt to /home/httpd/twiki/data/Trash/SandboxJustTest.txt failed: Permission denied) was found. Please notify your TWiki administrator.
I am the TWiki administrator that's refered above.
Any clue?
--
SpenserKao - 09 Jul 2006
In part it sounds like a permission problem (
RCS errors usually are). An alternative solution would be to DL a fresh distro, and replace the Trash directories completely.
I've advocated having a TWiki interface for emptying the trash. Perhaps your problems will help with that goal.
--
MeredithLesly - 10 Jul 2006
The
RCS permission problem is not on the TWiki level, e.g. is not a TWiki admin or not question. This is a file level problem. Make sure the
data/Trash directory and all files in it are readable & writable by the cgi user (such as
nobody or
wwwrun.)
--
PeterThoeny - 10 Jul 2006
I already answered that part of his question. I don't know why he's getting duplicate Trash entries, however.
--
MeredithLesly - 10 Jul 2006
Thanks to Mereidth and Peter's further advices and my apologies for late correspondence - due to digression to other tasks.
Mereidth, what do you mean by "DL a fresh distro"? Re-install the twiki-vm?
FYI, after installation, data/Trash's r/w permission and ownership are as below: drwxr-sr-x www-data www-data, while all *.txt files underneath have -rw-r----- permission and *.txt,v have -r--r--r--.
--
SpenserKao - 14 Jul 2006
Assuming your cgi user is
www-data, are the
Trash/*txt files owned by
www-data? They need to be because of the
-rw-r----- permission. It is also better to set the
*.txt permission to
-rw-r--r--.
--
PeterThoeny - 21 Jul 2006