Skip to content

Error adding Open Liberty feature to a container on Linux #1071

Open
@turkeylurkey

Description

@turkeylurkey

Log in to a machine using Ubuntu 18 or 20.
Using demo-devmode project, devc branch note the server.xml does not contain mpHealth.
Edit Dockerfile to use a slim image such as openliberty/open-liberty:kernel-slim-java8-ibmjava-ubi
Edit Dockerfile to include RUN features.sh
Start dev mode with mvn liberty:devc
Edit pom.xml to add

        <dependency>
            <groupId>io.openliberty.features</groupId>
            <artifactId>mpHealth-2.2</artifactId>
            <version>20.0.0.12</version>
            <type>esa</type>
        </dependency>

to the dependencies section. Save the file.
Wait one or two minutes. This error appears in the dev mode console:

[ERROR] An error occurred while installing features: CWWKF1289E: The following file cannot be created: /opt/ol/wlp/dev/api/stable/com.ibm.websphere.org.eclipse.microprofile.health.2.2_1.0.47.jar. Ensure that its parent directory exists and that you have the necessary permissions to create files in the directory, then run the command again. RC=21

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    New Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions