Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue with nexus version 3.74.0.05 #69

Open
thomasminst opened this issue Nov 27, 2024 · 3 comments
Open

Compatibility issue with nexus version 3.74.0.05 #69

thomasminst opened this issue Nov 27, 2024 · 3 comments

Comments

@thomasminst
Copy link

Could it be that the module is currently not yet compatible with higher versions?
I am noticing things like the following occurring after the upgrade:

/Stage[main]/Profile::Nexus/Nexus3_smtp_settings[global]

Could not evaluate: Error while retrieving configuration: Could not run the command due to '400' '{
"name" : "f5ab3c7ba3f6716692426a9dfb936c1b",
"result" : "javax.script.ScriptException: groovy.lang.MissingMethodException: No signature of method: Script3.ensureDefault() is applicable for argument types: (org.sonatype.nexus.crypto.secrets.internal.SecretsServiceImpl$SecretImpl...) values: [org.sonatype.nexus.crypto.secrets.internal.SecretsServiceImpl$SecretImpl@28edbde0, ...]\nPossible solutions: ensureDefault(java.lang.String), ensureDefault(java.lang.String, java.lang.String)"
}'

err	nexus3_ldap[ldap-ad.onprvp.fgov.be]: Updating: Failed after 0.294610 seconds: Error while updating Puppet::Provider::Nexus3Ldap::Nexus3Ldap ldap-ad.onprvp.fgov.be: Could not run the command due to '400' '{
"name" : "ebde955f13e274a0d6a3942b7168109d",
"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: [xxxxxxxxxxxxx]\nPossible solutions: setSystemPassword(org.sonatype.nexus.crypto.secrets.Secret), getSystemPassword(), setRawSystemPassword(java.lang.String), getRawSystemPassword()"
}'
@Joris29
Copy link

Joris29 commented Jan 14, 2025

@wandenberg any clue on why this might be happening?

@wandenberg
Copy link
Owner

Hi @Joris29 Nexus changed how to set passwords on their newer versions.
Can you try the code at the branch nexus_373_plus? It is not 100% validated yet, so I have not pushed to the master.

@thomasminst
Copy link
Author

@wandenberg I have tested the code from the nexus_373_plus branch with Nexus version 3.76.1.01, and it seems to work perfectly fine there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants