[Moin-user] CacheNeedsUpdate error upon creating new page

Rob Kirkbride rob.kirkbride at gmail.com
Tue Jan 8 03:35:19 EST 2008


Hi,

I've been tearing my hair out with this problem since moving the Wiki
instance from a backup.

If I edit a page, add a new Wiki link and then attempt to access this new
page, I get the error below.

I've tried clearing cache directories, checking permissions etc.

Can anyone help - I've been struggling with this for weeks, having to add
pages manually by copying inside the directory structure and then renaming
which is obviously useless!

Rob

A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.

   1.

   /var/lib/python-support/python2.5/MoinMoin/request.py in *run* (self=<
   MoinMoin.request.RequestCGI object at 0xb7d0644c>)
   1. 1152 # Visit pagename
      2. 1153 self.page = Page(self, pagename)
      3. 1154 self.page.send_page(self, count_hit=1)
      4. 1155
      5. 1156 # generate page footer (actions that do not want this
      footer
   - *self* = <MoinMoin.request.RequestCGI object at 0xb7d0644c>
      - self.*page* = <MoinMoin.Page.Page instance at 0x82bc2cc>
      - self.page.*send_page* = <bound method Page.send_page of <
      MoinMoin.Page.Page instance at 0x82bc2cc>>
      - count_hit *undefined*
   2.

   /var/lib/python-support/python2.5/MoinMoin/Page.py in *send_page*(self=<
   MoinMoin.Page.Page instance at 0x82bc2cc>, request=<
   MoinMoin.request.RequestCGI object at 0xb7d0644c>, msg='',
   **keywords={'count_hit': 1})
   1. 1218 and send_missing_page)):
      2. 1219 if self.default_formatter and not content_only:
      3. 1220 self._emptyPageText(request)
      4. 1221 elif content_only and send_missing_page:
      5. 1222 # We should send MissingPage but it is not there
   - *self* = <MoinMoin.Page.Page instance at 0x82bc2cc>
      - self.*_emptyPageText* = <bound method Page._emptyPageText of <
      MoinMoin.Page.Page instance at 0x82bc2cc>>
      - *request* = <MoinMoin.request.RequestCGI object at 0xb7d0644c>
   3.

   /var/lib/python-support/python2.5/MoinMoin/Page.py in *_emptyPageText*(self=<
   MoinMoin.Page.Page instance at 0x82bc2cc>, request=<
   MoinMoin.request.RequestCGI object at 0xb7d0644c>)
   1. 1396 missingpage.page_name = self.page_name
      2. 1397 missingpage._text_filename_force = missingpagefn
      3. 1398 missingpage.send_page(request, content_only=1,
      send_missing_page=1)
      4. 1399
      5. 1400
   - *missingpage* = <MoinMoin.Page.Page instance at 0x83e604c>
      - missingpage.*send_page* = <bound method Page.send_page of <
      MoinMoin.Page.Page instance at 0x83e604c>>
      - *request* = <MoinMoin.request.RequestCGI object at 0xb7d0644c>
      - content_only *undefined*
      - send_missing_page *undefined*
   4.

   /var/lib/python-support/python2.5/MoinMoin/Page.py in *send_page*(self=<
   MoinMoin.Page.Page instance at 0x83e604c>, request=<
   MoinMoin.request.RequestCGI object at 0xb7d0644c>, msg='',
   **keywords={'content_only': 1, 'send_missing_page': 1})
   1. 1234 format_args=pi_formatargs,
      2. 1235 do_cache=do_cache,
      3. 1236 start_line=pi_lines)
      4. 1237
      5. 1238 # check for pending footnotes
   - start_line *undefined*
      - *pi_lines* = 7
   5.

   /var/lib/python-support/python2.5/MoinMoin/Page.py in *
   send_page_content* (self=<MoinMoin.Page.Page instance at 0x83e604c>,
   request=<MoinMoin.request.RequestCGI object at 0xb7d0644c>,
   Parser=<class MoinMoin.parser.wiki.Parser at 0x83ff11c>, body=u"\n'''This
   page does not exist yet. You can create...[[EditTemplates]] ||<^>
   [[LikePages((none))]] ||\n", format_args=u'', do_cache=1,
   **kw={'start_line': 7})
   1. 1317 try:
      2. 1318 code = self.loadCache(request)
      3. 1319 self.execute(request, parser, code)
      4. 1320 except 'CacheNeedsUpdate':
      5. 1321 try:
   - *self* = <MoinMoin.Page.Page instance at 0x83e604c>
      - self.*execute* = <bound method Page.execute of <
      MoinMoin.Page.Page instance at 0x83e604c>>
      - *request* = <MoinMoin.request.RequestCGI object at 0xb7d0644c>
      - *parser* = <MoinMoin.parser.wiki.Parser instance at 0x830e92c>
      - *code* = <code object ? at 0x83fa2f0, file "ProjectPasswords",
      line 2>
   6.

   /var/lib/python-support/python2.5/MoinMoin/Page.py in *execute*(self=<
   MoinMoin.Page.Page instance at 0x83e604c>, request=<
   MoinMoin.request.RequestCGI object at 0xb7d0644c>, parser=<
   MoinMoin.parser.wiki.Parser instance at 0x830e92c>, code=<code object
   ? at 0x83fa2f0, file "ProjectPasswords", line 2>)
   1. 1341 if hasattr(MoinMoin, '__loader__'):
      2. 1342 __file__ = os.path.join(MoinMoin.__loader__.archive,
      'dummy')
      3. 1343 exec code
      4. 1344
      5. 1345 def loadCache(self, request):
   - *code* = <code object ? at 0x83fa2f0, file "ProjectPasswords", line
      2>
   7.

   /usr/share/moin/ojp/cgi-bin/ProjectPasswords in *?*

Exception

CacheNeedsUpdate

   - args = ('CacheNeedsUpdate',)
   - message = 'CacheNeedsUpdate'

 System Details

   - Date: Tue, 08 Jan 2008 08:31:52 +0000
   - Platform: Linux ojp-wiki 2.6.20-16-generic #2 SMP Sun Sep 23
   19:50:39 UTC 2007 i686
   - Python: Python 2.5.1 (/usr/bin/python)
   - MoinMoin: Release 1.5.3 (release)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20080108/55c124d1/attachment.html>


More information about the Moin-user mailing list