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

Getting a continuos warning message when running the docker container using image wso2is:7.0.0.83-alpine-jdk17 #22214

Open
lakshithakasun opened this issue Jan 8, 2025 · 0 comments
Labels

Comments

@lakshithakasun
Copy link

lakshithakasun commented Jan 8, 2025

Description

When running the Docker container image wso2is:7.0.0.83-alpine-jdk17 getting the following warning continuously and it appears to be a permission issue.

[2025-01-08 12:59:25,541] [] WARN {java.util.prefs} - Could not lock System prefs. Unix error code 2.
[2025-01-08 12:59:25,555] [] WARN {java.util.prefs} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
[2025-01-08 12:59:55,539] [] WARN {java.util.prefs} - Could not lock System prefs. Unix error code 2.
[2025-01-08 12:59:55,545] [] WARN {java.util.prefs} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
[2025-01-08 13:00:25,545] [] WARN {java.util.prefs} - Could not lock System prefs. Unix error code 2.
[2025-01-08 13:00:25,565] [] WARN {java.util.prefs} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.

This can be solved by passing following java options when starting server through the docker-entrypoint.sh file

sh ${WSO2_SERVER_HOME}/bin/wso2server.sh -Djava.util.prefs.systemRoot=/home/wso2carbon/.java -Djava.util.prefs.userRoot=/home/wso2carbon/.java/.userPrefs "$@"

This should be proactively checked in other images as well.

Steps to Reproduce

Execute the following commands

  1. docker pull docker.wso2.com/wso2is:7.0.0.83-alpine-jdk17
  2. docker run -d --name wso2is -p 9443:9443 docker.wso2.com/wso2is:7.0.0.83-alpine-jdk17
  3. docker logs -f wso2is
  4. You can observe following,

[2025-01-08 13:03:25,697] [] WARN {java.util.prefs} - Could not lock System prefs. Unix error code 2.
[2025-01-08 13:03:25,756] [] WARN {java.util.prefs} - Couldn't flush system prefs: java.util.prefs.BackingStoreException:

Version

Identity Server 7.0

Environment Details (with versions)

No response

@lakshithakasun lakshithakasun changed the title Getting a continuos warning message when running the docker image wso2is:7.0.0.83-alpine-jdk17 Getting a continuos warning message when running the docker container using image wso2is:7.0.0.83-alpine-jdk17 Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant