Solution for SVN error svn: E155009 and svn: E000002

[Problem] When checking out a SVN repository, the following SVN error can be shown.

svn: E155009: Failed to run the WC DB work queue associated with ‘/{pathToRepository}/{pathToFolder}’, work item XXXX (file-install {pathToFolder}/{filename} X X X X)
svn: E000002: Can’t open file ‘/{pathToRepository}/.svn/pristine/fd/{svnfile}.svn-base’: No such file or directory

[Solution] To solve this problem a program named sqlite3 is required. Follow the bellow steps.

  1. Make an empty file that svn could not make. The file that svn could not make is “/{pathToRepository}/.svn/pristine/fd/{svnfile}.svn-base”.
    An easy way to make this file is by using the below command.
    touch /{pathToRepository}/.svn/pristine/fd/{svnfile}.svn-base
  2. Remove the WC DB problem and cleanup svn. This can be done by using sqlite3. Use the below commands to do this.
    cd /{pathToRepository}
    sqlite3 .svn/wc.db “delete from work_queue”
    svn cleanup
  3. Checkout the svn repository.
Advertisements