Update Plone sites with upgrade steps

Hi,

I have a policy product which I made many upgrade steps. In my ambient I have many Plone sites. How can I upgrade all sites together?

Plone version 4.3.6

Thanks,
Rafahela

Did you give up on using collective.upgrade? Or do you still want help with that package? @gbastien can you help us here?

I wrote https://pypi.python.org/pypi/spirit.plone.sitemanagement for this. Once installed in your buildout, you can open http://localhost:8080/@@plone-sitemanagement, which gives you an overview of all your sites and the option to upgrade some or all packages on the available sites:

Works for Plone 4 and Plone 5.

Awesome! I'll test this product now.

Thanks!
Rafa

I tried collective.upgrade without success. I'll try https://pypi.python.org/pypi/spirit.plone.sitemanagement

Thanks,
Rafahela

Hi @rafahela

you contacted me by e-mail, I did not see this conversation here, I will continue here so it may be useful for others.

Here is you e-mail :

Sorry... But now I'm getting this error:

./bin/upgrade-portals --username admin -G profile-interlegis.portalmodelo.policy:default Plone

2018-03-09 10:54:19 WARNING ZODB.blob (8106) Blob dir /home/rafahela/Plone/zinstance/var/blobstorage/ has insecure mode setting
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'PluggableAuthService' from module 'Products.PluggableAuthService.PluggableAuthService'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'PloneSite' from module 'Products.CMFPlone.Portal'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'ZODBUserManager' from module 'Products.PluggableAuthService.plugins.ZODBUserManager'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'ZODBRoleManager' from module 'Products.PluggableAuthService.plugins.ZODBRoleManager'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'ExtendedCookieAuthHelper' from module 'Products.PlonePAS.plugins.cookie_handler'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'ChallengeProtocolChooser' from module 'Products.PluggableAuthService.plugins.ChallengeProtocolChooser'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'PluginRegistry' from module 'Products.PluginRegistry.PluginRegistry'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'HTTPBasicAuthHelper' from module 'Products.PluggableAuthService.plugins.HTTPBasicAuthHelper'
2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'RequestTypeSniffer' from module 'Products.PluggableAuthService.plugins.RequestTypeSniffer'
Traceback (most recent call last):
File "./bin/upgrade-portals", line 97, in
'--log-file', '/home/rafahela/Plone/zinstance/var/log/upgrade.log']))
File "/home/rafahela/Plone/buildout-cache/eggs/collective.upgrade-1.2-py2.7.egg/collective/upgrade/run.py", line 104, in main
user = acl_users.getUser(args.username)
AttributeError: getUser

I have about 50 sites per instance. Have I to run the command with site_id?

Thanks,
Rafahela

We use collective.upgrade now to upgrade Plone 4.3.x sites and it works as expected.

The error :

2018-03-09 10:54:20 WARNING OFS.Uninstalled Could not import class 'PluggableAuthService' from module 'Products.PluggableAuthService.PluggableAuthService'

could be related to your problem.
Does that instance starts correctly with a "bin/instance fg" or other?

Using commande line :

./bin/upgrade-portals --username admin -G profile-interlegis.portalmodelo.policy:default Plone

will update only the site having "Plone" as site id, but if you do not pass a site id, every Plone sites will be updated.

Could you please check that this runs correctly and that you can connect as an "admin"?

Gauthier

1 Like

Yes, my instance is running with fg. I can access my sites, and I have an "admin" user.