Repository navigation
Description
Currently, our Dockerfile looks like this
FROM icr.io/appcafe/websphere-liberty:24.0.0.6-kernel-java11-openj9-ubi
...
COPY --chown=1001:0 server.xml /opt/ibm/wlp/usr/servers/defaultServer/server.xml
RUN configure.sh
...
And the build passes for amd64 archtecture. But when the same code executes for s390x architecture builds, we are seeing some error that is originating from populate_scc.sh file, specifically travis build fails after server stop command with this output:
310.5 Stopping server defaultServer.
314.2 The command stop failed because of a communication error with the server.
314.2 Server defaultServer stop failed. Check server logs for details.
Tried to debug it using sed command by printing the console.log file after the server start and server stop command:
RUN sed -i "s|\/opt\/ibm\/wlp\/bin\/server start|\/opt\/ibm\/wlp\/bin\/server start \&\& ls \/logs \&\& \-al \&\& cat \/logs\/console.log|g" /opt/ibm/helpers/build/populate_scc.sh
RUN sed -i "s|\/opt\/ibm\/wlp\/bin\/server stop|\/opt\/ibm\/wlp\/bin\/server stop \&\& ls \-al \/logs \&\& cat \/logs\/console.log|g" /opt/ibm/helpers/build/populate_scc.sh
This was the console.log output after server start command:
#9 304.7 Launching defaultServer (WebSphere Application Server 24.0.0.6/wlp-1.0.90.cl240620240603-2001) on Eclipse OpenJ9 VM, version 11.0.24+8 (en_US)
#9 304.7 [AUDIT ] CWWKE0001I: The server defaultServer has been launched.
#9 304.7 [AUDIT ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/24.0.0.6/lafiles/en.html
#9 304.7 [AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ibm/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
#9 304.7 [AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
#9 304.7 [ERROR ] CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 [ERROR ] CWWKE0701E: bundle com.ibm.ws.jca:1.0.90.cl240620240603-2001 (98)[com.ibm.ws.jca.internal.ResourceAdapterService(219)] : The activate method has thrown an exception java.lang.IllegalArgumentException: CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 at com.ibm.ws.wmq.WMQService.setClassLoaderID(WMQService.java:205)
#9 304.7 at [internal classes]
#9 304.7
#9 304.7 [AUDIT ] CWWKS4104A: LTPA keys created in 7.658 seconds. LTPA key file: /opt/ibm/wlp/output/defaultServer/resources/security/ltpa.keys
#9 304.7 [AUDIT ] CWPKI0803A: SSL certificate created in 23.795 seconds. SSL key file: /opt/ibm/wlp/output/defaultServer/resources/security/key.p12
#9 304.7 [AUDIT ] CWWKI0001I: The CORBA name server is now available at corbaloc:iiop:localhost:2809/NameService.
#9 304.7 [ERROR ] CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 [ERROR ] CWWKE0701E: bundle com.ibm.ws.jca:1.0.90.cl240620240603-2001 (98)[com.ibm.ws.jca.internal.ResourceAdapterService(219)] : The activate method has thrown an exception java.lang.IllegalArgumentException: CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 at com.ibm.ws.wmq.WMQService.setClassLoaderID(WMQService.java:205)
#9 304.7 at [internal classes]
#9 304.7
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/jwt/
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/oidcclient/
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/oauth2/
#9 304.7 [AUDIT ] CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbHome-3.2, ejbLite-3.2, ejbRemote-3.2, el-3.0, federatedRegistry-1.0, jaspic-1.1, javaMail-1.6, jaxb-2.2, jaxrs-2.1, jaxrsClient-2.1, jaxws-2.2, jca-1.7, jdbc-4.2, jmsMdb-3.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, json-1.0, jsonb-1.0, jsonp-1.1, jsp-2.3, jwt-1.0, jwtSso-1.0, ldapRegistry-3.0, managedBeans-1.0, mdb-3.2, monitor-1.0, oauth-2.0, openidConnectClient-1.0, servlet-4.0, ssl-1.0, transportSecurity-1.0, wasJmsClient-2.0, wasJmsServer-1.0, webProfile-8.0, websocket-1.1, wmqJmsClient-2.0].
#9 304.7 [AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 95.428 seconds.
I noticed that the [ERROR] message was being printed on the amd64 side as well (not the probable cause of failure for our build)...
The output of console.log after server stop command:
#9 304.6 + cat /logs/console.log
#9 304.7 Launching defaultServer (WebSphere Application Server 24.0.0.6/wlp-1.0.90.cl240620240603-2001) on Eclipse OpenJ9 VM, version 11.0.24+8 (en_US)
#9 304.7 [AUDIT ] CWWKE0001I: The server defaultServer has been launched.
#9 304.7 [AUDIT ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/24.0.0.6/lafiles/en.html
#9 304.7 [AUDIT ] CWWKG0093A: Processing configuration drop-ins resource: /opt/ibm/wlp/usr/servers/defaultServer/configDropins/defaults/keystore.xml
#9 304.7 [AUDIT ] CWWKZ0058I: Monitoring dropins for applications.
#9 304.7 [ERROR ] CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 [ERROR ] CWWKE0701E: bundle com.ibm.ws.jca:1.0.90.cl240620240603-2001 (98)[com.ibm.ws.jca.internal.ResourceAdapterService(219)] : The activate method has thrown an exception java.lang.IllegalArgumentException: CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 at com.ibm.ws.wmq.WMQService.setClassLoaderID(WMQService.java:205)
#9 304.7 at [internal classes]
#9 304.7
#9 304.7 [AUDIT ] CWWKS4104A: LTPA keys created in 7.658 seconds. LTPA key file: /opt/ibm/wlp/output/defaultServer/resources/security/ltpa.keys
#9 304.7 [AUDIT ] CWPKI0803A: SSL certificate created in 23.795 seconds. SSL key file: /opt/ibm/wlp/output/defaultServer/resources/security/key.p12
#9 304.7 [AUDIT ] CWWKI0001I: The CORBA name server is now available at corbaloc:iiop:localhost:2809/NameService.
#9 304.7 [ERROR ] CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 [ERROR ] CWWKE0701E: bundle com.ibm.ws.jca:1.0.90.cl240620240603-2001 (98)[com.ibm.ws.jca.internal.ResourceAdapterService(219)] : The activate method has thrown an exception java.lang.IllegalArgumentException: CWSJY0035E: Unable to load classes from the WebSphere MQ resource adapter, because the wmqJmsClient.rar.location variable has not been set. Set this variable to point to the location of the MQ resource adapter
#9 304.7 at com.ibm.ws.wmq.WMQService.setClassLoaderID(WMQService.java:205)
#9 304.7 at [internal classes]
#9 304.7
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/jwt/
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/oidcclient/
#9 304.7 [AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/oauth2/
#9 304.7 [AUDIT ] CWWKF0012I: The server installed the following features: [appSecurity-2.0, appSecurity-3.0, beanValidation-2.0, cdi-2.0, distributedMap-1.0, ejbHome-3.2, ejbLite-3.2, ejbRemote-3.2, el-3.0, federatedRegistry-1.0, jaspic-1.1, javaMail-1.6, jaxb-2.2, jaxrs-2.1, jaxrsClient-2.1, jaxws-2.2, jca-1.7, jdbc-4.2, jmsMdb-3.2, jndi-1.0, jpa-2.2, jpaContainer-2.2, jsf-2.3, json-1.0, jsonb-1.0, jsonp-1.1, jsp-2.3, jwt-1.0, jwtSso-1.0, ldapRegistry-3.0, managedBeans-1.0, mdb-3.2, monitor-1.0, oauth-2.0, openidConnectClient-1.0, servlet-4.0, ssl-1.0, transportSecurity-1.0, wasJmsClient-2.0, wasJmsServer-1.0, webProfile-8.0, websocket-1.1, wmqJmsClient-2.0].
#9 304.7 [AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 95.428 seconds.
#9 304.7 + '[' true == true ']'
#9 304.7 + curl --silent --output /dev/null --show-error --fail --max-time 5 localhost:9080/
#9 307.0 + '[' true == true ']'
#9 307.0 + curl --silent --output /dev/null --show-error --fail --max-time 5 localhost:9080/openapi
#9 307.2 curl: (22) The requested URL returned error: 404 Not Found
#9 307.2 + echo 'localhost:9080/openapi call failed, continuing'
#9 307.2 + /opt/ibm/wlp/bin/server stop
#9 307.2 localhost:9080/openapi call failed, continuing
#9 307.7
#9 310.5 Stopping server defaultServer.
#9 314.2 The command stop failed because of a communication error with the server.
#9 314.2 Server defaultServer stop failed. Check server logs for details.
We then checked if the server is stopping successfully or is there's an issue during stop, so we printed server stop || sever status
and the output was:
#9 340.8 + /opt/ibm/wlp/bin/server status
1057#9 341.3
1058#9 344.5 Server defaultServer is not running.
Even though server stop command returned non zero code, the server stopped anyway according to the console log above. So, for a workaround for now, we are skipping the error for s390x build by adding || true after server stop command, which looks something like this:
RUN if [ "$ARCHITECTURE" != "amd64" ] ; then \
sed -i "s|\/opt\/ibm\/wlp\/bin\/server stop|\/opt\/ibm\/wlp\/bin\/server stop \|\| true|g" /opt/ibm/helpers/build/populate_scc.sh; \
fi
I was hoping to get some more insights on why the build is failing and if we can add similar logic to the code for s390x builds, or better, if we can figure out what is causing the issue to fix at the root source.
Activity
leochr commentedon Sep 4, 2024
Hi @Rohanjos97 Thanks for reaching out.
Is the failure occurring on s390x consistently? or is it intermittent?
When it fails, does it always fail on the
server stopcommand (inpopulate_scc.sh)? or does it also fail onserver start?Apart from the 'communication error' message, I don't see anything else to indicate the reason for the failure.
Please print out the start and stop logs to see if they contain any additional information. Thank you
Rohanjos97 commentedon Sep 5, 2024
Hi @leochr,
Yes, this failure is consistent in all our s390x travis builds...
In some of my previous failed builds, I was seeing this error at
RUN configure.shcommand which was intermittent. I couldn't make much out of it, but maybe it is helpful?There was
no /opt/ol/wlp/bin/serverdirectory, so I changed it according to our code/opt/ibm/wlp/bin/serverand the output was:Here's the output of server stop command:
Let me know if anything else is required.
Thanks!
leochr commentedon Sep 6, 2024
@Rohanjos97 Thank you for providing the logs.
@ymanton Error occurs during SCC generation (
populate_scc.sh). Noticed the errors below. Could you please take a look to see if this is same as the the other issue (segmentation error / findSharedClassImpl3)? Thank you.ymanton commentedon Sep 6, 2024
No, this is a different kind of error. The JVM is crashing while executing JIT compiled code because of a floating point exception. FYI @r30shah.
leochr commentedon Sep 6, 2024
Thank you for the confirmation Younes.
The floating point exception occurs intermittently, but server stop failure is consistent, at least on s390x. I think we should focus on the server stop failure during SCC generation.
@Rohanjos97 Are the latest logs from starting and stopping the server within populate_scc.sh? Noticed some feature definition missing error (CWWKF0042E), so wanted to clarify. Thank you
ymanton commentedon Sep 7, 2024
I don't see any output from the JVM in any of the logs after
server stop, but the process looks like its no longer running.That suggests that it was killed forcibly without giving the JVM a chance to handle the error. Typically that happens when the system is low on memory.
Is it possible to check the kernel log after
server stopfails? Can you execute thedmesgcommand once the container image build fails and capture the output? Ifdmesgdoesn't work on Travis something likesudo journalctlmightr30shah commentedon Sep 9, 2024
Regarding to failures in the JIT compiled code posted in #635 (comment), I see that JVM tries to produce the system dump at the time of the failure, but could not (May be due core pattern is not set inside container / some other limitations on the container), if this is consistently reproducible, would it be possible to get the core-dump ?
I am not sure if this is reproducible using one of the template servers, will try couple to see, but in order to diagnosis the segmentation fault, would need core-dump to see why it failed with floating point error.
Rohanjos97 commentedon Sep 10, 2024
Hi @leochr, sorry for the late response, yes the logs are from within populate_scc.sh file as I modified the code from inside my container using this
sedcommandRUN sed -i "s|\/opt\/ibm\/wlp\/bin\/server stop|\/opt\/ibm\/wlp\/bin\/server stop \|\| cat \/logs\/console.log \&\& \/opt\/ibm\/wlp\/bin\/server status|g" /opt/ibm/helpers/build/populate_scc.shleochr commentedon Sep 10, 2024
@ymanton @r30shah Thank you for taking a look and suggesting the diagnostic materials required for further investigation.
@Rohanjos97 Could you please gather them? Thank you
Rohanjos97 commentedon Sep 11, 2024
Hi all,
I tried to get the logs using
dmesgandjournalctlcommand as suggested by @ymanton, but I was not able to fetch the logs ofdmesgcommandoutput of
sudo dmesg:I'm running these commands with root user and tried to install sudo, but still seeing the same error for s390x achitecture...
output of
journalctl:I'm trying to print the output of
dmesgas suggested by @ymanton once I manage to get past the sudo error, I'll post it here. Meanwhile, lemme know if you want me to try some other commands.@r30shah Please refer the attached file for the dumpfile that was in the location:
opt/ibm/wlp/output/defaultServer/javacore.20240911.071456.259.0002.txt.Please let me know if I missed something/ more information is required.
dump_file.txt
Thanks!
Rohanjos97 commentedon Sep 13, 2024
Hi All,
I resolved the sudo error that I was getting earlier on using
dmesgcommand, but it seems it wasn't a sudo error, but something else... been trying to work it out, but couldn't get to print any logs even after fixing sudo.I tried to install
rsyslogand check if I can print logs from/var/log/syslog, but that also doesn't show up.There are all the files available at the
/var/loglocation, please let me know if you require any of these logs to investigate.Thanks!
ymanton commentedon Sep 13, 2024
Try
sudo journalctlrather than justjournalctl. If that still doesn't produce anything try:Rohanjos97 commentedon Sep 13, 2024
Hi @ymanton,
I tried both commands,
sudo journalctlstill returns same output:And as for this command:
sudo grep -r "Killed process" /var/log/*, I got no matching result in those logs.Anything else you have in mind that I could try?
Thanks!
ymanton commentedon Sep 13, 2024
Just so we are on the same page, you are checking the journal, dmesg,
/var/log, etc on the Travis build node, not inside the build container whereserver stopfails, right?The content of your
/var/logabove shows stuff likednf.logandrhsmwhich I would expect on RedHat OSes and inside our UBI-based containers, but not on Travis build nodes which run Ubuntu.Rohanjos97 commentedon Sep 13, 2024
I am checking it inside the container... Since it is the container which is failing, I assumed that all the logs would be inside the container...
Do I have to run these commands in my travis build after the container fails?
ymanton commentedon Sep 13, 2024
If the kernel is terminating the JVM because of lack of memory then the logs will not be in the container, they will be on the host.
Try the previous suggestions on the Travis build node, not in the container.
r30shah commentedon Sep 13, 2024
Hi @Rohanjos97 Regarding to #635 (comment), I am looking for the system dump which I think original failure could not reproduce,
There may be something you need to do for core_pattern / or may be some system limits is causing it (I am not sure).
The one you shared is Javacore, using which I can not know, why we hit the floating point error.
Rohanjos97 commentedon Sep 13, 2024
Here's the output of
dmesgthat I ran on travis ndoe... I guess I got it wrong the whole time 😅. Thanks for pointing it out though.Also, since we are talking about travis, I think I should mention that the travis is not
s390xnode, but aamd64node.@r30shah can you please have a look at these logs and let me if these are helpful? It seems I was looking at the wrong place earlier when I posted that dump, and let me know if you need anything else.
Thanks!
ymanton commentedon Sep 14, 2024
Ok, that's a pretty important detail. If you're using QEMU or some other emulator you should check its logs for errors.
Rohanjos97 commentedon Sep 30, 2024
Hi Guys, I had shared the output of
dmesgcommand that I ran on travis node (instead of running inside the container), please let me know if these logs are of some help...Meanwhile I'll try to fetch the QEMU logs as well
leochr commentedon May 20, 2026
@Rohanjos97 Are you still encountering this issue?