Liquibase cannot access jdk folder on EC2

Hello all,

Due to a CVE issue, I need to update liquibase version from 4.17.2 to 4.26.0 or higher. After the upgrade the application deployment started to fail on EC2 environments but it is working on Kube (EKS) environments.

The logs says:

cannot access '/opt/java/openjdk': Operation not permitted\nCurrent user does not have read access to '/opt/java/openjdk'\nCurrent user is: liquibase

It was working for the previous version. We are using JDK17.

I’ve also tried with user “root” and got the same error.

Is there any idea about what might cause it ?