Open rumanaHaque opened 10 months ago
As @TrevCraw mentioned - As for "stop" not working in the previous scenario - I think the problem there is that the container had started, but dev mode was not fully started yet - so we're in that weird in between spot where we can run into problems like that.
The server hadn't started completely, so it wasn't able to stop it. But when I reran the command, and it showed this message
INFO] [AUDIT ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 87.229 seconds.
[INFO] CWWKM2015I: Match number: 1 is [10/30/23, 22:34:37:313 UTC] 00000029 com.ibm.ws.kernel.feature.internal.FeatureManager A CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 87.229 seconds..
[INFO] [AUDIT ] CWWKZ0022W: Application AcmeWebEjbEar has not started in 30.019 seconds.
[INFO] ************************************************************************
[INFO] * Liberty is running in dev mode.
[INFO] * Automatic generation of features: [ Off ]
[INFO] * h - see the help menu for available actions, type 'h' and press Enter.
[INFO] * q - stop the server and quit dev mode, press Ctrl-C or type 'q' and press Enter.
[INFO] *
[INFO] * Liberty container port information:
[INFO] * Internal container HTTP port [ 9080 ] is mapped to container host port [ 9080 ]
[INFO] * Internal container HTTPS port [ 9443 ] is mapped to container host port [ 9443 ]
[INFO] * Liberty debug port mapped to container host port: [ 7777 ]
[INFO] *
[INFO] * Container network information:
[INFO] * Container name: [ liberty-dev ]
[INFO] * IP address [ 10.88.0.2 ] on container network [ podman ]
[INFO] ************************************************************************
even though the app wasn't installed, I was able to stop the server using the "Stop" command from the dashboard.
[INFO] Stopping container...
[INFO] [AUDIT ] CWWKE0085I: The server defaultServer is stopping because the JVM is exiting.
[INFO] [AUDIT ] CWWKE1100I: Waiting for up to 30 seconds for the server to quiesce.
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/jwt/
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/openapi/ui/
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/health/
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/metrics/
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/openapi/
[INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://db298c12d8a1:9080/ibm/api/
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for acme-ee10 0.0.1-SNAPSHOT:
[INFO]
[INFO] acme-ee10 .......................................... SUCCESS [ 0.564 s]
[INFO] AcmeCommon ......................................... SUCCESS [ 0.318 s]
[INFO] AcmeAnnuityCommon .................................. SUCCESS [ 4.144 s]
[INFO] AcmeAnnuityJAXRSCommon ............................. SUCCESS [ 1.023 s]
[INFO] AcmeAnnuityEJB3 .................................... SUCCESS [ 0.201 s]
[INFO] AcmeAnnuityEJB3JAXWS ............................... SUCCESS [ 0.037 s]
[INFO] AcmeAnnuityEJB3JAXWS_CDI ........................... SUCCESS [ 0.037 s]
[INFO] AcmeAnnuityEJB3MDB ................................. SUCCESS [ 0.096 s]
[INFO] AcmeAnnuityJAXRSWSes_jaxrs11_m1 .................... SUCCESS [ 0.156 s]
[INFO] AcmeAnnuityJAXRSWSes_jaxrs11_m2 .................... SUCCESS [ 0.021 s]
[INFO] AcmeAnnuityJAXRSWSes_jaxrs20 ....................... SUCCESS [ 0.020 s]
[INFO] AcmeAnnuityPojoWSes ................................ SUCCESS [ 0.034 s]
[INFO] AcmeAnnuityWeb ..................................... SUCCESS [ 0.057 s]
[INFO] AcmeWebEjbEar ...................................... SUCCESS [11:37 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11:44 min
[INFO] Finished at: 2023-10-30T17:39:59-05:00
[INFO] ------------------------------------------------------------------------
Workaround added to https://github.com/OpenLiberty/liberty-tools-vscode/wiki/Known-Problems-and-Limitations.
Need to think about how we can address this issue - may really be something that dev mode needs to handle.
However, we may need to investigate devc
a bit further to see if there is an issue stopping while things are working "normally".
As part of this TER - https://github.ibm.com/websphere/system-test/issues/922
When I start the application in a container - the server seems to start, but it is waiting for the app to start -
Once in this mode - I cannot stop the server. Using Stop for the dashboard only shows "exit" as shown above, and doesn't stop the server.