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

Location to store java preferences is not used by Alpine & Centos images #355

Open
NCMEC-daavendasora opened this issue Sep 8, 2022 · 0 comments

Comments

@NCMEC-daavendasora
Copy link

NCMEC-daavendasora commented Sep 8, 2022

Description:
The Dockerfiles for all platforms create directories to store Java preferences in, however only the Ubuntu Dockerfile actually sets the system properties on the image to use them.

Affected Product Version:
6.0.0.1

OS, DB, other environment details and versions:
Project tag: v6.0.0.1 (d0d177a32d1f112f47d17122a19a98ea09bb10d2)
Base Images impacted: Alpine, Centos

Steps to reproduce:

  1. cd docker-is/dockerfiles/centos/is
  2. docker build -t wso2/wso2is:6.0.0-centos --build-arg "WSO2_SERVER_DIST_URL=https://wso2.org/path/to/wso2is-6.0.0.zip" .
  3. docker run wso2/wso2is:6.0.0-centos
  4. Wait for Identity Server to finish launching, every 30 seconds warnings are logged:
    [2022-09-08 06:36:05,783] []  WARN {java.util.prefs} - Could not lock System prefs. Unix error code 32508.
    [2022-09-08 06:36:05,784] []  WARN {java.util.prefs} - Couldn't flush system prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
    

Related Issues
#356 Ubuntu Dockerfile passes incorrect java user preferences path to image

I will be submitting a pull request shortly with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant