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 ?

Hi @smrtyvz,

I’ve check this issue with our devOps team and they said it could be a permission issue. What you can do is execute ls -l on your /opt/java/openjdk directory and make sure you have read permission for the Java installation directory.

Can you please try that and let us know if you still see the same issue?

Thanks,
Daniel.