g_sh Posted January 24 Share Posted January 24 Hi, I am having an issue trying to start the tomcat in jasper server: When i run this command locally in the virtual machine it works: sudo /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat sudo /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat And the status is running. But when i create a playbook with two tasks, I have the attached output (Tomcat started) and when i run the command: "sudo /opt/jasperreports-server-7.9.0/ctlscript.sh status tomcat" the status is not running. - name: Stop tomcat shell: /opt/jasperreports-server-7.9.0/ctlscript.sh stop tomcat become_method: sudo - name: Start tomcat shell: /opt/jasperreports-server-7.9.0/ctlscript.sh start tomcat become_method: sudo So it starts but it is not running, when i run the playbook. Any idea? Thanks, Link to comment Share on other sites More sharing options...
Jivan Phadtare Posted January 29 Share Posted January 29 The attached screenshot shows Tomcat has started but don't see any error in screenshot. could you please check first tomcat is up and running. You can use below URL to check Tomcat is up or not. http://<host>:<port>/ If tomcat you get error, then good idea to check the Tomcat error log in catalina.out file. <Tomcat_Installed_Path>\logs\ Log file : catalina*.out Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now