Skip to content

Fixing SVK ‘Oh no, no more exceptions! add_directory() failed’

The Problem

$ svk mirror  http://svn.somewhere.org/project //mirror/project

Committed revision 1.

$ svk sync //mirror/project

Syncing this

bug.

The cause

I’m not sure what the reason but in general the problem seems

to be isolated to the SVN::Mirror perl module. Perhaps if you upgrade

SVK and all its dependencies via your package manager of choice and SVN::Mirror

is updated to the right version I think you can get away from the problem.

A Fix

Upgrade SVN::Mirror (somehow). Since I installed SVK by hand it was possible

to upgrade using cpan. Here’s what I did:

$ /usr/local/bin/cpan

cpan> install SVN::Mirror

Running install for module SVN::Mirror

Running make for C/CL/CLKAO/SVN-Mirror-0.71.tar.gz

After that, I was able to use svk sync as expected.

Be Sociable, Share!

{ 1 } Comments

  1. Nick Leverton | February 5, 2007 at 10:30 am | Permalink

    I confirm that upgrading from SVN::Mirror from 0.68 to 0.72 solves this error message. If you have an RPM-based system (RH, CentOS, maybe Fedora) try:

    Install packages rpm-build and perl-RPM-Specfile (using urpmi, apt-get, yum or your local package manager).

    Download http://search.cpan.org/CPAN/authors/id/C/CL/CLKAO/SVN-Mirror-0.72.tar.gz

    Run “cpanflute2 –buildall SVN-Mirror-0.72.tar.gz”
    and install the resulting .noarch.rpm file.