[Pushmi-users] svm locking issue, potentially related revision number problem

Patrick Desnoyers Patrick.Desnoyers at gameloft.com
Wed May 2 10:03:40 EDT 2007


For the lock problem, this is normal behavior :-). I agree it is a bit
confusing, but it means it locked the repo before trying the sync, the
successfully unlocked it ( result 1). 

For the more important problem, I do not know exactly. Can you send the
versions of the required perl packages and describe your system a bit ?
(OS, etc...)

Patrick

-----Original Message-----
From: pushmi-users-bounces at bestpractical.com
[mailto:pushmi-users-bounces at bestpractical.com] On Behalf Of Aaron
Dulles-Coelho
Sent: May 2, 2007 9:52 AM
To: pushmi-users at bestpractical.com
Subject: [Pushmi-users] svm locking issue,potentially related revision
number problem

Hi,

I'm testing Pushmi to see if I can make a proper, writeable repository
mirror. Names of servers have been changed to protect the innocent ;)
First of all, I have issues with locks -- Pushmi can't seem to unlock.
It also has strange revision number problems when I try to commit to the
Pushmi mirror. Here's the set-up ...


master:/# svnadmin create /svn; chgrp users svn -R;chmod g+w svn/db -R
slave:/# cat /etc/pushmi.conf
authproxy_port: 11211
slave:/# ps ax|grep memcached
 7129 ?        S      0:00 /usr/bin/memcached -m 64 -p 11211 -u root
slave:/# pushmi mirror /svn svn+ssh://master/svn Mirror initialized.

At this point I get strange lock issues when I try to sync...

slave:/# pushmi sync --nowait /svn
locked by /svn:svm:lock:_
unlock result: 1

This surely isn't right! When I commit changes to the master and re-run
the sync, everything syncs up, but the unlock error continues

client:~$ svn co svn+ssh://master/svn master Checked out revision 0.
client:~$ cd master; echo a > a; svn add a; svn ci -m 'added file a'
A         a
Adding         a
Transmitting file data .
Committed revision 1.

slave:/# pushmi sync --nowait /svn
locked by /svn:svm:lock:_
Retrieving log information from 1 to 1
unlock result: 1
[/svn] sync revision 1 to 1


Now here's a potentially related issue. When I make a checkout of the
slave repository, make a change, and commit, I get a strange revision
numbering error...

client:~$ svn co svn+ssh://slave/svn slave
A    slave/a
Checked out revision 1.
client:~$ cd slave; echo b > b; svn add b; svn ci -m 'added file b'
A         b
Adding         b
Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:
No such revision -2

Here's the output from the pushmi log...
slave:/# cat /tmp/pushmi.log
[7458][250] pushmi.runhook - [/svn] committing from txn 1-1 by dulles
[7458][434] pushmi.runhook - Fail to replay:  at
/usr/local/share/perl/5.8.8/Pushmi/Command/Runhook.pm line 91
        eval {...} called at
/usr/local/share/perl/5.8.8/Pushmi/Command/Runhook.pm line 90
 
Pushmi::Command::Runhook::run('Pushmi::Command::Runhook=HASH(0x82c2168)'
,
'/svn') called at /usr/local/share/perl/5.8.8/App/CLI/Command.pm line
53
 
App::CLI::Command::run_command('Pushmi::Command::Runhook=HASH(0x82c2168)
',
'/svn') called at /usr/local/share/perl/5.8.8/App/CLI.pm line 79
        App::CLI::dispatch('Pushmi::Command') called at
/usr/local/bin/pushmi line 32 [7458][434] pushmi.runhook - [/svn] Failed
to replay txn to mirror: No such revision -2 [7458][436]
pushmi.svkmirror - locked by /svn:svm:lock:_ [7458][647] pushmi.runhook
- Unlock on failure [7458][648] pushmi.svkmirror - unlock result: 1


Any notions on how to tackle these problems?

--
Aaron
_______________________________________________
Pushmi-users mailing list
Pushmi-users at bestpractical.com
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/pushmi-users


More information about the Pushmi-users mailing list