| 198 | | The hook script, `post-commit`, is provided as part of SCDB, in the `src/hooks` directory. It must be installed on your Subversion server, in the `hook` directory of the repository, and given executable permission for Apache user. |
| | 198 | The hook script, `post-commit`, is provided as part of SCDB, in the `src/hooks` directory. It must be installed on your Subversion server, in the `hook` directory of the repository, and given executable permission for Apache user. In addition, this script must be edited and variables at the beginning of the script must be checked against local configuration. In particular, `NOTIFY` variable must be defined to a valid email address where to report errors during `post-commit` script. |
| | 263 | |
| | 264 | == Troubleshooting Initial Installation == |
| | 265 | |
| | 266 | === Deployment doesn't work === |
| | 267 | |
| | 268 | If the profiles can be compiled successfully but noting happens when using `ant deploy`, it is necessary to check the hook script configuration and connexion between the Subversion server and the Quattor server. Normally, an error during `post-commit` hook script results in a mail sent to the address contained in hook script NOTIFY variable (be sure to have it edited to a valid address on your site). |
| | 269 | |
| | 270 | In case there is no error reported by `ant` and no mail sent with the error, main things to check are : |
| | 271 | |
| | 272 | * Check that Apache user has executable rights on hook script `post-commit`. |
| | 273 | * Check NOTIFY variable in hook script : should be a valid email address where to report errors. |
| | 274 | * Login as Apache user on the subversion server and check that you can successfully ssh into the Quattor server as root without password. If necessary, fixed ssh keys configuration. |
| | 275 | * Try to execute the command triggered by hook script via ssh. For this you need to indentify the last tag for templates. For example : |
| | 276 | {{{ |
| | 277 | svn ls http://svn.example.org/Quattor/templates/tags |
| | 278 | ssh -l root quattor_server /root/quattor/scripts/build-tag.pl template_tag |
| | 279 | }}} |