Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

After Ubuntu upgrade from 11.04 to 12.04 all my SVN post-commit hooks doesn't work throwing errors:

post-commit hook failed (exit code 1) with output:
sudo: no tty present and no askpass program specified

My post-commit file looks like

sudo svn update /var/www/site/html >> /usr/local/svn/repos/site/logs/exampleup.log

and sudoers

www-data ALL=NOPASSWD:/usr/bin/svn

Any clue what can be wrong?


share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.