Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packing a non-ZEO Zope instance broken #623

Closed
jugmac00 opened this issue May 13, 2019 · 5 comments

Comments

@jugmac00
Copy link
Member

commented May 13, 2019

For Zope 2.13, there was a button in the ZMI which allowed packing a DB - the button used to call ApplicationManager.manage_pack.

Both the button and the method got removed back in 2016

Ideally

  • we get back the button in the ZMI (I am not the only one who wants the button back; there was a quick discussion at last weeks Zope sprint)
  • find some time to update the documentation
  • get a script for a standalone Zope setup?

@dataflake dataflake changed the title How to pack a ZODB with Zope 4? Packing a non-ZEO Zope instance broken May 13, 2019

@dataflake dataflake self-assigned this May 13, 2019

@dataflake dataflake added the bug label May 13, 2019

@dataflake dataflake added this to To do in Zope 4 bugfix via automation May 13, 2019

@dataflake dataflake added this to the 4.0.1 milestone May 13, 2019

@dataflake

This comment has been minimized.

Copy link
Member

commented May 13, 2019

I'll look into that.

There's no point in creating a script for such a standalone instance. It wouldn't be able to access the Data.fs file unless you shut down the Zope instance, or it would end up basically faking out that button click in the ZMI if the button returns. Zope 2 never had such a script, either, for good reason.

Zope 4 bugfix automation moved this from To do to Done May 17, 2019

@georgpfolz

This comment has been minimized.

Copy link

commented Aug 14, 2019

So how are we supposed to pack the ZODB for standalone instances with Zope4? There is a button "Minimize" now, but it doesn't seem affect the size of the ZODB, same for calling it from a POST request. Did I miss something?

@jugmac00

This comment has been minimized.

Copy link
Member Author

commented Aug 14, 2019

@georgpfolz This should be be the button you are looking for:

<input class="btn btn-primary" id="pack" type="submit"
name="submit" value="Pack" />

@d-maurer

This comment has been minimized.

Copy link
Contributor

commented Aug 14, 2019

@georgpfolz

This comment has been minimized.

Copy link

commented Aug 14, 2019

Ok, I was still on Zope 4.0, that's why I missed it... Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.