{"id":536,"date":"2006-10-04T02:43:38","date_gmt":"2006-10-04T07:43:38","guid":{"rendered":"http:\/\/blogs.law.harvard.edu\/hoanga\/2006\/10\/04\/fixing-svk-oh-no-no-more-exceptions-ad"},"modified":"2006-10-04T02:43:38","modified_gmt":"2006-10-04T07:43:38","slug":"fixing-svk-oh-no-no-more-exceptions-add_directory-failed","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/hoanga\/2006\/10\/04\/fixing-svk-oh-no-no-more-exceptions-add_directory-failed\/","title":{"rendered":"Fixing SVK &#8216;Oh no, no more exceptions! add_directory() failed&#8217;"},"content":{"rendered":"<p><a name='a661'><\/a><\/p>\n<h4>The Problem<\/h4>\n<p><em><\/p>\n<p>$ svk mirror  http:\/\/svn.somewhere.org\/project \/\/mirror\/project<\/p>\n<p>Committed revision 1.<\/p>\n<p>$ svk sync \/\/mirror\/project<\/p>\n<p>Syncing http:\/\/svn.somewhere.org\/project<\/p>\n<p>Retrieving log information from 1 to 34<\/p>\n<p>Oh no, no more exceptions!  add_directory() failed. at \/usr\/local\/share\/perl5\/SVN\/Mirror\/Ra.pm line 1044.<\/p>\n<p><\/em><\/p>\n<p>If you&#8217;re getting the above problem happening when trying to run SVK to<\/p>\n<p>mirror a repository.  Congratulations!  You hit a bug.  After searching<\/p>\n<p>around on Google the closest thing I found to explaining the problem is <\/p>\n<p><a href=\"http:\/\/bugs.donarmstrong.com\/cgi-bin\/bugreport.cgi?bug=302640\">this<\/p>\n<p>bug<\/a>.<\/p>\n<h4>The cause<\/h4>\n<p>I&#8217;m not sure what the reason but in general the problem seems<\/p>\n<p>to be isolated to the SVN::Mirror perl module.  Perhaps if you upgrade<\/p>\n<p>SVK and all its dependencies via your package manager of choice and SVN::Mirror<\/p>\n<p>is updated to the right version I think you can get away from the problem.<\/p>\n<p><h4>A Fix<\/h4>\n<p>Upgrade SVN::Mirror (somehow).  Since I installed SVK by hand it was possible<\/p>\n<p>to upgrade using cpan.  Here&#8217;s what I did:<\/p>\n<p><\/p>\n<p><em><\/p>\n<p>$ \/usr\/local\/bin\/cpan<\/p>\n<p>cpan&gt; install SVN::Mirror<\/p>\n<p>Running install for module SVN::Mirror<\/p>\n<p>Running make for C\/CL\/CLKAO\/SVN-Mirror-0.71.tar.gz<\/p>\n<p>&#8230;<\/p>\n<p>&#8230;<\/p>\n<p><\/em><\/p>\n<p><\/p>\n<p>After that, I was able to use <em>svk sync<\/em> as expected.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Problem $ svk mirror http:\/\/svn.somewhere.org\/project \/\/mirror\/project Committed revision 1. $ svk sync \/\/mirror\/project Syncing http:\/\/svn.somewhere.org\/project Retrieving log information from 1 to 34 Oh no, no more exceptions! add_directory() failed. at \/usr\/local\/share\/perl5\/SVN\/Mirror\/Ra.pm line 1044. If you&#8217;re getting the above problem happening when trying to run SVK to mirror a repository. Congratulations! You hit a bug. [&hellip;]<\/p>\n","protected":false},"author":704,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1212],"tags":[],"class_list":["post-536","post","type-post","status-publish","format-standard","hentry","category-tagme"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/536","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/users\/704"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/comments?post=536"}],"version-history":[{"count":0,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/posts\/536\/revisions"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/media?parent=536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/categories?post=536"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/hoanga\/wp-json\/wp\/v2\/tags?post=536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}