Skip to content

Ansible role is failing during update from Nexus 3.71.1-06 to 3.72.0-04 #431

@uwehdaub

Description

@uwehdaub

During the update from Nexus 3.71.1 to 3.72.0 the role (v2.5.1) fails with the following error message:

TASK [ansible-thoteam.nexus3-oss : Create/Check blobstores] ********************************************************************************************************************
included: /home/uwe/.ansible/roles/ansible-thoteam.nexus3-oss/tasks/call_script.yml for dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io

TASK [ansible-thoteam.nexus3-oss : Calling Groovy script create_blobstores_from_list] ******************************************************************************************
fatal: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io]: FAILED! => {"changed": false, "connection": "close", "content_length": "278", "content_type": "application/json", "date": "Mon, 07 Oct 2024 10:58:08 GMT", "elapsed": 0, "failed_when_result": true, "json": {"name": "create_blobstores_from_list", "result": "javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.sonatype.nexus.internal.provisioning.BlobStoreApiImpl.getBlobStoreManager() is applicable for argument types: () values: []"}, "msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request", "redirected": false, "server": "Nexus/3.72.0-04 (OSS)", "status": 400, "url": "http://localhost:8081/service/rest/v1/script/create_blobstores_from_list/run", "x_content_type_options": "nosniff"}

TASK [ansible-thoteam.nexus3-oss : Debug script result for global fail] ********************************************************************************************************
skipping: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io]

TASK [ansible-thoteam.nexus3-oss : Global script failure at nexus level] *******************************************************************************************************
skipping: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io]

TASK [ansible-thoteam.nexus3-oss : Debug script result for failed script actions] **********************************************************************************************
ok: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io] => {
    "msg": "javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.sonatype.nexus.internal.provisioning.BlobStoreApiImpl.getBlobStoreManager() is applicable for argument types: () values: []"
}

TASK [ansible-thoteam.nexus3-oss : Script action failure] **********************************************************************************************************************
fatal: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io]: FAILED! => {"changed": false, "msg": "The script create_blobstores_from_list returned at least one of its actions has failed. See the degug message above for details"}

PLAY RECAP *********************************************************************************************************************************************************************
dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io : ok=87   changed=1    unreachable=0    failed=1    skipped=56   rescued=1    ignored=0   

The playbook was running on Ubuntu 20.04.6 LTS (GNU/Linux 5.15.0-1060-gcp x86_64).

Ansible role v2.5.2 fails with the same error message.

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