Tuesday, January 5, 2010

Clear SVN Lock error

When we have a script in place to run the SVN update commands and they give a svn lock error, then the issue could be mainly because of the directory permissions.

When some one ssh to the server box and edit something over there directly, the file permission get changed from apache to root. So when we execute the SVN update command through the script, the svn shows a lock error.

If the lock error specifies a folder then we can ssh to the server and then browse to the corresponding directory and then change the file user to apache again.

For eg cd /var/www/html

chown -R apache:apache app/

This should work.

No comments:

Post a Comment