You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
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
[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
The text was updated successfully, but these errors were encountered: