Help Center/ CodeArts Deploy/ FAQs/ Command Execution for Deployment Actions/ Running Shell Scripts/ Deployment Is Successful But Does Not Achieve the Expected Result
Updated on 2023-11-28 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:
- Add the shell command ps -ef|grep tomcat in the action Run Shell Commands and check whether the Tomcat process is started successfully.
- If no Tomcat process is found, check the startup failure log in the Tomcat log directory and analyze the cause.
- The following uses the script for starting Tomcat as an example:
Parent topic: Running Shell Scripts
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.