OpenLiberty / ci.docker

Eclipse Public License 1.0
43 stars 59 forks source link

Full profile with Java 11 on PowerPC fails to build with exit code 22 #490

Closed wraschke closed 9 months ago

wraschke commented 10 months ago

From weekly build output log:

[2023-11-27T08:25:00.836Z] ****** Building image <etc>/open-liberty:23.0.0.11-full-java11-openj9-ubi-ppc64le...
...
[2023-11-27T08:25:23.175Z] #18 [stage-1 12/12] RUN if [ "true" = "true" ]; then populate_scc.sh; fi     && rm -rf /output/messaging /output/resources/security /logs/* /opt/ol/wlp/output/.classCache     && chown -R 1001:0 /opt/ol/wlp/output     && chmod -R g+rwx /opt/ol/wlp/output
[2023-11-27T08:25:38.139Z] #18 ERROR: process "/bin/sh -c if [ \"$OPENJ9_SCC\" = \"true\" ]; then populate_scc.sh; fi     && rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache     && chown -R 1001:0 /opt/ol/wlp/output     && chmod -R g+rwx /opt/ol/wlp/output" did not complete successfully: exit code: 22
[2023-11-27T08:25:38.139Z] ------
[2023-11-27T08:25:38.139Z]  > [stage-1 12/12] RUN if [ "true" = "true" ]; then populate_scc.sh; fi     && rm -rf /output/messaging /output/resources/security /logs/* /opt/ol/wlp/output/.classCache     && chown -R 1001:0 /opt/ol/wlp/output     && chmod -R g+rwx /opt/ol/wlp/output:
[2023-11-27T08:25:38.139Z] ------
[2023-11-27T08:25:38.139Z] Dockerfile.ubi.openjdk11:139
[2023-11-27T08:25:38.139Z] --------------------
[2023-11-27T08:25:38.139Z]  138 |     # Create a new SCC layer
[2023-11-27T08:25:38.139Z]  139 | >>> RUN if [ "$OPENJ9_SCC" = "true" ]; then populate_scc.sh; fi \
[2023-11-27T08:25:38.139Z]  140 | >>>     && rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache \
[2023-11-27T08:25:38.139Z]  141 | >>>     && chown -R 1001:0 /opt/ol/wlp/output \
[2023-11-27T08:25:38.139Z]  142 | >>>     && chmod -R g+rwx /opt/ol/wlp/output
[2023-11-27T08:25:38.139Z]  143 |     
[2023-11-27T08:25:38.139Z] --------------------
[2023-11-27T08:25:38.139Z] ERROR: failed to solve: process "/bin/sh -c if [ \"$OPENJ9_SCC\" = \"true\" ]; then populate_scc.sh; fi     && rm -rf /output/messaging /output/resources/security /logs/* $WLP_OUTPUT_DIR/.classCache     && chown -R 1001:0 /opt/ol/wlp/output     && chmod -R g+rwx /opt/ol/wlp/output" did not complete successfully: exit code: 22

I can provide the URL to that log separately.

This is blocking weekly image refreshes.

kabicin commented 9 months ago

Problem occurred when starting/stopping the Liberty server leading to segmentation error from the JVM. Updating the Java base image to version 11.0.21 resolved the issue. There was an existing problem affecting Power 10 machines, which is what our build machines were running at the time of the failures. The related Java fix is here https://github.com/eclipse-openj9/openj9/pull/17964.