8000 Maven cache is never extracted on Azure/Aurora VMs · Issue #48173 · keycloak/keycloak · GitHub
[go: up one dir, main page]

Skip to content
  • Maven cache is never extracted on Azure/Aurora VMs #48173

    Closed

    Description

    @Pepo48

    Before reporting an issue

    • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

    Area

    ci

    Describe the bug

    The Ansible task Install Maven repository on the remote hosts in .github/scripts/ansible/roles/keycloak_remote_installer/tasks/install.yml is always skipped due to a creates directive that checks for a path (/opt/keycloak) already created by a prior step.

    Version

    nightly

    Regression

    • The issue is a regression

    Expected behavior

    The m2 archive should be extracted to the user's home directory on the VM (/home/<user>/.m2/) so Maven can use the cached dependencies.

    I guess there are wo issues:

    1. creates: "{{ kc_home }}" - /opt/keycloak is created from prior step at line 40, so this task is always skipped
    2. dest: "{{ kc_home }}" - even if extracted, .m2/ would land at /opt/keycloak/.m2/ instead of /home/<user>/.m2/ where Maven looks

    Actual behavior

    The m2 archive is created on the GitHub runner (tar -C ~/ -czvf m2.tar.gz .m2) but never extracted on the VM:

    TASK [keycloak_remote_installer : Install Maven repository on the remote hosts] ***
    skipping: [keycloak] => {
        "changed": false,
        "msg": "skipped, since /opt/keycloak exists"
    

    All dependencies are downloaded from Maven Central on every run.

    How to Reproduce?

    Run Aurora/Azure workflow.

    Anything else?

    No response

    Activity

    1. self-assigned this
      on Apr 16, 2026
    2. added theissue type on Apr 16, 2026
    3. keycloak-github-bot commented on Apr 16, 2026

      @keycloak-github-bot

      Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment.

      If you are affected by this issue, upvote it by adding a 👍 to the description. We would also welcome a contribution to fix the issue.

    4. Pepo48 commented on Apr 16, 2026

      @Pepo48
      ContributorAuthor

      Azure test run: https://github.com/Pepo48/keycloak/actions/runs/24530708473/job/71713167931

      Edit: seems to work now, search in logs:
      PUT /tmp/m2.tar.gz TO /home/azureuser/.ansible/tmp/.../source (line 2644)
      "handler": "TgzArchive", "dest": "/home/azureuser", "rc": 0, "changed": true (line 2660)
      /usr/bin/tar --extract -C /home/azureuser -z --owner=azureuser (line 2660)

    5. added 2 commits that reference this issue on Apr 16, 2026
      ee35d3e
    6. added a commit that references this issue on Apr 21, 2026
      9d82f06
    7. added a commit that references this issue on Apr 21, 2026
      8265d38
    8. added a commit that references this issue on Jul 20, 2026
      70fa5a5
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Type

    Fields

    No fields configured for bug.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

    • 0