You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Yuri <yu...@freebsd.org> on 2017/11/15 16:42:49 UTC

Subversion DB gotinto invalid state, and can't be fixed by 'svn cleanup'

What I did:

I had the directory sysutils/fd added locally (svn add). Then I 
accidentally removed it (rm -rf sysutils/fd) and updated from the 
central repository because somebody else committed it. After this, it 
just keeps printing errors no matter what I do. cleanup and revert don't 
help.

$ svn update fd
Updating 'fd':
A    fd
A    fd/Makefile
A    fd/distinfo
A    fd/pkg-descr
svn: E155009: Failed to run the WC DB work queue associated with 
'/usr/ports/sysutils/fd', work item 1003073 (file-install 
sysutils/fd/Makefile 1 0 1 1)
svn: E155017: Can't install '/usr/ports/sysutils/fd/Makefile' from 
pristine store, because no checksum is recorded for this file


$ svn revert -R fd
svn: E155037: Previous operation has not finished; run 'cleanup' if it 
was interrupted


$ svn revert -R fd
svn: E155037: Previous operation has not finished; run 'cleanup' if it 
was interrupted


$ svn cleanup
svn: E155009: Failed to run the WC DB work queue associated with 
'/usr/ports/sysutils', work item 1003073 (file-install 
sysutils/fd/Makefile 1 0 1 1)
svn: E155017: Can't install '/usr/ports/sysutils/fd/Makefile' from 
pristine store, because no checksum is recorded for this file


Version 1.9.7 on FreeBSD.


Yuri



Re: Subversion DB gotinto invalid state, and can't be fixed by 'svn cleanup'

Posted by Yuri <yu...@freebsd.org>.
On 11/16/17 06:28, Daniel Shahaf wrote:
> Yuri wrote on Wed, 15 Nov 2017 08:42 -0800:
>> I had the directory sysutils/fd added locally (svn add). Then I
>> accidentally removed it (rm -rf sysutils/fd) and updated from the
>> central repository because somebody else committed it. After this, it
>> just keeps printing errors no matter what I do. cleanup and revert don't
>> help.
> Reproduced in trunk:

The solution I found is manual deletion from SQLite3 table, which should 
never be the case. 'svn cleanup' should do it.

Yuri



Re: Subversion DB gotinto invalid state, and can't be fixed by 'svn cleanup'

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Yuri wrote on Wed, 15 Nov 2017 08:42 -0800:
> I had the directory sysutils/fd added locally (svn add). Then I 
> accidentally removed it (rm -rf sysutils/fd) and updated from the 
> central repository because somebody else committed it. After this, it 
> just keeps printing errors no matter what I do. cleanup and revert don't 
> help.

Reproduced in trunk:

% svnadmin create r
% svn co file://$PWD/r wc
Checked out revision 0.
% mkdir wc/A
% touch wc/A/mu
% svn add wc/A 
% svnmucc -U file://$PWD/r -m r1 mkdir A put /dev/null A/mu 
% rm -rf wc/A 
% svn up wc 
Updating 'wc':
A    wc/A
A    wc/A/mu
subversion/svn/update-cmd.c:176,
subversion/libsvn_client/update.c:782,
subversion/libsvn_client/update.c:668,
subversion/libsvn_client/update.c:508,
subversion/libsvn_wc/adm_crawler.c:859,
subversion/libsvn_repos/reporter.c:1573,
subversion/libsvn_repos/reporter.c:1483,
subversion/libsvn_repos/reporter.c:1475,
subversion/libsvn_repos/reporter.c:1413,
subversion/libsvn_repos/reporter.c:1350,
subversion/libsvn_repos/reporter.c:1061,
subversion/libsvn_wc/update_editor.c:2813,
subversion/libsvn_wc/workqueue.c:1552: (apr_err=SVN_ERR_WC_BAD_ADM_LOG)
svn: E155009: Failed to run the WC DB work queue associated with '/tmp/tmp.YqemzT8MEI/wc/A', work item 1 (file-install A/mu 1 0 1 1)
subversion/libsvn_wc/workqueue.c:1443,
subversion/libsvn_wc/workqueue.c:512: (apr_err=SVN_ERR_WC_CORRUPT_TEXT_BASE)
svn: E155017: Can't install '/tmp/tmp.YqemzT8MEI/wc/A/mu' from pristine store, because no checksum is recorded for this file
zsh: exit 1