Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN post-commit update error (Can't create temporary file from template / permission denied)

My post-commit hook is:

/usr/bin/svn update /var/www/html/mysite/ --username myusername --password mypassword --no-auth-cache >> /var/www/html/mysite/foo.txt 2>&1

After performing a commit, my post-commit hook outputs to foo.txt the following:

Updating '/var/www/html/mysite': svn: E000013: Can't create temporary file from template '/var/www/html/mysite/.svn/tmp/svn-XXXXXX': Permission denied

Any ideas?? Must be something related to permissions. It used to work, but something happened.

like image 936
user2644136 Avatar asked Aug 02 '13 00:08

user2644136


2 Answers

check if you have the permission of /var/www/html/mysite/

like image 172
sigmalha Avatar answered Nov 18 '22 00:11

sigmalha


When this happens to me (svn 1.7.14), I usually just have to create the tmp directory and retry the command:

mkdir /var/www/html/mysite/.svn/tmp
like image 36
goldy Avatar answered Nov 18 '22 00:11

goldy