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

Failing Groovy Scripts #36

Closed
denniswisnia opened this issue Mar 10, 2020 · 4 comments
Closed

Failing Groovy Scripts #36

denniswisnia opened this issue Mar 10, 2020 · 4 comments

Comments

@denniswisnia
Copy link

Prerequisites

  • Nexus 3.21

Description

On the newer Verrsions of Nexus, I got the following error:

TASK [aim-nexus : NEXUS | Calling Groovy script maven_create_proxy_repository] ***
fatal: [nexus-staging-02]: FAILED! => {"changed": false, "connection": "close", "content": "{\n  \"name\" : \"maven_create_proxy_repository\",\n  \"result\" : \"org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:\\nScript8.groovy: 12: You cannot create an instance from the abstract interface 'org.sonatype.nexus.repository.config.Configuration'.\\n @ line 12, column 17.\\n   configuration = new Configuration(\\n                   ^\\n\\n1 error\\n\"\n}", "content_length": "373", "content_type": "application/json", "date": "Mon, 09 Mar 2020 10:53:34 GMT", "elapsed": 0, "json": {"name": "maven_create_proxy_repository", "result": "org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:\nScript8.groovy: 12: You cannot create an instance from the abstract interface 'org.sonatype.nexus.repository.config.Configuration'.\n @ line 12, column 17.\n   configuration = new Configuration(\n                   ^\n\n1 error\n"}, "msg": "Status code was 400 and not [200, 204]: HTTP Error 400: Bad Request", "redirected": false, "server": "Nexus/3.21.0-05 (PRO)", "status": 400, "url": "http://localhost:8081/service/rest/v1/script/maven_create_proxy_repository/run", "x_content_type_options": "nosniff"}

Steps to Reproduce

  1. run ansible
  2. try to create Maven Repositories
  3. get the error.

Expected behavior: Create a Repositoriy or correct the settings

Actual behavior: Yea, it fails

@denniswisnia
Copy link
Author

These Guys had the same issue, but I am not very familar with groovy scripts and dont understand how to fix it in the groovy scripts of this playbook:

ansible-ThoTeam/nexus3-oss@fc946c0#diff-b2b1ccc567b0b2cbb358989bdc5bf564

@jmonterrubio
Copy link
Contributor

Thank you @denniswisnia, this is a known issue with the latests versions of nexus. We'll try to fix it asap! Meanwhile you can use the default version setted in the role.

@denniswisnia
Copy link
Author

Yea, I would very happy about a quick fix. I think that this is a easy thing.
And we are trying right know to roll out the newest version. So I cant stay sadly on the the default version.

@vicsufer
Copy link
Contributor

Hi there!
The error is fixed in Release 2.0.0

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