This blog entry shows how to use wget to pack the zope database, which
you can then put in a cronjob to call each day or week:


It is just one line:

wget -q http://username:[EMAIL 

But as a comment on that blog shows: this does not work anymore.  Zope
now requires that you visit that form using POST, which is not what
wget is doing automatically.  So you get an error in your event.log
like this:

2007-06-13T18:43:41 ERROR Zope.SiteErrorLog 
Traceback (innermost last):
  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module <string>, line 3, in _facade
  Module AccessControl.requestmethod, line 52, in _curried
Forbidden: Request must be POST

I have tried adding POST data to the wget call.  Then you get this and
other variations:

wget -q --post-data='days:float=1&submit=Pack' \
http://user:[EMAIL PROTECTED]:8080/Control_Panel/Database/manage_pack

But that gives other errors:

Unauthorized: Your user account does not have the required permission.
Access to 'title_or_id' of (DatabaseChooser at
/Control_Panel/Database) denied. Your user account, Anonymous User,
exists at (unknown). Access requires one of the following roles:
['Manager']. Your roles in this context are ['Anonymous'].

For zeo I could use the bin/zeopack.py from the zope software home,
but not for non-zeo zope servers.

Does anybody know a solution?

Maurits van Rees | http://maurits.vanrees.org/ [NL]
            Work | http://zestsoftware.nl/
"Do not worry about your difficulties in computers,
 I can assure you mine are still greater."

Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to