Question
Hello,
I'm using TWiki from past 7 months. But suddenly it started showing an error saying:
Error saving topic
During save of
TestTopic2 an error was found by the version control system. Please notify your
XxxTWiki administrator.
=/usr/bin/rcs -o%REVISION|N% %FILENAME|F% of .../Sandbox/TestTopic2.txt failed: =
Go back in your browser and save your changes locally.
I went through the questions in this forum and tried the solutions which were given. But nothing helped.
My
RCS version is 5.7
Any guesses.
Environment
--
PrajishS - 01 Aug 2007
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Edit the 'Sandbox.pm' module and enable tracing. Run the command that fails. Review the apache error log, and copy-paste the command that was executed onto the shell command line. What does it say?
--
CrawfordCurrie - 01 Aug 2007
I reviewed the log and found that error was happening while executing
"/usr/bin/rcs '[options]' '/var/www/html/twiki/data/Sandbox/TestTopic2.txt' "
when I executed it from the command terminal, it gave me an error saying
"rcs:
RCS file /var/www/html/twiki/data/Sandbox/TestTopic2.txt,v is in use"
--
PrajishS - 02 Aug 2007
I'm able to create, edit and save new pages and some of the existing pages.
Is there any sort of lock files which gets created when a page is accessed[view/edit/save]
--
PrajishS - 02 Aug 2007
No replies????
--
PrajishS - 06 Aug 2007
--
PrajishS - 09 Aug 2007
I also started having this problem after I installed some updates with apt-get, but there were no obvious ones relating to rcs as far as I remember. The message 'in use' is probably because it is still locked. I ran the command 'rcs -u file' to unlock it.
According to lib/LocalSite.cfg the command is ciCmd. The only minor difference in the error message is "....txt failed: 1 =" in my case. I'm using TWiki 4.1.2, rcs 5.7 and diff 2.8.1 on ubuntu 6.06. I removed rcs and re-installed it then re-started apache, but no help. There is an error in the apache log, but the time stamp shows it's not related. It says TWiki::Configure::Checker::tempfile redefined at /usr/share/perl/5.8/Exporter.pm line 65. I appreciate if someone can help.
After the above post, I found another interesting thing. The automated email notification (
WebNotify) shows the difference between two versions (correctly as far as I see), but the history on a page shows only the first save and the rest of revisions are blank. However, if I click the individual revision then it shows the details.
--
TeruYanagihashi - 16 Aug 2007
I just add more findings. I used the trace option in Sandbox.pm and checked the apache error log. It shows
/usr/bin/ci '-mnone' '-t-none' '-wTeruYanagihashi' '-u' '/home/httpd/twiki/data/Sandbox/TestSave.txt'
and I tried the command on the console. The file was locked by www-data (CGI user name ) and I re-locked it with root. After that then the command was accepted under root. The file attribute is rw-r--r--. So, it looks like when the command is executed somehow the user name is not recognised as www-data. No mod_perl is installed. The revision history shows blanks except the first edit. How can I force the CGI command to be executed under www-data all the time?
Strangely if a new page is created and subsequent changes are saved no error occurs and the command I can see in the apache error log is as follows.
/usr/bin/ci '-mnone' '-t-none' '-d2007/08/16 23:51:33' '-u' '-wTeruYanagihashi' '/home/httpd/twiki/data/Sandbox/TestSave2.txt'
--
TeruYanagihashi - 16 Aug 2007
I could resolve the problem.
I could find some files ending with a ',' in the directory twiki/data/Sandbox/
deleted those files and error disappeared.
--
PrajishS - 19 Jun 2008