nexus3-oss icon indicating copy to clipboard operation
nexus3-oss copied to clipboard

Ansible role is failing during update from Nexus 3.71.1-06 to 3.73.0-12

Open uwehdaub opened this issue 4 months ago • 4 comments

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

TASK [ansible-thoteam.nexus3-oss : Calling Groovy script setup_ldap] **************
fatal: [dxnexustest0.ciserver.dxnexus.test1.peng.be-gcw1.metroscales.io]: FAILED! => 
   {"changed": false, "connection": "close", "content_length": "455", "content_type": "application/json", "date": "Mon, 14 Oct 2024 12:36:59 GMT", "elapsed": 3, 
   "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: <secret-password-here>
   Possible 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.73.0-12 (OSS)", 
   "status": 400, "url": "http://localhost:8081/service/rest/v1/script/setup_ldap/run", "x_content_type_options": "nosniff"}

This is the next error I stumbled in when I patched the ansible role locally (by commenting out the parts that are responsible for #431). It seems that over time more and more groovy scripts needs to be replaced by API calls.

uwehdaub avatar Oct 14 '24 12:10 uwehdaub