Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: GNU/Linux 2.6.8-2-386
Web server: Apache 2
Perl version: 5.8.4
Client OS: Professional 5.1.2600, Service Pack 2
Web Browser: Firefox
Categories: Forms

-- SpenserKao - 09 Jul 2006

Answer

ALERT! 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

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2006-07-21 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.