ibm-messaging / mq-dev-badge-sample

Sample code of the MQ developer essentials badge
Apache License 2.0
13 stars 37 forks source link

QM never able to start successfully even without starting the TicketGenerator in Docker (I wanted to run it in my local) #26

Closed MohanKopalle closed 1 month ago

MohanKopalle commented 1 month ago
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z CPU architecture: amd64
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z Linux kernel version: 5.15.153.1-microsoft-standard-WSL2
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z Base image: Red Hat Enterprise Linux 9.4 (Plow)
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z Running as user ID 1001 with primary group 0, and supplementary groups 0
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z seccomp enforcing mode: filtering
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z Process security attributes: none
2024-08-12 14:01:47 2024-08-12T08:31:47.818Z No volume detected. Persistent messages may be lost
2024-08-12 14:01:51 2024-08-12T08:31:51.421Z Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords
2024-08-12 14:01:51 2024-08-12T08:31:51.437Z Using queue manager name: QM1
2024-08-12 14:01:54 2024-08-12T08:31:54.063Z Created directory structure under /var/mqm
2024-08-12 14:01:54 2024-08-12T08:31:54.063Z Image created: 2024-06-07T05:34:54+00:00
2024-08-12 14:01:54 2024-08-12T08:31:54.063Z Image tag: ibm-mqadvanced-server-dev:9.4.0.0-r1.20240607053012.53e6ab1-amd64
2024-08-12 14:01:54 2024-08-12T08:31:54.082Z MQ version: 9.4.0.0
2024-08-12 14:01:54 2024-08-12T08:31:54.082Z MQ level: p940-L240605.1
2024-08-12 14:01:54 2024-08-12T08:31:54.082Z MQ license: Developer
2024-08-12 14:01:57 2024-08-12T08:31:57.930Z FIPS cryptography is not enabled.
2024-08-12 14:01:57 2024-08-12T08:31:57.930Z Creating queue manager QM1
2024-08-12 14:01:57 2024-08-12T08:31:57.930Z Starting web server
2024-08-12 14:01:59 2024-08-12T08:31:58.935Z product = WebSphere Application Server 24.0.0.3 (wlp-1.0.87.cl240320240311-1901)\nwlp.install.dir = /opt/mqm/web/\nserver.config.dir = /mnt/mqm/data/web/installations/Installation1/servers/mqweb/\njava.home = /opt/mqm/java/jre64/jre\njava.version = 1.8.0_411\njava.runtime = Java(TM) SE Runtime Environment (8.0.8.25 - pxa6480sr8fp25-20240328_01(SR8 FP25))\nos = Linux (5.15.153.1-microsoft-standard-WSL2; amd64) (en_US)\nprocess = 1045@172.17.0.2\nClasspath = /opt/mqm/web/bin/tools/ws-server.jar:/opt/mqm/web/bin/tools/ws-javaagent.jar\nJava Library path = /opt/mqm/java/jre64/jre/lib/amd64/compressedrefs:/opt/mqm/java/jre64/jre/lib/amd64:/opt/mqm/java/lib64:/opt/mqm/lib64:/opt/mqm/lib:/usr/lib64:/usr/lib\n
2024-08-12 14:01:59 2024-08-12T08:31:58.987Z CWWKE0001I: The server mqweb has been launched.
2024-08-12 14:02:00 2024-08-12T08:32:00.201Z CWWKG0028A: Processing included configuration resource: /opt/mqm/web/mq/etc/mqweb.xml
2024-08-12 14:02:00 2024-08-12T08:32:00.233Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml
2024-08-12 14:02:00 2024-08-12T08:32:00.238Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/tls.xml
2024-08-12 14:02:00 2024-08-12T08:32:00.254Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebexternal.xml
2024-08-12 14:02:00 2024-08-12T08:32:00.255Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
2024-08-12 14:02:01 2024-08-12T08:32:00.798Z CWWKE0002I: The kernel started after 2.175 seconds
2024-08-12 14:02:01 2024-08-12T08:32:00.892Z CWWKF0007I: Feature update started.
2024-08-12 14:02:02 2024-08-12T08:32:02.636Z CWWKG0102I: Found conflicting settings for httpDispatcher configuration.\n  Property appOrContextRootMissingMessage has conflicting values:\n    Value <script>document.title="";document.getElementsByTagName("h1")[0].innerHTML="";document.location.href=document.location.href.indexOf("ibmmq/console") >= 0?"/ibmmq/console/login.html":"ibmmq/console/login.html";</script> is set in file:/opt/mqm/web/mq/etc/mqweb.xml.\n    Value <script>document.location.href="/ibmmq/console/";</script> is set in file:/mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml.\n  Property appOrContextRootMissingMessage will be set to <script>document.location.href="/ibmmq/console/";</script>.\n
2024-08-12 14:02:03 2024-08-12T08:32:03.516Z The IBMJCEPlusFIPS provider is configured for FIPS 140-2. Please note that the 140-2 configuration may be removed in the future.
2024-08-12 14:02:03 2024-08-12T08:32:03.578Z Created user preferences directory.
2024-08-12 14:02:04 2024-08-12T08:32:03.965Z CWWKS0007I: The security service is starting...
2024-08-12 14:02:04 2024-08-12T08:32:04.677Z DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
2024-08-12 14:02:04 2024-08-12T08:32:04.679Z DYNA1071I: The cache provider default is being used.
2024-08-12 14:02:04 2024-08-12T08:32:04.686Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:02:05 2024-08-12T08:32:04.786Z CWWKS4103I: Creating the LTPA keys. This may take a few seconds.
2024-08-12 14:02:05 2024-08-12T08:32:04.829Z CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
2024-08-12 14:02:05 2024-08-12T08:32:05.111Z CWPKI0802I: Creating the SSL certificate. This may take a few seconds.
2024-08-12 14:02:05 2024-08-12T08:32:05.136Z CWWKZ0018I: Starting application com.ibm.mq.rest.
2024-08-12 14:02:05 2024-08-12T08:32:05.136Z CWWKZ0018I: Starting application com.ibm.mq.console.
2024-08-12 14:02:05 2024-08-12T08:32:05.138Z CWWKZ0136I: The com.ibm.mq.rest application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.rest.ear location.
2024-08-12 14:02:05 2024-08-12T08:32:05.138Z CWWKZ0136I: The com.ibm.mq.console application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.webconsole.ear location.
2024-08-12 14:02:05 2024-08-12T08:32:05.338Z CWWKS4104A: LTPA keys created in 0.552 seconds. LTPA key file: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/resources/security/ltpa.keys
2024-08-12 14:02:05 2024-08-12T08:32:05.343Z CWWKS0008I: The security service is ready.
2024-08-12 14:02:05 2024-08-12T08:32:05.344Z CWWKS4105I: LTPA configuration is ready after 0.558 seconds.
2024-08-12 14:02:06 2024-08-12T08:32:06.263Z SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
2024-08-12 14:02:06 2024-08-12T08:32:06.266Z SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
2024-08-12 14:02:06 2024-08-12T08:32:06.273Z SRVE0169I: Loading Web Module: com.ibm.mq.rest.
2024-08-12 14:02:06 2024-08-12T08:32:06.273Z SRVE0169I: Loading Web Module: mqconsole.
2024-08-12 14:02:06 2024-08-12T08:32:06.276Z SRVE0250I: Web Module mqconsole has been bound to default_host.
2024-08-12 14:02:06 2024-08-12T08:32:06.276Z SRVE0250I: Web Module com.ibm.mq.rest has been bound to default_host.
2024-08-12 14:02:06 2024-08-12T08:32:06.413Z SRVE0169I: Loading Web Module: com.ibm.mq.webconsoleinternal.
2024-08-12 14:02:06 2024-08-12T08:32:06.414Z SRVE0250I: Web Module com.ibm.mq.webconsoleinternal has been bound to default_host.
2024-08-12 14:02:06 2024-08-12T08:32:06.465Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console
2024-08-12 14:02:06 2024-08-12T08:32:06.492Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:06 2024-08-12T08:32:06.532Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:02:06 2024-08-12T08:32:06.583Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console/internal
2024-08-12 14:02:06 2024-08-12T08:32:06.584Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:06 2024-08-12T08:32:06.584Z SESN0176I: A new session context will be created for application key default_host/ibmmq/rest
2024-08-12 14:02:06 2024-08-12T08:32:06.585Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:06 2024-08-12T08:32:06.652Z SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at /mnt/mqm/data/web/installations/Installation1/servers/mqweb/logs/state/plugin-cfg.xml.
2024-08-12 14:02:07 2024-08-12T08:32:07.020Z Started web server
2024-08-12 14:02:07 2024-08-12T08:32:06.806Z MQWB2019I: MQ Console level: p940-L240605.1
2024-08-12 14:02:07 2024-08-12T08:32:06.807Z CWWKS9122I:  For URL /* in application com.ibm.mq.console, the following HTTP methods are uncovered, and accessible: POST PUT DELETE HEAD OPTIONS TRACE 
2024-08-12 14:02:07 2024-08-12T08:32:06.852Z MQWB0400E: The MFT REST API is not enabled.
2024-08-12 14:02:07 2024-08-12T08:32:06.853Z MQWB0023I: MQ REST API level: p940-L240605.1
2024-08-12 14:02:07 2024-08-12T08:32:06.869Z MQWB0318I: The mqweb server is configured for 'LOCAL' queue manager REST messaging.
2024-08-12 14:02:07 2024-08-12T08:32:06.870Z CWWKZ0001I: Application com.ibm.mq.rest started in 1.734 seconds.
2024-08-12 14:02:07 2024-08-12T08:32:06.931Z CWWKZ0001I: Application com.ibm.mq.console started in 1.794 seconds.
2024-08-12 14:02:07 2024-08-12T08:32:07.000Z CWWKF0015I: The server has the following interim fixes active in the runtime: PH59781,PH59146,PH60149,PH60146. For a full listing of installed fixes run: productInfo version --ifixes
2024-08-12 14:02:07 2024-08-12T08:32:07.001Z CWWKF0012I: The server installed the following features: [appSecurity-2.0, applicationMonitorMQ-1.0, basicAuthenticationMQ-1.0, concurrent-1.0, distributedMap-1.0, jaxrs-2.1, jaxrsClient-2.1, jndi-1.0, jsonp-1.1, servlet-4.0, ssl-1.0, websocket-1.0].
2024-08-12 14:02:07 2024-08-12T08:32:07.001Z CWWKF0008I: Feature update completed in 6.206 seconds.
2024-08-12 14:02:07 2024-08-12T08:32:07.002Z CWWKF0011I: The mqweb server is ready to run a smarter planet. The mqweb server started in 8.380 seconds.
2024-08-12 14:02:08 2024-08-12T08:32:07.783Z CWPKI0803A: SSL certificate created in 2.672 seconds. SSL key file: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/resources/security/key.jks
2024-08-12 14:02:08 2024-08-12T08:32:07.784Z Successfully loaded default keystore: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/resources/security/key.jks of type: JKS
2024-08-12 14:02:08 2024-08-12T08:32:07.893Z CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.
2024-08-12 14:02:08 2024-08-12T08:32:07.900Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/
2024-08-12 14:02:08 2024-08-12T08:32:07.904Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/rest/
2024-08-12 14:02:08 2024-08-12T08:32:07.909Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/internal/
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z CPU architecture: amd64
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z Linux kernel version: 5.15.153.1-microsoft-standard-WSL2
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z Base image: Red Hat Enterprise Linux 9.4 (Plow)
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z Running as user ID 1001 with primary group 0, and supplementary groups 0
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap
2024-08-12 14:02:29 2024-08-12T08:32:29.890Z seccomp enforcing mode: filtering
2024-08-12 14:02:29 2024-08-12T08:32:29.891Z Process security attributes: none
2024-08-12 14:02:29 2024-08-12T08:32:29.891Z No volume detected. Persistent messages may be lost
2024-08-12 14:02:33 2024-08-12T08:32:33.442Z Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords
2024-08-12 14:02:33 2024-08-12T08:32:33.457Z Using queue manager name: QM1
2024-08-12 14:02:33 2024-08-12T08:32:33.522Z Created directory structure under /var/mqm
2024-08-12 14:02:33 2024-08-12T08:32:33.522Z Image created: 2024-06-07T05:34:54+00:00
2024-08-12 14:02:33 2024-08-12T08:32:33.522Z Image tag: ibm-mqadvanced-server-dev:9.4.0.0-r1.20240607053012.53e6ab1-amd64
2024-08-12 14:02:33 2024-08-12T08:32:33.545Z MQ version: 9.4.0.0
2024-08-12 14:02:33 2024-08-12T08:32:33.545Z MQ level: p940-L240605.1
2024-08-12 14:02:33 2024-08-12T08:32:33.545Z MQ license: Developer
2024-08-12 14:02:37 2024-08-12T08:32:37.453Z FIPS cryptography is not enabled.
2024-08-12 14:02:37 2024-08-12T08:32:37.453Z Creating queue manager QM1
2024-08-12 14:02:37 2024-08-12T08:32:37.453Z Starting web server
2024-08-12 14:02:37 2024-08-12T08:32:37.462Z Detected existing queue manager QM1
2024-08-12 14:02:37 2024-08-12T08:32:37.470Z Removing existing ServiceComponent configuration
2024-08-12 14:02:37 2024-08-12T08:32:37.471Z Starting queue manager
2024-08-12 14:02:37 2024-08-12T08:32:37.477Z AMQ6206I: Command strmqm was issued. [CommentInsert1(strmqm), CommentInsert2(strmqm -x QM1)]
2024-08-12 14:02:37 2024-08-12T08:32:37.478Z AMQ5782I: File system containing '/mnt/mqm/data/qmgrs/QM1' is 5.82% used, 971052MB free. [ArithInsert1(5.82), CommentInsert1(/mnt/mqm/data/qmgrs/QM1), CommentInsert2(1031018), CommentInsert3(971052)]
2024-08-12 14:02:37 2024-08-12T08:32:37.480Z AMQ5782I: File system containing '/mnt/mqm/data/log/QM1' is 5.82% used, 971052MB free. [ArithInsert1(5.82), CommentInsert1(/mnt/mqm/data/log/QM1), CommentInsert2(1031018), CommentInsert3(971052)]
2024-08-12 14:02:39 2024-08-12T08:32:38.718Z product = WebSphere Application Server 24.0.0.3 (wlp-1.0.87.cl240320240311-1901)\nwlp.install.dir = /opt/mqm/web/\nserver.config.dir = /mnt/mqm/data/web/installations/Installation1/servers/mqweb/\njava.home = /opt/mqm/java/jre64/jre\njava.version = 1.8.0_411\njava.runtime = Java(TM) SE Runtime Environment (8.0.8.25 - pxa6480sr8fp25-20240328_01(SR8 FP25))\nos = Linux (5.15.153.1-microsoft-standard-WSL2; amd64) (en_US)\nprocess = 1081@172.17.0.2\nClasspath = /opt/mqm/web/bin/tools/ws-server.jar:/opt/mqm/web/bin/tools/ws-javaagent.jar\nJava Library path = /opt/mqm/java/jre64/jre/lib/amd64/compressedrefs:/opt/mqm/java/jre64/jre/lib/amd64:/opt/mqm/java/lib64:/opt/mqm/lib64:/opt/mqm/lib:/usr/lib64:/usr/lib\n
2024-08-12 14:02:39 2024-08-12T08:32:38.773Z CWWKE0001I: The server mqweb has been launched.
2024-08-12 14:02:40 2024-08-12T08:32:40.015Z CWWKG0028A: Processing included configuration resource: /opt/mqm/web/mq/etc/mqweb.xml
2024-08-12 14:02:40 2024-08-12T08:32:40.064Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml
2024-08-12 14:02:40 2024-08-12T08:32:40.069Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/tls.xml
2024-08-12 14:02:40 2024-08-12T08:32:40.078Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebexternal.xml
2024-08-12 14:02:40 2024-08-12T08:32:40.080Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
2024-08-12 14:02:40 2024-08-12T08:32:40.582Z CWWKE0002I: The kernel started after 2.237 seconds
2024-08-12 14:02:40 2024-08-12T08:32:40.521Z AMQ5775I: Successfully applied automatic configuration INI definitions. [CommentInsert1(INI)]
2024-08-12 14:02:40 2024-08-12T08:32:40.552Z Initializing MQ Advanced for Developers custom authentication service
2024-08-12 14:02:41 2024-08-12T08:32:40.673Z CWWKF0007I: Feature update started.
2024-08-12 14:02:42 2024-08-12T08:32:42.610Z CWWKG0102I: Found conflicting settings for httpDispatcher configuration.\n  Property appOrContextRootMissingMessage has conflicting values:\n    Value <script>document.title="";document.getElementsByTagName("h1")[0].innerHTML="";document.location.href=document.location.href.indexOf("ibmmq/console") >= 0?"/ibmmq/console/login.html":"ibmmq/console/login.html";</script> is set in file:/opt/mqm/web/mq/etc/mqweb.xml.\n    Value <script>document.location.href="/ibmmq/console/";</script> is set in file:/mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml.\n  Property appOrContextRootMissingMessage will be set to <script>document.location.href="/ibmmq/console/";</script>.\n
2024-08-12 14:02:43 2024-08-12T08:32:43.384Z The IBMJCEPlusFIPS provider is configured for FIPS 140-2. Please note that the 140-2 configuration may be removed in the future.
2024-08-12 14:02:43 2024-08-12T08:32:43.944Z AMQ7229I: 128 log records accessed on queue manager 'QM1' during the log replay phase. [ArithInsert1(128), CommentInsert1(QM1)]
2024-08-12 14:02:43 2024-08-12T08:32:43.944Z AMQ7230I: Log replay for queue manager 'QM1' complete. [ArithInsert1(128), CommentInsert1(QM1)]
2024-08-12 14:02:44 2024-08-12T08:32:43.838Z CWWKS0007I: The security service is starting...
2024-08-12 14:02:44 2024-08-12T08:32:43.999Z AMQ7231I: 0 log records accessed on queue manager 'QM1' during the recovery phase. [CommentInsert1(QM1)]
2024-08-12 14:02:44 2024-08-12T08:32:43.999Z AMQ7232I: Transaction manager state recovered for queue manager 'QM1'. [CommentInsert1(QM1)]
2024-08-12 14:02:44 2024-08-12T08:32:44.265Z AMQ7233I: 0 out of 0 in-flight transactions resolved for queue manager 'QM1'. [CommentInsert1(QM1)]
2024-08-12 14:02:44 2024-08-12T08:32:44.427Z DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
2024-08-12 14:02:44 2024-08-12T08:32:44.430Z DYNA1071I: The cache provider default is being used.
2024-08-12 14:02:44 2024-08-12T08:32:44.431Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:02:44 2024-08-12T08:32:44.593Z CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
2024-08-12 14:02:44 2024-08-12T08:32:44.496Z AMQ5533E: The object 'SYSTEM.DEFAULT.AUTHINFO.IDPWOS' specified by the CONNAUTH parameter is invalid [CommentInsert1(SYSTEM.DEFAULT.AUTHINFO.IDPWOS)]
2024-08-12 14:02:45 2024-08-12T08:32:44.954Z CWWKZ0018I: Starting application com.ibm.mq.rest.
2024-08-12 14:02:45 2024-08-12T08:32:44.954Z CWWKZ0018I: Starting application com.ibm.mq.console.
2024-08-12 14:02:45 2024-08-12T08:32:44.957Z CWWKZ0136I: The com.ibm.mq.rest application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.rest.ear location.
2024-08-12 14:02:45 2024-08-12T08:32:44.957Z CWWKZ0136I: The com.ibm.mq.console application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.webconsole.ear location.
2024-08-12 14:02:45 2024-08-12T08:32:45.003Z CWWKS0008I: The security service is ready.
2024-08-12 14:02:45 2024-08-12T08:32:45.010Z CWWKS4105I: LTPA configuration is ready after 0.476 seconds.
2024-08-12 14:02:45 2024-08-12T08:32:45.028Z Successfully loaded default keystore: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/resources/security/key.jks of type: JKS
2024-08-12 14:02:46 2024-08-12T08:32:46.022Z SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
2024-08-12 14:02:46 2024-08-12T08:32:46.029Z SRVE0169I: Loading Web Module: com.ibm.mq.rest.
2024-08-12 14:02:46 2024-08-12T08:32:46.031Z SRVE0250I: Web Module com.ibm.mq.rest has been bound to default_host.
2024-08-12 14:02:46 2024-08-12T08:32:46.032Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/rest/
2024-08-12 14:02:46 2024-08-12T08:32:46.097Z SRVE0169I: Loading Web Module: mqconsole.
2024-08-12 14:02:46 2024-08-12T08:32:46.098Z SRVE0250I: Web Module mqconsole has been bound to default_host.
2024-08-12 14:02:46 2024-08-12T08:32:46.098Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/
2024-08-12 14:02:46 2024-08-12T08:32:46.113Z SRVE0169I: Loading Web Module: com.ibm.mq.webconsoleinternal.
2024-08-12 14:02:46 2024-08-12T08:32:46.114Z SRVE0250I: Web Module com.ibm.mq.webconsoleinternal has been bound to default_host.
2024-08-12 14:02:46 2024-08-12T08:32:46.114Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/internal/
2024-08-12 14:02:46 2024-08-12T08:32:46.238Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console
2024-08-12 14:02:46 2024-08-12T08:32:46.246Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:46 2024-08-12T08:32:46.276Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:02:46 2024-08-12T08:32:46.279Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console/internal
2024-08-12 14:02:46 2024-08-12T08:32:46.279Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:46 2024-08-12T08:32:46.286Z SESN0176I: A new session context will be created for application key default_host/ibmmq/rest
2024-08-12 14:02:46 2024-08-12T08:32:46.286Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:02:46 2024-08-12T08:32:46.299Z SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at /mnt/mqm/data/web/installations/Installation1/servers/mqweb/logs/state/plugin-cfg.xml.
2024-08-12 14:02:46 2024-08-12T08:32:46.509Z MQWB2019I: MQ Console level: p940-L240605.1
2024-08-12 14:02:46 2024-08-12T08:32:46.508Z CWWKS9122I:  For URL /* in application com.ibm.mq.console, the following HTTP methods are uncovered, and accessible: POST PUT DELETE HEAD OPTIONS TRACE 
2024-08-12 14:02:46 2024-08-12T08:32:46.566Z MQWB0400E: The MFT REST API is not enabled.
2024-08-12 14:02:46 2024-08-12T08:32:46.567Z MQWB0023I: MQ REST API level: p940-L240605.1
2024-08-12 14:02:46 2024-08-12T08:32:46.579Z MQWB0318I: The mqweb server is configured for 'LOCAL' queue manager REST messaging.
2024-08-12 14:02:46 2024-08-12T08:32:46.581Z CWWKZ0001I: Application com.ibm.mq.rest started in 1.634 seconds.
2024-08-12 14:02:46 2024-08-12T08:32:46.629Z CWWKZ0001I: Application com.ibm.mq.console started in 1.677 seconds.
2024-08-12 14:02:46 2024-08-12T08:32:46.761Z Started web server
2024-08-12 14:02:47 2024-08-12T08:32:46.643Z CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.
2024-08-12 14:02:47 2024-08-12T08:32:46.701Z CWWKF0015I: The server has the following interim fixes active in the runtime: PH59781,PH59146,PH60149,PH60146. For a full listing of installed fixes run: productInfo version --ifixes
2024-08-12 14:02:47 2024-08-12T08:32:46.702Z CWWKF0012I: The server installed the following features: [appSecurity-2.0, applicationMonitorMQ-1.0, basicAuthenticationMQ-1.0, concurrent-1.0, distributedMap-1.0, jaxrs-2.1, jaxrsClient-2.1, jndi-1.0, jsonp-1.1, servlet-4.0, ssl-1.0, websocket-1.0].
2024-08-12 14:02:47 2024-08-12T08:32:46.702Z CWWKF0008I: Feature update completed in 6.124 seconds.
2024-08-12 14:02:47 2024-08-12T08:32:46.703Z CWWKF0011I: The mqweb server is ready to run a smarter planet. The mqweb server started in 8.360 seconds.
2024-08-12 14:03:34 2024-08-12T08:33:34.510Z CPU architecture: amd64
2024-08-12 14:03:34 2024-08-12T08:33:34.510Z Linux kernel version: 5.15.153.1-microsoft-standard-WSL2
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z Base image: Red Hat Enterprise Linux 9.4 (Plow)
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z Running as user ID 1001 with primary group 0, and supplementary groups 0
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z seccomp enforcing mode: filtering
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z Process security attributes: none
2024-08-12 14:03:34 2024-08-12T08:33:34.511Z No volume detected. Persistent messages may be lost
2024-08-12 14:03:38 2024-08-12T08:33:38.059Z Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords
2024-08-12 14:03:38 2024-08-12T08:33:38.077Z Using queue manager name: QM1
2024-08-12 14:03:38 2024-08-12T08:33:38.090Z Created directory structure under /var/mqm
2024-08-12 14:03:38 2024-08-12T08:33:38.090Z Image created: 2024-06-07T05:34:54+00:00
2024-08-12 14:03:38 2024-08-12T08:33:38.090Z Image tag: ibm-mqadvanced-server-dev:9.4.0.0-r1.20240607053012.53e6ab1-amd64
2024-08-12 14:03:38 2024-08-12T08:33:38.110Z MQ version: 9.4.0.0
2024-08-12 14:03:38 2024-08-12T08:33:38.110Z MQ level: p940-L240605.1
2024-08-12 14:03:38 2024-08-12T08:33:38.110Z MQ license: Developer
2024-08-12 14:03:42 2024-08-12T08:33:42.525Z FIPS cryptography is not enabled.
2024-08-12 14:03:42 2024-08-12T08:33:42.525Z Creating queue manager QM1
2024-08-12 14:03:42 2024-08-12T08:33:42.526Z Starting web server
2024-08-12 14:03:42 2024-08-12T08:33:42.535Z Detected existing queue manager QM1
2024-08-12 14:03:42 2024-08-12T08:33:42.544Z Removing existing ServiceComponent configuration
2024-08-12 14:03:42 2024-08-12T08:33:42.545Z Starting queue manager
2024-08-12 14:03:43 2024-08-12T08:33:42.552Z AMQ6206I: Command strmqm was issued. [CommentInsert1(strmqm), CommentInsert2(strmqm -x QM1)]
2024-08-12 14:03:43 2024-08-12T08:33:42.552Z AMQ5782I: File system containing '/mnt/mqm/data/qmgrs/QM1' is 5.82% used, 971051MB free. [ArithInsert1(5.82), CommentInsert1(/mnt/mqm/data/qmgrs/QM1), CommentInsert2(1031018), CommentInsert3(971051)]
2024-08-12 14:03:43 2024-08-12T08:33:42.554Z AMQ5782I: File system containing '/mnt/mqm/data/log/QM1' is 5.82% used, 971051MB free. [ArithInsert1(5.82), CommentInsert1(/mnt/mqm/data/log/QM1), CommentInsert2(1031018), CommentInsert3(971051)]
2024-08-12 14:03:44 2024-08-12T08:33:43.931Z product = WebSphere Application Server 24.0.0.3 (wlp-1.0.87.cl240320240311-1901)\nwlp.install.dir = /opt/mqm/web/\nserver.config.dir = /mnt/mqm/data/web/installations/Installation1/servers/mqweb/\njava.home = /opt/mqm/java/jre64/jre\njava.version = 1.8.0_411\njava.runtime = Java(TM) SE Runtime Environment (8.0.8.25 - pxa6480sr8fp25-20240328_01(SR8 FP25))\nos = Linux (5.15.153.1-microsoft-standard-WSL2; amd64) (en_US)\nprocess = 1085@172.17.0.2\nClasspath = /opt/mqm/web/bin/tools/ws-server.jar:/opt/mqm/web/bin/tools/ws-javaagent.jar\nJava Library path = /opt/mqm/java/jre64/jre/lib/amd64/compressedrefs:/opt/mqm/java/jre64/jre/lib/amd64:/opt/mqm/java/lib64:/opt/mqm/lib64:/opt/mqm/lib:/usr/lib64:/usr/lib\n
2024-08-12 14:03:44 2024-08-12T08:33:43.993Z CWWKE0001I: The server mqweb has been launched.
2024-08-12 14:03:45 2024-08-12T08:33:45.306Z Initializing MQ Advanced for Developers custom authentication service
2024-08-12 14:03:45 2024-08-12T08:33:45.267Z AMQ5775I: Successfully applied automatic configuration INI definitions. [CommentInsert1(INI)]
2024-08-12 14:03:45 2024-08-12T08:33:45.313Z CWWKG0028A: Processing included configuration resource: /opt/mqm/web/mq/etc/mqweb.xml
2024-08-12 14:03:45 2024-08-12T08:33:45.353Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml
2024-08-12 14:03:45 2024-08-12T08:33:45.358Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/tls.xml
2024-08-12 14:03:45 2024-08-12T08:33:45.375Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebexternal.xml
2024-08-12 14:03:45 2024-08-12T08:33:45.376Z CWWKG0028A: Processing included configuration resource: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebuser.xml
2024-08-12 14:03:46 2024-08-12T08:33:46.025Z CWWKE0002I: The kernel started after 2.518 seconds
2024-08-12 14:03:46 2024-08-12T08:33:46.114Z CWWKF0007I: Feature update started.
2024-08-12 14:03:48 2024-08-12T08:33:47.788Z CWWKG0102I: Found conflicting settings for httpDispatcher configuration.\n  Property appOrContextRootMissingMessage has conflicting values:\n    Value <script>document.title="";document.getElementsByTagName("h1")[0].innerHTML="";document.location.href=document.location.href.indexOf("ibmmq/console") >= 0?"/ibmmq/console/login.html":"ibmmq/console/login.html";</script> is set in file:/opt/mqm/web/mq/etc/mqweb.xml.\n    Value <script>document.location.href="/ibmmq/console/";</script> is set in file:/mnt/mqm/data/web/installations/Installation1/servers/mqweb/mqwebcontainer.xml.\n  Property appOrContextRootMissingMessage will be set to <script>document.location.href="/ibmmq/console/";</script>.\n
2024-08-12 14:03:48 2024-08-12T08:33:48.561Z The IBMJCEPlusFIPS provider is configured for FIPS 140-2. Please note that the 140-2 configuration may be removed in the future.
2024-08-12 14:03:49 2024-08-12T08:33:49.013Z CWWKS0007I: The security service is starting...
2024-08-12 14:03:49 2024-08-12T08:33:49.569Z DYNA1001I: WebSphere Dynamic Cache instance named baseCache initialized successfully.
2024-08-12 14:03:49 2024-08-12T08:33:49.572Z DYNA1071I: The cache provider default is being used.
2024-08-12 14:03:49 2024-08-12T08:33:49.573Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:03:50 2024-08-12T08:33:49.702Z CWWKS1123I: The collective authentication plugin with class name NullCollectiveAuthenticationPlugin has been activated. 
2024-08-12 14:03:50 2024-08-12T08:33:50.016Z CWWKZ0018I: Starting application com.ibm.mq.console.
2024-08-12 14:03:50 2024-08-12T08:33:50.016Z CWWKZ0018I: Starting application com.ibm.mq.rest.
2024-08-12 14:03:50 2024-08-12T08:33:50.019Z CWWKS0008I: The security service is ready.
2024-08-12 14:03:50 2024-08-12T08:33:50.019Z CWWKZ0136I: The com.ibm.mq.rest application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.rest.ear location.
2024-08-12 14:03:50 2024-08-12T08:33:50.019Z CWWKZ0136I: The com.ibm.mq.console application is using the archive file at the /opt/mqm/web/mq/apps/com.ibm.mq.webconsole.ear location.
2024-08-12 14:03:50 2024-08-12T08:33:50.020Z CWWKS4105I: LTPA configuration is ready after 0.355 seconds.
2024-08-12 14:03:50 2024-08-12T08:33:50.025Z Successfully loaded default keystore: /mnt/mqm/data/web/installations/Installation1/servers/mqweb/resources/security/key.jks of type: JKS
2024-08-12 14:03:51 2024-08-12T08:33:50.580Z AMQ7229I: 292 log records accessed on queue manager 'QM1' during the log replay phase. [ArithInsert1(292), CommentInsert1(QM1)]
2024-08-12 14:03:51 2024-08-12T08:33:50.580Z AMQ7230I: Log replay for queue manager 'QM1' complete. [ArithInsert1(292), CommentInsert1(QM1)]
2024-08-12 14:03:51 2024-08-12T08:33:50.645Z AMQ7231I: 0 log records accessed on queue manager 'QM1' during the recovery phase. [CommentInsert1(QM1)]
2024-08-12 14:03:51 2024-08-12T08:33:50.645Z AMQ7232I: Transaction manager state recovered for queue manager 'QM1'. [CommentInsert1(QM1)]
2024-08-12 14:03:51 2024-08-12T08:33:50.877Z AMQ7233I: 0 out of 0 in-flight transactions resolved for queue manager 'QM1'. [CommentInsert1(QM1)]
2024-08-12 14:03:51 2024-08-12T08:33:51.123Z SESN8501I: The session manager did not find a persistent storage location; HttpSession objects will be stored in the local application server's memory.
2024-08-12 14:03:51 2024-08-12T08:33:51.131Z SRVE0169I: Loading Web Module: mqconsole.
2024-08-12 14:03:51 2024-08-12T08:33:51.131Z SRVE0169I: Loading Web Module: com.ibm.mq.rest.
2024-08-12 14:03:51 2024-08-12T08:33:51.133Z SRVE0250I: Web Module mqconsole has been bound to default_host.
2024-08-12 14:03:51 2024-08-12T08:33:51.133Z SRVE0250I: Web Module com.ibm.mq.rest has been bound to default_host.
2024-08-12 14:03:51 2024-08-12T08:33:51.134Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/
2024-08-12 14:03:51 2024-08-12T08:33:51.071Z AMQ5533E: The object 'SYSTEM.DEFAULT.AUTHINFO.IDPWOS' specified by the CONNAUTH parameter is invalid [CommentInsert1(SYSTEM.DEFAULT.AUTHINFO.IDPWOS)]
2024-08-12 14:03:51 2024-08-12T08:33:51.217Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/rest/
2024-08-12 14:03:51 2024-08-12T08:33:51.246Z SRVE0169I: Loading Web Module: com.ibm.mq.webconsoleinternal.
2024-08-12 14:03:51 2024-08-12T08:33:51.247Z SRVE0250I: Web Module com.ibm.mq.webconsoleinternal has been bound to default_host.
2024-08-12 14:03:51 2024-08-12T08:33:51.247Z CWWKT0016I: Web application available (default_host): https://d9940da4bae1:9443/ibmmq/console/internal/
2024-08-12 14:03:51 2024-08-12T08:33:51.300Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console
2024-08-12 14:03:51 2024-08-12T08:33:51.317Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:03:51 2024-08-12T08:33:51.357Z DYNA1056I: Dynamic Cache (object cache) initialized successfully.
2024-08-12 14:03:51 2024-08-12T08:33:51.404Z SESN0176I: A new session context will be created for application key default_host/ibmmq/console/internal
2024-08-12 14:03:51 2024-08-12T08:33:51.404Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:03:51 2024-08-12T08:33:51.405Z SESN0176I: A new session context will be created for application key default_host/ibmmq/rest
2024-08-12 14:03:51 2024-08-12T08:33:51.405Z SESN0172I: The session manager is using the Java default SecureRandom implementation for session ID generation.
2024-08-12 14:03:51 2024-08-12T08:33:51.501Z SRVE9103I: A configuration file for a web server plugin was automatically generated for this server at /mnt/mqm/data/web/installations/Installation1/servers/mqweb/logs/state/plugin-cfg.xml.
2024-08-12 14:03:51 2024-08-12T08:33:51.572Z MQWB2019I: MQ Console level: p940-L240605.1
2024-08-12 14:03:51 2024-08-12T08:33:51.572Z CWWKS9122I:  For URL /* in application com.ibm.mq.console, the following HTTP methods are uncovered, and accessible: POST PUT DELETE HEAD OPTIONS TRACE 
2024-08-12 14:03:51 2024-08-12T08:33:51.614Z MQWB0400E: The MFT REST API is not enabled.
2024-08-12 14:03:51 2024-08-12T08:33:51.615Z MQWB0023I: MQ REST API level: p940-L240605.1
2024-08-12 14:03:51 2024-08-12T08:33:51.622Z MQWB0318I: The mqweb server is configured for 'LOCAL' queue manager REST messaging.
2024-08-12 14:03:51 2024-08-12T08:33:51.623Z CWWKZ0001I: Application com.ibm.mq.rest started in 1.607 seconds.
2024-08-12 14:03:51 2024-08-12T08:33:51.665Z CWWKZ0001I: Application com.ibm.mq.console started in 1.648 seconds.
2024-08-12 14:03:51 2024-08-12T08:33:51.684Z CWWKO0219I: TCP Channel defaultHttpEndpoint-ssl has been started and is now listening for requests on host *  (IPv6) port 9443.
2024-08-12 14:03:51 2024-08-12T08:33:51.764Z Started web server
2024-08-12 14:03:52 2024-08-12T08:33:51.739Z CWWKF0015I: The server has the following interim fixes active in the runtime: PH59781,PH59146,PH60149,PH60146. For a full listing of installed fixes run: productInfo version --ifixes
2024-08-12 14:03:52 2024-08-12T08:33:51.741Z CWWKF0012I: The server installed the following features: [appSecurity-2.0, applicationMonitorMQ-1.0, basicAuthenticationMQ-1.0, concurrent-1.0, distributedMap-1.0, jaxrs-2.1, jaxrsClient-2.1, jndi-1.0, jsonp-1.1, servlet-4.0, ssl-1.0, websocket-1.0].
2024-08-12 14:03:52 2024-08-12T08:33:51.742Z CWWKF0008I: Feature update completed in 5.720 seconds.
2024-08-12 14:03:52 2024-08-12T08:33:51.742Z CWWKF0011I: The mqweb server is ready to run a smarter planet. The mqweb server started in 8.236 seconds.
2024-08-12 14:04:00 2024-08-12T08:33:59.990Z AMQ8048I: Default objects statistics : 11 created. 43 replaced. 0 failed. [ArithInsert1(11), ArithInsert2(43), CommentInsert1(0)]
2024-08-12 14:04:00 2024-08-12T08:34:00.201Z AMQ9509E: Program cannot open object 
2024-08-12 14:04:00 2024-08-12T08:34:00.202Z AMQ6184W: An internal IBM MQ error with probe 'RM220001' has occurred on queue manager QM1. [ArithInsert1(1256), CommentInsert1(QM1), CommentInsert2(/mnt/mqm/data/errors/AMQ1256.0.FDC), CommentInsert3(RM220001)]
2024-08-12 14:04:00 2024-08-12T08:34:00.101Z AMQ8003I: IBM MQ queue manager 'QM1' started using V9.4.0.0. [CommentInsert1(9.4.0.0), CommentInsert3(QM1)]
2024-08-12 14:04:00 2024-08-12T08:34:00.132Z AMQ9410I: Repository manager started.
2024-08-12 14:04:00 2024-08-12T08:34:00.259Z AMQ5024I: The command server has started. ProcessId(1262). [ArithInsert1(1262), CommentInsert1(SYSTEM.CMDSERVER.1)]
2024-08-12 14:04:00 2024-08-12T08:34:00.261Z AMQ5022I: The channel initiator has started. ProcessId(1263). [ArithInsert1(1263), CommentInsert1(SYSTEM.CHANNEL.INITQ)]
2024-08-12 14:04:00 2024-08-12T08:34:00.318Z AMQ8942I: Starting to process automatic MQSC configuration script.
2024-08-12 14:04:00 2024-08-12T08:34:00.319Z AMQ8024I: IBM MQ channel initiator started. [CommentInsert1(SYSTEM.CHANNEL.INITQ)]
2024-08-12 14:04:00 MQSeries: FFST record created in /mnt/mqm/data/errors/AMQ1256.0.FDC

2024-08-12 14:04:01 2024-08-12T08:34:00.602Z AMQ9509E: Program cannot open object SYSTEM.CLUSTER.COMMAND.QUEUE [ArithInsert1(2085), CommentInsert2(SYSTEM.CLUSTER.COMMAND.QUEUE), CommentInsert3(QM1)]
2024-08-12 14:04:01 2024-08-12T08:34:00.602Z AMQ9448E: Repository manager failed.  Retry in 10 minutes, queue manager will terminate in 7200 minutes [ArithInsert1(10), ArithInsert2(7200)]
2024-08-12 14:04:04 2024-08-12T08:34:03.821Z AMQ8940E: An automatic MQSC command was not successful. [ArithInsert1(2), ArithInsert2(2085), CommentInsert1(DEFINE CHANNEL('DEV.ADMIN.SVRCONN') CHLTYPE(SVRCONN) REPLACE), CommentInsert2(AMQ8147E: IBM MQ object SYSTEM.DEF.SVRCONN not found.)]
2024-08-12 14:04:04 2024-08-12T08:34:03.825Z AMQ8940E: An automatic MQSC command was not successful. [ArithInsert1(2), ArithInsert2(2085), CommentInsert1(DEFINE CHANNEL('DEV.APP.SVRCONN') CHLTYPE(SVRCONN) MCAUSER('app') REPLACE), CommentInsert2(AMQ8147E: IBM MQ object SYSTEM.DEF.SVRCONN not found.)]
MohanKopalle commented 1 month ago

I am able to create and test the connectivity separately following this guide: https://developer.ibm.com/learningpaths/ibm-mq-badge/write-run-first-mq-app but not with the https://developer.ibm.com/tutorials/mq-badge-mq-dev-challenge/

chughts commented 1 month ago

Looks like you are using the image - ibm-mqadvanced-server-dev:9.4.0.0-r1.20240607053012.53e6ab1-amd64

IE. You are not on an Apple M1 / M2 ARM64 machine. Is this correct?

What was the command you issued to build the image? What was the command you used to start it? Reason for asking is that I would expect you have used.

docker build . -t mqbadge:latest

In which case the image would be called mqbadge:latest

MohanKopalle commented 1 month ago

That's correct I have used above command and got the mqbadge:latest image built via docker running on Microsoft WSL2 (reference of 'Linux kernel version: 5.15.153.1-microsoft-standard-WSL2' from above logs I shared earlier).

Later, I ran this command to start the container:
docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -e LOG_FORMAT=json -e MQ_APP_PASSWORD=passw0rd -p 1414:1414 -p 9443:9443 --detach -ti --name mqebs mqbadge:latest

chughts commented 1 month ago

@shreeya1510 could you take a look and see if you can reproduce this error on a AMD64 Windows machine. It looks as though the queue manager is failing to start. You might need to clear our all existing images, to make sure that a base of ibm-mqadvanced-server-dev:9.4.0.0-r1 is being pulled using icr.io/ibm-messaging/mq:latest

@MohanKopalle Please provide more architecture and OS details for the windows machine that you are trying to build and run the images on.

MohanKopalle commented 1 month ago

@shreeya1510 could you take a look and see if you can reproduce this error on a AMD64 Windows machine. It looks as though the queue manager is failing to start. You might need to clear our all existing images, to make sure that a base of ibm-mqadvanced-server-dev:9.4.0.0-r1 is being pulled using icr.io/ibm-messaging/mq:latest

@MohanKopalle Please provide more architecture and OS details for the windows machine that you are trying to build and run the images on.

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22621 N/A Build 22621
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Total Physical Memory:     16,249 MB

Docker Desktop information

Client:
 Cloud integration: v1.0.35+desktop.13
 Version:           26.1.1
 API version:       1.45
 Go version:        go1.21.9
 Git commit:        4cf5afa
 Built:             Tue Apr 30 11:48:43 2024
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Desktop 4.30.0 (149282)
 Engine:
  Version:          26.1.1
  API version:      1.45 (minimum version 1.24)
  Go version:       go1.21.9
  Git commit:       ac2de55
  Built:            Tue Apr 30 11:48:28 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.31
  GitCommit:        e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version:          1.1.12
  GitCommit:        v1.1.12-0-g51d5e94
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
shreeya1510 commented 1 month ago

@MohanKopalle what command did you run after docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -e LOG_FORMAT=json -e MQ_APP_PASSWORD=passw0rd -p 1414:1414 -p 9443:9443 --detach -ti --name mqebs mqbadge:latest ?

MohanKopalle commented 1 month ago

@MohanKopalle what command did you run after docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -e LOG_FORMAT=json -e MQ_APP_PASSWORD=passw0rd -p 1414:1414 -p 9443:9443 --detach -ti --name mqebs mqbadge:latest ?

Hello @shreeya1510 , before I ran the docker build command only, I have commented out the ticket generator specific line from startApp.sh and then executed the docker run command. I just waited for the container to come up clean. Was just monitoring the logs during the MQ container launch before issuing the Java command to run the Ticket generator locally.

But the MQ container never came up clean as it kept stopping almost all the times around 20seconds of launch attempt.

Only on one such attempt randomly it sustained for more than 36seconds and then I ran the

 java -cp target/TicketGenerator-1.4.jar: com.ibm.mq.badge.Manager

It generated 6events as expected from the app and then MQ container got terminated.

shreeya1510 commented 1 month ago

Hi, can you try this instead java -cp target/TicketGenerator-1.4.jar com.ibm.mq.badge.Manager

So, after you run this command to start your container docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -e LOG_FORMAT=json -e MQ_APP_PASSWORD=passw0rd -p 1414:1414 -p 9443:9443 --detach -ti --name mqebs mqbadge:latest, try waiting for a bit then run the command above

shreeya1510 commented 1 month ago

@MohanKopalle have you got the latest version of the Dockerfile and StartApp.sh file? You can check this by making sure you have this line in the Dockerfile: RUN if [ "$platformArch" == "amd64" ]; then \ sed -i 's/\r$//' /data/startApp.sh; \ fi

MohanKopalle commented 1 month ago

Thankyou for the input @shreeya1510 , I tried the below again:

2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.670Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"CPU architecture: amd64","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.690Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Linux kernel version: 5.15.153.1-microsoft-standard-WSL2","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.699Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Base image: Red Hat Enterprise Linux 9.4 (Plow)","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Running as user ID 1001 with primary group 0, and supplementary groups 0","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"seccomp enforcing mode: filtering","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Process security attributes: none","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"No volume detected. Persistent messages may be lost","type":"mq_containerlog"} 2024-08-13 19:15:13 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:13.700Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Environment variable LOG_FORMAT is deprecated. Use MQ_LOGGING_CONSOLE_FORMAT instead.","type":"mq_containerlog"} 2024-08-13 19:15:23 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:23.569Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords","type":"mq_containerlog"} 2024-08-13 19:15:24 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:24.721Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Using queue manager name: QM1","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.804Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Created directory structure under /var/mqm","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.804Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Image created: 2024-07-18T15:30:43+00:00","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.804Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Image tag: ibm-mqadvanced-server-dev:9.4.0.0-r3.20240718152536.ff62130-amd64","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.840Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ version: 9.4.0.0","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.840Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ level: p940-L240605.1","type":"mq_containerlog"} 2024-08-13 19:15:28 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:28.840Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ license: Developer","type":"mq_containerlog"} 2024-08-13 19:15:35 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:35.584Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"FIPS cryptography is not enabled.","type":"mq_containerlog"} 2024-08-13 19:15:35 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:35.584Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Creating queue manager QM1","type":"mq_containerlog"} 2024-08-13 19:15:35 {"host":"ff5fce0d01b6","ibm_datetime":"2024-08-13T13:45:35.584Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Starting web server","type":"mq_containerlog"} 2024-08-13 19:15:39 {"type":"liberty_message","host":"ff5fce0d01b6","ibm_userDir":"\/mnt\/mqm\/data\/web\/installations\/Installation1\/","ibm_serverName":"mqweb","message":"product = WebSphere Application Server 24.0.0.3 (wlp-1.0.87.cl240320240311-1901)\nwlp.install.dir = \/opt\/mqm\/web\/\nserver.config.dir = \/mnt\/mqm\/data\/web\/installations\/Installation1\/servers\/mqweb\/\njava.home = \/opt\/mqm\/java\/jre64\/jre\njava.version = 1.8.0_411\njava.runtime = Java(TM) SE Runtime Environment (8.0.8.25 - pxa6480sr8fp25-20240328_01(SR8 FP25))\nos = Linux (5.15.153.1-microsoft-standard-WSL2; amd64) (en_US)\nprocess = 1047@172.17.0.2\nClasspath = \/opt\/mqm\/web\/bin\/tools\/ws-server.jar:\/opt\/mqm\/web\/bin\/tools\/ws-javaagent.jar\nJava Library path = \/opt\/mqm\/java\/jre64\/jre\/lib\/amd64\/compressedrefs:\/opt\/mqm\/java\/jre64\/jre\/lib\/amd64:\/opt\/mqm\/java\/lib64:\/opt\/mqm\/lib64:\/opt\/mqm\/lib:\/usr\/lib64:\/usr\/lib\n","ibm_datetime":"2024-08-13T13:45:38.874+0000","ibm_sequence":"1723556738917_0000000000001"} 2024-08-13 19:15:39 {"type":"liberty_message","host":"ff5fce0d01b6","ibm_userDir":"\/mnt\/mqm\/data\/web\/installations\/Installation1\/","ibm_serverName":"mqweb","message":"CWWKE0001I: The server mqweb has been launched.","ibm_threadId":"00000001","ibm_datetime":"2024-08-13T13:45:39.271+0000","ibm_messageId":"CWWKE0001I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"AUDIT","ibm_sequence":"1723556739271_0000000000001","ext_thread":"main"} 2024-08-13 19:15:50 [2024-08-13 13:45:49]-[Main ]: Logger initialised 2024-08-13 19:15:50 [2024-08-13 13:45:50]-[Main ]: ----- 2024-08-13 19:15:50 [2024-08-13 13:45:50]-[Main ]: Creating Events 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location 'Royal Albert Hall' at time '19:30' at date '2019-03-12' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '0' with name of 'European Summit' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: European Summit ID=0 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location '99 Columbia road' at time '21:30' at date '2020-09-19' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '1' with name of 'Glasto' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: Glasto ID=1 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location 'Hursley' at time '08:00' at date '2020-09-11' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '2' with name of 'IBM Think' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: IBM Think ID=2 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location 'KOKO' at time '14:30' at date '2020-07-01' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '3' with name of 'Beta Workshop' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: Beta Workshop ID=3 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location 'Trent Country Park' at time '10:00' at date '2020-07-27' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '4' with name of 'Share' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: Share ID=4 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Venue created at location 'The O2' at time '09:00' at date '2020-02-07' 2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Bookable event created with eventID '5' with name of 'MQTC'

$${\color{green}2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Event Created: MQTC ID=5 }$$\ $${\color{green}2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: New total of 6 events }$$\ $${\color{green}2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: ----- }$$\ $${\color{green}2024-08-13 19:15:51 [2024-08-13 13:45:51]-[Main ]: Creating connection factory }$$\ $${\color{green}2024-08-13 19:15:55 [2024-08-13 13:45:55]-[Main ]: Connection factory has been created }$$\ $${\color{green}2024-08-13 19:15:55 [2024-08-13 13:45:55]-[Main ]: Setting connection factory properties }$$\ $${\color{green}2024-08-13 19:15:55 [2024-08-13 13:45:55]-[Main ]: Connection factory properties have been set }$$\ $${\color{green}2024-08-13 19:15:55 [2024-08-13 13:45:55]-[Main ]: Creating connection session }$$\ $${\color{yellow}2024-08-13 19:15:56 [2024-08-13 13:45:56]-[Main ]: Couldn't create connection session}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.msg.client.jms.DetailedIllegalStateException.getUnchecked(DetailedIllegalStateException.java:274)}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.msg.client.jms.internal.JmsErrorUtils.convertJMSException(JmsErrorUtils.java:173)}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createContext(JmsConnectionFactoryImpl.java:577)}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.mq.badge.EnvSetter.connect(EnvSetter.java:120)}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.mq.badge.AdvertManager.connect(AdvertManager.java:83)}$$\ $${\color{yellow}2024-08-13 19:15:56 com.ibm.mq.badge.Manager.main(Manager.java:63)}$$\

I haven't run this command yet: java -cp target/TicketGenerator-1.4.jar com.ibm.mq.badge.Manager

chughts commented 1 month ago

I can't see any errors identifying errors starting up MQ. I think the ticket generator is starting before MQ is ready. How many CPU cores are being allocated to the WSL ?

Could you increase the sleep in startApp.sh.

OOB its

sleep 30

try

sleep 90
chughts commented 1 month ago

I noticed that you - mvn clean package the ticket generator outside of the image. Don't do that. Remove the ./target directory that gets generated. So it doesn't get copied into the image.

All of this is being done inside the docker image, and doesn't need to be done on the windows host.

MohanKopalle commented 1 month ago

Apologies @chughts, did a clean attempt again.

History of commands executed on my WSL2: image

Still the logs are coming up as below

2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.908Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"CPU architecture: amd64","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.928Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Linux kernel version: 5.15.153.1-microsoft-standard-WSL2","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.929Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Base image: Red Hat Enterprise Linux 9.4 (Plow)","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.929Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Running as user ID 1001 with primary group 0, and supplementary groups 0","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.929Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Capabilities (bounding set): chown,dac_override,fowner,fsetid,kill,setgid,setuid,setpcap,net_bind_service,net_raw,sys_chroot,mknod,audit_write,setfcap","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.929Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"seccomp enforcing mode: filtering","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.929Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Process security attributes: none","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.930Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"No volume detected. Persistent messages may be lost","type":"mq_containerlog"} 2024-08-13 20:57:48 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:48.930Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Environment variable LOG_FORMAT is deprecated. Use MQ_LOGGING_CONSOLE_FORMAT instead.","type":"mq_containerlog"} 2024-08-13 20:57:57 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:57.856Z","ibm_processId":"7","ibm_processName":"runmqdevserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords","type":"mq_containerlog"} 2024-08-13 20:57:58 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:27:58.701Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Using queue manager name: QM1","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.139Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Created directory structure under /var/mqm","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.139Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Image created: 2024-07-18T15:30:43+00:00","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.139Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Image tag: ibm-mqadvanced-server-dev:9.4.0.0-r3.20240718152536.ff62130-amd64","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.172Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ version: 9.4.0.0","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.173Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ level: p940-L240605.1","type":"mq_containerlog"} 2024-08-13 20:58:02 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:02.173Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"MQ license: Developer","type":"mq_containerlog"} 2024-08-13 20:58:07 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:07.525Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"FIPS cryptography is not enabled.","type":"mq_containerlog"} 2024-08-13 20:58:07 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:07.525Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Creating queue manager QM1","type":"mq_containerlog"} 2024-08-13 20:58:07 {"host":"eb5d0b408b12","ibm_datetime":"2024-08-13T15:28:07.525Z","ibm_processId":"7","ibm_processName":"runmqserver","ibm_serverName":"QM1","ibm_userName":"","loglevel":"INFO","message":"Starting web server","type":"mq_containerlog"} 2024-08-13 20:58:12 {"type":"liberty_message","host":"eb5d0b408b12","ibm_userDir":"\/mnt\/mqm\/data\/web\/installations\/Installation1\/","ibm_serverName":"mqweb","message":"product = WebSphere Application Server 24.0.0.3 (wlp-1.0.87.cl240320240311-1901)\nwlp.install.dir = \/opt\/mqm\/web\/\nserver.config.dir = \/mnt\/mqm\/data\/web\/installations\/Installation1\/servers\/mqweb\/\njava.home = \/opt\/mqm\/java\/jre64\/jre\njava.version = 1.8.0_411\njava.runtime = Java(TM) SE Runtime Environment (8.0.8.25 - pxa6480sr8fp25-20240328_01(SR8 FP25))\nos = Linux (5.15.153.1-microsoft-standard-WSL2; amd64) (en_US)\nprocess = 1047@172.17.0.2\nClasspath = \/opt\/mqm\/web\/bin\/tools\/ws-server.jar:\/opt\/mqm\/web\/bin\/tools\/ws-javaagent.jar\nJava Library path = \/opt\/mqm\/java\/jre64\/jre\/lib\/amd64\/compressedrefs:\/opt\/mqm\/java\/jre64\/jre\/lib\/amd64:\/opt\/mqm\/java\/lib64:\/opt\/mqm\/lib64:\/opt\/mqm\/lib:\/usr\/lib64:\/usr\/lib\n","ibm_datetime":"2024-08-13T15:28:11.422+0000","ibm_sequence":"1723562891474_0000000000001"} 2024-08-13 20:58:12 {"type":"liberty_message","host":"eb5d0b408b12","ibm_userDir":"\/mnt\/mqm\/data\/web\/installations\/Installation1\/","ibm_serverName":"mqweb","message":"CWWKE0001I: The server mqweb has been launched.","ibm_threadId":"00000001","ibm_datetime":"2024-08-13T15:28:11.876+0000","ibm_messageId":"CWWKE0001I","module":"com.ibm.ws.kernel.launch.internal.FrameworkManager","loglevel":"AUDIT","ibm_sequence":"1723562891876_0000000000001","ext_thread":"main"} 2024-08-13 20:58:27 [2024-08-13 15:28:26]-[Main ]: Logger initialised 2024-08-13 20:58:27 [2024-08-13 15:28:27]-[Main ]: ----- 2024-08-13 20:58:27 [2024-08-13 15:28:27]-[Main ]: Creating Events 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location 'Royal Albert Hall' at time '19:30' at date '2019-03-12' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '0' with name of 'European Summit' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: European Summit ID=0 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location '99 Columbia road' at time '21:30' at date '2020-09-19' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '1' with name of 'Glasto' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: Glasto ID=1 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location 'Hursley' at time '08:00' at date '2020-09-11' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '2' with name of 'IBM Think' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: IBM Think ID=2 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location 'KOKO' at time '14:30' at date '2020-07-01' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '3' with name of 'Beta Workshop' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: Beta Workshop ID=3 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location 'Trent Country Park' at time '10:00' at date '2020-07-27' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '4' with name of 'Share' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: Share ID=4 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Venue created at location 'The O2' at time '09:00' at date '2020-02-07' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Bookable event created with eventID '5' with name of 'MQTC' 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Event Created: MQTC ID=5 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: New total of 6 events 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: ----- 2024-08-13 20:58:28 [2024-08-13 15:28:28]-[Main ]: Creating connection factory 2024-08-13 20:58:34 [2024-08-13 15:28:34]-[Main ]: Connection factory has been created 2024-08-13 20:58:34 [2024-08-13 15:28:34]-[Main ]: Setting connection factory properties 2024-08-13 20:58:34 [2024-08-13 15:28:34]-[Main ]: Connection factory properties have been set 2024-08-13 20:58:34 [2024-08-13 15:28:34]-[Main ]: Creating connection session $${\color{yellow}2024-08-13 20:58:37 [2024-08-13 15:28:37]-[Main ]: Couldn't create connection session}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.msg.client.jms.DetailedIllegalStateException.getUnchecked(DetailedIllegalStateException.java:274)}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.msg.client.jms.internal.JmsErrorUtils.convertJMSException(JmsErrorUtils.java:173)}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createContext(JmsConnectionFactoryImpl.java:577)}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.mq.badge.EnvSetter.connect(EnvSetter.java:120)}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.mq.badge.AdvertManager.connect(AdvertManager.java:83)}$$\ $${\color{yellow}2024-08-13 20:58:37 com.ibm.mq.badge.Manager.main(Manager.java:63) }$$\

MohanKopalle commented 1 month ago

Also, I tried the steps by excluding mvn clean package step before building the docker image as the same is being done inside the container as per Dockerfile. Still the same errors seen.

image

MohanKopalle commented 1 month ago

@chughts / @shreeya1510

Apologies for the chase with comments but I wanted to let you know trying the recommendation of "sleep 90" in startApp.sh has given me some new information this time, seems to be a problem with MQSC command that stops the active listener and then tries to define the QM objects along with new listener on the same port 1414 where the listener 'SYSTEM.LISTENER.TCP.1' was active earlier.

2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: Venue created at location 'The O2' at time '09:00' at date '2020-02-07' 2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: Bookable event created with eventID '5' with name of 'MQTC' 2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: Event Created: MQTC ID=5 2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: New total of 6 events 2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: ----- 2024-08-14 11:19:16 [2024-08-14 05:49:16]-[Main ]: Creating connection factory 2024-08-14 11:19:22 {"ibm_messageId":"AMQ8940E","ibm_arithInsert1":1,"ibm_arithInsert2":3234,"ibm_commentInsert1":"STOP LISTENER('SYSTEM.LISTENER.TCP.1')","ibm_commentInsert2":"AMQ8731W: Listener not active.","ibm_datetime":"2024-08-14T05:49:22.249Z","ibm_serverName":"QM1","type":"mq_log","host":"6659d0aa30a7","loglevel":"ERROR","module":"amquopra.c:2447","ibm_sequence":"1723614562_249991042","ibm_qmgrId":"QM1_2024-08-14_05.48.09","ibm_processId":"1354","ibm_threadId":"28","ibm_version":"9.4.0.0","ibm_processName":"amqzmuc0","ibm_userName":"mqm","ibm_installationName":"Installation1","ibm_installationDir":"/opt/mqm","message":"AMQ8940E: An automatic MQSC command was not successful."}} 2024-08-14 11:19:23 [2024-08-14 05:49:23]-[Main ]: Connection factory has been created 2024-08-14 11:19:23 [2024-08-14 05:49:23]-[Main ]: Setting connection factory properties 2024-08-14 11:19:23 [2024-08-14 05:49:23]-[Main ]: Connection factory properties have been set 2024-08-14 11:19:23 [2024-08-14 05:49:23]-[Main ]: Creating connection session 2024-08-14 11:19:28 [2024-08-14 05:49:28]-[Main ]: Couldn't create connection session 2024-08-14 11:19:28 com.ibm.msg.client.jms.DetailedIllegalStateException.getUnchecked(DetailedIllegalStateException.java:274) 2024-08-14 11:19:28 com.ibm.msg.client.jms.internal.JmsErrorUtils.convertJMSException(JmsErrorUtils.java:173) 2024-08-14 11:19:28 com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createContext(JmsConnectionFactoryImpl.java:577) 2024-08-14 11:19:28 com.ibm.mq.badge.EnvSetter.connect(EnvSetter.java:120) 2024-08-14 11:19:28 com.ibm.mq.badge.AdvertManager.connect(AdvertManager.java:83) 2024-08-14 11:19:28 com.ibm.mq.badge.Manager.main(Manager.java:63)

2024-08-14 11:19:22 {"ibm_messageId":"AMQ8940E","ibm_arithInsert1":1,"ibm_arithInsert2":3234,"ibm_commentInsert1":"STOP LISTENER('SYSTEM.LISTENER.TCP.1')","ibm_commentInsert2":"AMQ8731W: Listener not active.","ibm_datetime":"2024-08-14T05:49:22.249Z","ibm_serverName":"QM1","type":"mq_log","host":"6659d0aa30a7","loglevel":"ERROR","module":"amquopra.c:2447","ibm_sequence":"1723614562_249991042","ibm_qmgrId":"QM1_2024-08-14_05.48.09","ibm_processId":"1354","ibm_threadId":"28","ibm_version":"9.4.0.0","ibm_processName":"amqzmuc0","ibm_userName":"mqm","ibm_installationName":"Installation1","ibm_installationDir":"/opt/mqm","message":"AMQ8940E: An automatic MQSC command was not successful."}}

chughts commented 1 month ago

One of the for windows change was to convert from windows line endings to linux line endings for the .sh file. I am wondering if the same is needed for 20-config.mqsc.

@MohanKopalle Could you please remove all images and rebuild to make sure the recent changes to the docker file are active.

@shreeya1510 Are you able to reproduce this on your windows machine?

shreeya1510 commented 1 month ago

@MohanKopalle could you try starting your container again with this command instead docker run -e LICENSE=accept -e MQ_QMGR_NAME=QM1 -e LOG_FORMAT=json -e MQ_APP_PASSWORD=passw0rd -p 1414:1414 -p 9443:9443 --name mqebs mqbadge:latest and check if the adverts show up in the logs.

MohanKopalle commented 1 month ago

@chughts - thankyou for the suggestion on below, I have performed the same using dos2unix utility against this file and then ran the container. I worked like charm.

One of the for windows change was to convert from windows line endings to linux line endings for the .sh file. I am wondering if the same is needed for 20-config.mqsc.

This yielded me the expected behavior

[2024-08-14 17:04:43]-[Cashier]: JMS session connection initialised successfully
[2024-08-14 17:04:43]-[Cashier]: Connection for cashier has been created
[2024-08-14 17:04:43]-[Cashier]: Starting to listen for ticket requests
{"loglevel":"INFO", "ibm_datetime":"2024-08-14T17:04:43.523Z", "ibm_processId":"1307", "host":"c3ee7cb91c07", "module":"src/simpleauth.c:97", "message":"Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords"}
{"loglevel":"INFO", "ibm_datetime":"2024-08-14T17:04:43.532Z", "ibm_processId":"1307", "host":"c3ee7cb91c07", "module":"src/simpleauth.c:97", "message":"Environment variable MQ_APP_PASSWORD is deprecated, use secrets to set the passwords"}
[2024-08-14 17:04:44]-[Main   ]: -----
[2024-08-14 17:04:44]-[Main   ]: Publishing advert...
[2024-08-14 17:04:44]-[Main   ]: Advert for 'European Summit' has been published
[2024-08-14 17:04:44]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:04:44]-[Main   ]: -----
[2024-08-14 17:05:14]-[Main   ]: -----
[2024-08-14 17:05:14]-[Main   ]: Publishing advert...
[2024-08-14 17:05:14]-[Main   ]: Advert for 'Glasto' has been published
[2024-08-14 17:05:14]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:05:14]-[Main   ]: -----
[2024-08-14 17:05:44]-[Main   ]: -----
[2024-08-14 17:05:44]-[Main   ]: Publishing advert...
[2024-08-14 17:05:44]-[Main   ]: Advert for 'IBM Think' has been published
[2024-08-14 17:05:44]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:05:44]-[Main   ]: -----
[2024-08-14 17:06:14]-[Main   ]: -----
[2024-08-14 17:06:14]-[Main   ]: Publishing advert...
[2024-08-14 17:06:14]-[Main   ]: Advert for 'Beta Workshop' has been published
[2024-08-14 17:06:14]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:06:14]-[Main   ]: -----
[2024-08-14 17:06:44]-[Main   ]: -----
[2024-08-14 17:06:44]-[Main   ]: Publishing advert...
[2024-08-14 17:06:44]-[Main   ]: Advert for 'Share' has been published
[2024-08-14 17:06:44]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:06:44]-[Main   ]: -----
[2024-08-14 17:07:14]-[Main   ]: -----
[2024-08-14 17:07:14]-[Main   ]: Publishing advert...
[2024-08-14 17:07:14]-[Main   ]: Advert for 'MQTC' has been published
[2024-08-14 17:07:14]-[Main   ]: Waiting for 30 seconds before publishing next advert
[2024-08-14 17:07:14]-[Main   ]: -----
[2024-08-14 17:07:44]-[Main   ]: Closing connections and stopping threads
[2024-08-14 17:07:44]-[Main   ]: Close flag set for cashier to signal for the connections to close
[2024-08-14 17:07:53]-[Cashier]: Stopped listening to responses
[2024-08-14 17:07:53]-[Main   ]: Connections for cashier have closed
[2024-08-14 17:07:53]-[Main   ]: Attempting to close all open connections for EnvSetter
[2024-08-14 17:07:53]-[Main   ]: Closed all connections

@shreeya1510 - I don't see any specific difference in the docker run command you've provided vs what I've been running.

MohanKopalle commented 1 month ago

Thankyou very much for the guidance @chughts and @shreeya1510 -

This issue can be marked as closed. Will raise new one if any issues arise