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

I am not able to install adoptjdk version 11 anymore #368

Open
smaiyaki opened this issue May 30, 2024 · 0 comments
Open

I am not able to install adoptjdk version 11 anymore #368

smaiyaki opened this issue May 30, 2024 · 0 comments

Comments

@smaiyaki
Copy link

smaiyaki commented May 30, 2024

This used to work for me for very long time and when I begin to to notice with my configuration si that builds are failing. This is my settings

  • role: gantsign.ansible-role-java
    java_version: '{{ adopt_java_version }}'
    java_install_dir: '/path/java'
    java_is_default_installation: no
    tags:
    - AdoptJDK
    when: use_adoptjdk | bool

And then

JAVA
use_adoptjdk: 'true'
adopt_java_version: "11.0.10+9"

The build fails with the message below. This is based on version 9.2.1 of the role

TASK [gantsign.ansible-role-java : check JDK archive layout] *******************
30-May-2024 16:12:38 ok: [my_private_ip] => {"changed": false, "failed_when_result": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, expand_argument_vars, removes, stdin, stdin_add_newline, strip_empty_ends."}
30-May-2024 16:12:38

30-May-2024 16:12:38 TASK [gantsign.ansible-role-java : install JDK] ********************************
30-May-2024 16:12:38 fatal: [my_private_ip]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'rc'. 'dict object' has no attribute 'rc'\n\nThe error appears to be in '/build-dir/MYBUILD-DEPLOY/merged_stack/ansible/roles/gantsign.ansible-role-java/tasks/adoptopenjdk.yml': line 99, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: install JDK\n ^ here\n"}

Now when I use a newer version of the role like version 11.0, I get this message

23-May-2024 14:25:53 TASK [gantsign.ansible-role-java : querying java version] **********************
23-May-2024 14:25:53 ok: [my_private_ip] => {
23-May-2024 14:25:53 "java_release": "11.0.10+9"
23-May-2024 14:25:53 }
23-May-2024 14:25:55
23-May-2024 14:25:55 TASK [gantsign.ansible-role-java : query version info] *************************
23-May-2024 14:25:55 fatal: [my_private_ip]: FAILED! => {"changed": false, "connection": "close", "content": "", "content_encoding": "identity", "content_length": "0", "date": "Thu, 23 May 2024 12:25:55 GMT", "elapsed": 0, "msg": "Status code was 404 and not [200]: HTTP Error 404: Not Found", "redirected": false, "status": 404, "strict_transport_security": "max-age=63072000; includeSubDomains; preload", "url": "https://api.adoptium.net/v3/assets/version/11.0.10%2B9?jvm_impl=hotspot&os=linux&architecture=x64&heap_size=normal&image_type=jdk&project=jdk&release_type=ga&sort_order=DESC&vendor=adoptium", "x_content_type_options": "nosniff", "x_frame_options": "DENY", "x_pod_hostname": "frontend-service-6bb85d4d4-nxp57"}
23-May-2024 14:25:55
23-May-2024 14:25:55 PLAY RECAP *********************************************************************
23-May-2024 14:25:55 10.94.171.43 : ok=62 changed=10 unreachable=0 failed=1 skipped=41 rescued=0 ignored=1

Can you please check and advice how to overcome these problems?

Best Regards

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

1 participant