Changes between Version 3 and Version 4 of Doc/SCDB/Server


Ignore:
Timestamp:
May 19, 2007, 4:21:25 PM (18 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/SCDB/Server

    v3 v4  
    5555== Troubleshooting Server-side Scripts ==
    5656
    57 If there is a problem with deployment after entering command `ant deploy`, people listed in `NOTIFY` variable of hook scripts should receive an email describing the problem. Note than `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.
     57If there is a problem during deployment, after entering command `ant deploy`, people listed in `NOTIFY` variable of hook script should receive an email describing the problem. With some misconfiguration, it can happen you don't receive an email about the deployment failure.
    5858
    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
     61To 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
     69The 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 :
    6072{{{
    6173svn info /root/quattor/svncache
    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{{{
     78svn update
     79}}}
     80 1. Try to redeploy the same tag with the following command :
     81{{{
    6582/root/quattor/scripts/build-tag.pl TAG-VALUE
    6683}}}
     84
     85If SVN cache is empty (not recognized as a valid SVN working copy by `svn info`), you need to identify last tag in `tags` branch of Quattor SCDB repository using `svn ls`.
     86
     87=== Troubleshooting SVN hook script ===
     88
     89Most of the deployment problems, after initial configuration, are related to deployment script. As the hook script mainly launches the deployment script, it is important complete previous check before troubleshooting SVN hook script.