59 | | With some misconfiguration, it can happen you don't receive an email about the deployment failure. Or you may want to troubleshoot the problem. To achieve this, it is possible to execute manually the deployment script, `build-tag.pl`. For this you must proceed as follow (assuming your SCDB local cache is in `/root/quattor/svncache` and `build-tag.pl` is installed in `/root/quattor/scripts`) : |
| 59 | ''Note : `ant deploy` reports a success even if something wrong happens during deployment : `ant` success or failure only reflects Subversion commit (implied by `ant deploy`) status.'' |
| 60 | |
| 61 | To troubleshoot server side configuration problems, it is necessary to execute manually the server scripts. This is a two-step processes : |
| 62 | 1. Check successful execution of deployment script, `build-tag.pl`. |
| 63 | 1. Check successful execution of SVN hook script. |
| 64 | |
| 65 | === Troubleshooting deployment script === |
| 66 | |
| 67 | ''To troubleshoot deployment script, `build-tag.pl`, you must log on the Quattor server as the user configured to run deployment script (generally `root`).'' |
| 68 | |
| 69 | The step-by-step procedure to troubleshoot deployment script (examples below assume it is in default location `/root/quattor/scripts`) is : |
| 70 | 1. Look in `/etc/build-tag.conf', if it exists, location of SVN cache on the Quattor server. Default location (`/root/quattor/svncache`) is assumed in following examples : replace with the appropriate location for your site. |
| 71 | 1. Check the last tag checked out with the following command : |
62 | | ---> look at the current tag name, everything after /tags in the URL |
63 | | svn update /root/quattor/svncache |
64 | | ---> Check it completes successfully |
| 74 | ---> look at the current tag name, everything after /tags/ in the URL (without leading /) |
| 75 | }}} |
| 76 | 1. Check the tag has been successfully checked out. If the following command updates anything, it means the previous attempt to switch to this tag was unsuccessful. If the command fails again, retry it until it is successful. Failure to switch to a tag is generally related to a Subversion server problem, not to Quattor itself : check Subversion server logs for more information. |
| 77 | {{{ |
| 78 | svn update |
| 79 | }}} |
| 80 | 1. Try to redeploy the same tag with the following command : |
| 81 | {{{ |