This question about Configuration: Answered

Error in the version check by saving a topic

Hello,

we have a problem with saving a topic. The foswiki show us, that a error was caused in the version check and we get this message:
/usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F% of .../Funbox/WitzSammlung.txt failed

Then we go a step back in the browser and try to save it again. Then we get shown a confirmation window like: "Wiki has received a change request classified as suspicious by your browser. Press OK to continue." and so on.

After that, we press OK and it works!

Whats the problem? Can you help us?

Yours sincerely

Benjamin Wilk


Ok, so as this seems to be recurrent, I'll try to sum up what needs to be done in this topic, so one can refer to it later on.

  1. Check the apache error logs. Even though they normally should contain roughly the same error message, there might be some additional hints
  2. One cause of this could be that you're running some persistent engine, like mod_perl or fastcgi. Under these kind of engines, forking is highly discouraged, and therefore you should switch your RCS backend to RcsLite, which is a pure perl implementation of it.
  3. Another reported cause was some fancy filesystem, such as filer, or windows mount. These filesystem caused an error on the first access, but worked on the second. If that's your case, then there is nothing much Foswiki can do frown, sad smile
  4. Set the sandbox (the part of Foswiki which deals with running commands) into debug mode:
    • Open your lib/Foswiki/Sandbox.pm and find the line with sub TRACE { 0 } , it's line 42 for 1.0.7
    • Replace the 0 with a 1 -- this will bring debugging into your logs
    • WARNING: You shouldn't leave this after finding the issue, as this cause some security issue (Sandbox will print out the command, which might contain some sensitive parameters).
  5. Try again the same scenario, while monitoring your apache error logs
  6. Pastebin the result, and ask for help, or put it here. Please ensure to filter any sensitive data
-- OlivierRaginel - 20 Oct 2009

See Faq9

-- CrawfordCurrie - 21 Oct 2009

[Wed Oct 21 09:55:42 2009] [error] [client 192.168.10.5] - LdapContrib - group cn=admin,ou=group,dc=domain,dc=de clashes with user admin ... appending _group
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] /usr/bin/rlog '-h' '/srv/wiki/data/Sandbox/StuffTopic.txt,v', referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] -> , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] RCS file: /srv/wiki/data/Sandbox/StuffTopic.txt,v, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] Working file: StuffTopic.txt, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] head: 1.1, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] branch:, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] locks: strict, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] access list:, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] symbolic names:, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] keyword substitution: kv, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] total revisions: 1, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5]

=========================================================================, referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] /usr/bin/rcs '-l' '/srv/wiki/data/Sandbox/StuffTopic.txt' -> , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] /usr/bin/ci '-mnone' '-t-none' '-wBaseUserMapping_333' '-u' '/srv/wiki/data/Sandbox/StuffTopic.txt', referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] -> , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1
[Wed Oct 21 10:09:37 2009] [error] [client 192.168.10.5] /usr/bin/ci -m%COMMENT|U% -t-none -w%USERNAME|S% -u %FILENAME|F% USERNAME=>BaseUserMapping_333 COMMENT=>none FILENAME=>/srv/wiki/data/Sandbox/StuffTopic.txt failed: , referer: https://newwiki.domain.de/bin/edit/Sandbox/StuffTopic?t=1256119756;nowysiwyg=1

That is the apache error log

-- BenjaminWilk - 21 Oct 2009

Open a shell, and enter the command:
/usr/bin/ci '-mnone' '-t-none' '-wBaseUserMapping_333' '-u' '/srv/wiki/data/Sandbox/StuffTopic.txt
and report back what it says.

-- CrawfordCurrie - 21 Oct 2009

after enter this command

/usr/bin/ci '-mnone' '-t-none' '-wBaseUserMapping_333' '-u' '/srv/wiki/data/Sandbox/StuffTopic.txt'

we get the following rows:


/srv/wiki/data/Sandbox/StuffTopic.txt,v <-- /srv/wiki/data/Sandbox/StuffTopic.txt
ci: /srv/wiki/data/Sandbox/StuffTopic.txt,v: no lock set by root"

-- BenjaminWilk - 21 Oct 2009

Result from the irc support session:

All the topics are rcs locked with www-data (see here). No idea, why they are locked.

-- OliverKrueger - 21 Oct 2009

We have some new information:

1. foswiki takes the user from the LDAP (maybe the problem is caused therefore)

2. we found two (maybe) interessting links:

http://twiki.org/cgi-bin/view/Support/UnableToSaveOldTopicsOnlyNewOnes - this one

http://twiki.org/cgi-bin/view/Support/ErrorWhenSavingTopic

Maybe the links can help us, to solve the problem?

-- BenjaminWilk - 22 Oct 2009

We have good news. The problem is gone away, respectively we solved it. smile

After we changed the permission of the /tmp/ directory (chmod 1777 /tmp/) in the system, we can edit and save all the topics all night long, now. wink

Accepted Answer

So it was only the permission of /tmp/. Very easy if you know it before. big grin

-- BenjaminWilk - 22 Oct 2009

QuestionForm edit

Subject Configuration
Extension
Version Foswiki 1.0.7
Status Answered
Topic revision: r14 - 19 Nov 2010, OliverKrueger
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy