Help Center/ CodeArts Deploy/ FAQs/ Custom Application Actions/ Running Shell Scripts/ Deployment Is Successful But Does Not Achieve the Expected Result
Updated on 2023-05-26 GMT+08:00

Deployment Is Successful But Does Not Achieve the Expected Result

Symptoms

The action deployment is successful, but it does not achieve the expected result.

Cause Analysis

  • The script is incorrectly compiled.
  • The script contains the operation of starting a process, but is run in common execution mode.

Solution

Perform the following operations based on the failure causes:

  • Check the script, and run the script on the local host first. After confirming that the script is correct, perform the deployment again.
  • If the script contains the operation of starting a service or process, select Background for Running Mode.
  • If the expected result is not achieved after the preceding operations are performed, for example, the deployment is successful, but the service is not started, perform the following steps:
    • The following uses the script for starting Tomcat as an example:
      1. Add the shell command ps -ef|grep tomcat in the action Run Shell Commands and check whether the Tomcat process is started successfully.
      2. If no Tomcat process is found, check the startup failure log in the Tomcat log directory and analyze the cause.