plone / ansible.plone_server

Ansible role to create a plone server
Other
9 stars 16 forks source link

Show buildout errors #153

Closed djowett closed 3 years ago

djowett commented 3 years ago

It's nice to get buildout errors without having to sign in to the server - this change does that. For example:

TASK [plone.plone_server : Show buildout error] ********************************
task path: /home/daniel/ansible-playbook/roles/plone.plone_server/tasks/main.yml:290
ok: [hv-bionic] => {
    "buildout_error.stdout_lines": [
        "Uninstalling client_reserved.",
        "Uninstalling client1.",
        "Unused options for buildout: 'buildout-user' 'proj-environment-vars'.",
        "Updating zeoserver.",
        "Installing client1.",
        "While:",
        "  Installing client1.",
        "",
        "An internal error occurred due to a bug in either zc.buildout or in a",
        "recipe being used:",
        "Traceback (most recent call last):",
        "  File \"/usr/local/plone-4.3/python2.7/local/lib/python2.7/site-packages/zc/buildout/buildout.py\", line 2174, in main",
        "    getattr(buildout, command)(args)",
        "  File \"/usr/local/plone-4.3/python2.7/local/lib/python2.7/site-packages/zc/buildout/buildout.py\", line 817, in install",
        "    installed_files = self[part]._call(recipe.install)",
        "  File \"/usr/local/plone-4.3/python2.7/local/lib/python2.7/site-packages/zc/buildout/buildout.py\", line 1603, in _call",
        "    return f()",
        "  File \"/usr/local/plone-4.3/buildout-cache/eggs/plone.recipe.zope2instance-4.2.18-py2.7.egg/plone/recipe/zope2instance/__init__.py\", line 95, in install",
        "    major, minor = parsed[0:2]",
        "TypeError: 'Version' object has no attribute '__getitem__'"
    ]
}