Skip to content

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

Description

@NCMEC-daavendasora

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions