ikiwiki/doc/bugs/post-commit_hangs.mdwn

27 lines
1.8 KiB
Plaintext
Raw Normal View History

2009-08-04 11:41:07 +02:00
# post-commit hangs
2009-08-04 11:28:45 +02:00
I installed ikiwiki v3.14159 in /usr/local from tarball (/usr contains an older version). Having done so, and used ikiwiki-transition to update setup file, the post commit hook is now blocking in flock (as seen by ps). I should also mention that I added the goodstuff, attachment and remove plugins (which was the purpose of upgrading to v3). Any clues as how to debug/fix gratefully received. The wiki is publically viewable at wiki.sgcm.org.uk if that helps.
2009-08-04 19:37:14 +02:00
> It's blocking when you do what? Save a page from the web? Make a commit
> to the underlaying VCS? Which VCS? These are all different code paths..
> --[[Joey]]
2009-08-04 19:48:38 +02:00
2009-08-04 22:18:49 +02:00
>> It's blocking when I run "ikiwiki --setup ikiwiki.setup" (which calls hg update, which calls ikiwiki --post-commit).
>> Hmm, maybe it's the recursive call to ikiwiki which is the problem.
>> The underlying VCS is mercurial. --Ali
2009-08-04 22:27:28 +02:00
>>> You're not supposed to run ikiwiki -setup manually in your post commit hook.
>>> Doing so will certianly lead to a locking problem; it also forces ikiwiki to rebuild
>>> the entire wiki anytime a single page changes, which is very inefficient!
>>>
>>> Instead, you should use the `mercurial_wrapper` setting
>>> in the setup file, which will make ikiwiki generate a small
>>> executable expressly designed to be run at post commit time.
>>> Or, you can use the `--post-commit` option, as documented
>>> in [[rcs/mecurial]] --[[Joey]]
2009-08-04 19:48:38 +02:00
> Also, how have you arranged to keep it from seeing the installation in /usr? Perl could well be loading
> modules from the old installation, and if it's one with a different locking strategy that would explain your problem. --[[Joey]]
2009-08-04 22:18:49 +02:00
>> Good point. Not knowing perl, I just assumed /usr/local would take precedence. I've now used "dpkg -r ikiwiki" to remove the problem. --Ali