Skip to content

Calling Groovy script setup_ldap failure #442

@varunpujari96

Description

@varunpujari96

Calling Groovy script setup_ldap failing when trying to upgrade the nexus to 3.79.1-04

TASK [nexus3-oss : Calling Groovy script setup_ldap] ***************************************************************************
fatal: [nexqa01.internal.test.uk]: FAILED! => {"changed": false, "connection": "close", "content_length": "431", "content_type": "application/json", "date": "Tue, 15 Apr 2025 13:09:49 GMT", "elapsed": 0, "failed_when_result": true, "json": {"name": "setup_ldap", "result": "javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.sonatype.nexus.ldap.persist.entity.Connection.setSystemPassword() is applicable for argument types: (String) values: [ZZAS#C6jLABC]\nPossible solutions: setSystemPassword(org.sonatype.nexus.crypto.secrets.Secret), getSystemPassword(), setRawSystemPassword(java.lang.String), getRawSystemPassword()"}, "msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request", "redirected": false, "server": "Nexus/3.79.1-04 (COMMUNITY)", "status": 400, "url": "[http://nexqa01.internal.test.uk:8081/service/rest/v1/script/setup_ldap/run"](http://nexqa01.internal.test.uk:8081/service/rest/v1/script/setup_ldap/run%22), "x_content_type_options": "nosniff"}
 
TASK [nexus3-oss : Debug script result for global fail] ************************************************************************
skipping: [nexqa01.internal.test.uk] => {}
 
TASK [nexus3-oss : Global script failure at nexus level] ***********************************************************************
skipping: [nexqa01.internal.test.uk] => {"changed": false, "skip_reason": "Conditional result was False"}
 
TASK [nexus3-oss : Debug script result for failed script actions] **************************************************************
ok: [nexqa01.internal.test.uk] => {
    "msg": "javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: org.sonatype.nexus.ldap.persist.entity.Connection.setSystemPassword() is applicable for argument types: (String) values: [ZZAS#C6jLABC]\nPossible solutions: setSystemPassword(org.sonatype.nexus.crypto.secrets.Secret), getSystemPassword(), setRawSystemPassword(java.lang.String), getRawSystemPassword()"
}
 
TASK [nexus3-oss : Script action failure] **************************************************************************************
fatal: [nexqa01.internal.test.uk]: FAILED! => {"changed": false, "msg": "The script setup_ldap returned at least one of its actions has failed. See the debug message above for details"}

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