Skip to content

Commit

Permalink
- omit the zodbupdate dry run, remove the index file before converting
Browse files Browse the repository at this point in the history
  • Loading branch information
dataflake committed Aug 23, 2019
1 parent a92cafd commit 7f1c78c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docs/zope4/migration/zodb.rst
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ sure your ZODB is packed before going on.

- Zope 4 (latest)
- all relevant applications and addons for your ZODB
- `zodbupdate <https://pypi.org/project/zodbupdate/>`_
- `zodbverify <https://pypi.org/project/zodbverify/>`_

- prepare a Zope configuration
Expand All @@ -111,8 +110,8 @@ sure your ZODB is packed before going on.
configuration before the migration

- start the Application using ``bin/runwsgi etc/zope.ini`` or
``bin/<INSTANCE_NAME>``, depending on the mechanism you used to create the
instance configuration. Test it intensively for incomptibilities and errors.
``bin/<INSTANCE_NAME>``, depending on the mechanism you used to create the
instance configuration. Test it intensively for incomptibilities and errors.

- shut down the Zope instance(s) and ZEO server that serves your ZODB

Expand All @@ -132,8 +131,8 @@ Going from Python 2 to Python 3
- Zope 4 (latest),
- all relevant applications and addons for your ZODB, (make sure they are
comptible with Pyton 3)
- `zodbupdate <https://pypi.org/project/zodbupdate/>`_,
- `zodbverify <https://pypi.org/project/zodbverify/>`_,
- `zodbupdate <https://pypi.org/project/zodbupdate/>`_
- `zodbverify <https://pypi.org/project/zodbverify/>`_

- Prepare a Zope configuration

Expand All @@ -148,19 +147,20 @@ Going from Python 2 to Python 3
- make sure the Zope instance(s) and ZEO server that serves your ZODB are shut
down

- do a dry-run test conversion:
``bin/zodbupdate -n -f var/filestorage/Data.fs --convert-py3 --encoding utf-8 --encoding-fallback latin1``
- to prevent any compatibility issues with the ZODB index files created under
Python 2, remove ``Data.fs.index`` before proceeding.

- if the dry run indicated no errors, do the actual final conversion:
- run the ZODB conversion. Please note that you cannot use ``-n`` to use the
nondestructive ``--dry-run`` mode at this moment, but the actual conversion
works:
``bin/zodbupdate --pack -f var/filestorage/Data.fs --convert-py3 --encoding utf-8 --encoding-fallback latin1``

- Verify the ZODB by iterative loading every pickle using
``bin/zodbverify -f path/to/Data.fs``

- Start the Application using ``bin/runwsgi etc/zope.ini`` or
``bin/<INSTANCE_NAME>``, depending on the mechanism you used to create the
instance configuration. ``Data.fs.index`` will be discarded at the first
start, you can ignore the error message telling that it cannot be read.
instance configuration.

- Verify that the Application works as expected.

Expand Down

0 comments on commit 7f1c78c

Please sign in to comment.