Skip to content

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

@smaiyaki

Description

@smaiyaki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions