Skip to content

How can plone-exporter be called manually inside a docker based Plone 6.0 Volto deployment? #51

@acsr

Description

@acsr

Goal

Export content from an existing Plone Volto site to recreate the server from scratch.

Prerequisite

Installed and/or activate plone.exportimport and deployed it to the server.

Unclear from the docs

After following the docs at https://6.docs.plone.org/admin-guide/export-import.html I am not sure why the call for the config fails to fill the variables inside the conf file, because the context is not clear to me in the docker deployment setup.

Command and Error

Running the export command I get an error when using the Zope config as described below (I used the relstorage.conf path)

Connection to the server via ssh and a bash shell inside the backend.1 container

  • plone_exporter, plone_importer commands are available inside the backend container /app/bin/ path
  • target for export is created with mkdir -p /app/export/20250205_211044/
  • relstorage.conf and zope.conf are at /app/etc/

Command is executed inside the backend container bash with current directory /app but explicit absolute path :

/app/bin/plone-exporter --include-revisions /app/etc/relstorage.conf Plone /app/export/20250205_211044/

Error:

...
ZConfig.SubstitutionReplacementError: no replacement for 'SECURITY_POLICY_IMPLEMENTATION'
(line 8 in file:///app/etc/relstorage.conf)

Steps to reproduce

  • Plone Volto deployment created by Cookieplone 0.8.2 with site up and running.
    • Plone 6.0.14, Volto 18.7.0, Python 3.11 deployed on Ubuntu LTS 24.04
    • Project is using Traefik and Postgres Railstorage
  • In the setup.py the plone.exportimport requirement is already present
  • added an plone.exportimport line to the requirements.txt as plone.exportimport==1.0.0b1
  • added at the end of the line in backend/instance.yaml `zcml_package_includes: 'my.project', 'plone.exportimport'
  • Backend was rebuild using make backend-build
  • Changes were commited and pushed to github
  • Action rebuild the backend image
  • Manual Deployment workflow executed with no errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions