[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

problem using SVN to manage live /etc on server

From: <o.nash_at_cs.ucc.ie>
Date: 2006-07-09 10:57:23 CEST

Hi all,
I created a repository of the /etc dir on a server, this server is also
running the Subversion repositories with Apache2 as the method of access.

I used the method in FAQ to do an in-place working copy of /etc
This all seems to work.

Then I setup a root cronjob to do a weekly commit this is where I have a
problem.

I discovered that much of the repository was becoming locked and that was
preventing the commit proceeding, so I used a very simple
script svn-cron.sh:-
cd /etc
/usr/bin/svn cleanup .
/usr/bin/svn update
/usr/bin/svn commit -m"weekly cron commit .."
exit 0

This fails and logs:-
Authentication realm: <http://hostname:8080> Subversion Repository
CSSG Group
Password for 'root': Authentication realm: <http://hostname:8080>
Subversion Repository CSSG Group
Username: /system/bin/hostname/svn-cron.sh: line 11: 14311 Aborted
/usr/bin/svn update
svn: Working copy '/etc' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
details)

Line 11 is the update line.

However when the above commands are run manually they work fine.
and no prompt for password is required.

Thanks for reading this far.... any advice much appreciated ..
Oliver

--
Oliver Nash
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jul 9 10:58:45 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.