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

Aaron Dulles-Coelho dulles at artifex.org
Wed May 2 09:51:32 EDT 2007


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


More information about the Pushmi-users mailing list