【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案

简介: 【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案

一、问题描述

前提条件,使用的版本控制工具是 SVN。

今天需要更新接口文档,所以就使用svn客户端(俗称小乌龟)update了一下,结果了如下错误:

Error : Previous operation has not finished; run ‘cleanup’ if it was interrupted.

Error : Please execute the ‘Cleanup’ command.

二、报错原因

本地的SVN客户端中有一个嵌入式 wc.db(里面大约有10多个表)SQLite,来保存SVN中管理的文件类型,项目结构树,用户操作进度等。当SVN客户端用户代码提交操作非正常的终止,导致sqlite中某个表中用来记录用户对项目A的操作(增删改等)的数据来不及更改,由于我们后续的所有针对项目的操作,都优先从该表中检查项目A是否有未完成的操作,如果存在未完成操作就会提示 “Previous operation has not finished”。

三、解决方案

3.1 执行 Cleanup 命令

根据报错信息提示,需要执行 Cleanup 命令,于是就按照提示去执行 Cleanup 命令,

但是又报错了,需要构选 “Break write locks” 命令。

于是根据提示信息把 “Break write locks” 打上勾,再次执行 cleanup 命令

结果神奇般的好了,成功了。Cleanup has successfully processed the following paths: …

至此,对于我来说这个问题已经解决了,但是我是执行了很多次 Cleanup 命令之后,然后电脑重启又执行了好几次 Cleanup 命令,最终得以解决。

如果对于屏幕前的你来说还没有解决,请继续往下看其他解决方案…

3.2 删除WORK_QUEUE表中数据

在使用了svn的项目中,在项目根目录会有一个.svn文件夹,这个是隐藏文件夹, 需要开启显示隐藏文件功能才能看到此文件夹。

.SVN文件夹中有个 wc.db 文件,该文件是sqlite的文件型数据库,使用相关工具即可打开,例如 Navicat 等。

打开数据库后,可以看到表 WORK_QUEUE,删除此表中的数据即可。

上述操作完成后,然后在执行 svn 的 cleanup 操作。

3.3 重新Checkout整个工程

将**.svn文件删除,重新checkout工程下来。在这里可以保留当前已有的项目代码,说svncheckout**过程中检测到已有文件存在时不会再重新下载,下载速度会比较快一些。

但是这样感觉还是不太好,万一checkout的文件出现问题,倒不如全部删除项目,完完全全的checkout一份下来。

本文完结!


相关文章
|
10月前
|
数据库管理
SVN 执行cleanup报错:Cleanup failed to process the following paths : 解决方法
引用:https://www.cnblogs.com/pinpin/p/11395438.html 在SVN更新时提示文件被锁住了,要求执行 clean up操作,执行clean up时又报clean up failed。造成的原因是在某次更新后,点击了cancel按钮,操作没有完成所以会锁住。解决方法如下:
473 0
【异常】svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
svn: E200009: Commit failed (details follow)/both sides of the move must be committed together的解决办法
530 0
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
323 0
Error:svn:E155037:Previous operation has not finished; run ‘cleanup‘ if it was interrupted(完美解决)
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
231 0
svn报错:“Previous operation has not finished; run ‘cleanup‘ if it was interrupted“ 的解决办法
|
数据可视化 数据库管理
SVN更新Cleanup提示database is locked
之前使用svn更新代码的时候遇到的问题
597 0
SVN更新Cleanup提示database is locked
|
数据库 数据库管理 开发工具
SVN:Previous operation has not finished; run 'cleanup' if it was interrupted
异常处理汇总-开发工具  http://www.cnblogs.com/dunitian/p/4522988.html cleanup failed to process the following paths:xxx Previous operation has not finished; run 'cleanup' if it was interrupted 解决方法有两个,一个是用sqlite清除下数据库wc.db的work_queue,这种网上说的比较多。
1228 0
|
2月前
|
存储 网络协议 Ubuntu
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
Linux环境下的SVN服务器搭建并结合内网穿透实现远程连接
105 0
|
2月前
|
Ubuntu 安全 网络安全
百度搜索:蓝易云【Ubuntu系统SVN服务器搭建教程】
现在,你已经成功在Ubuntu系统上搭建了SVN服务器。其他用户可以通过SVN客户端连接到你的SVN服务器,进行代码版本管理和协作开发。注意,为了安全起见,建议配置SSL加密以保护数据传输。
52 1
|
2月前
|
Apache 项目管理 数据安全/隐私保护
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
【cpolar】TortoiseSVN如何安装并实现公网提交文件到本地SVN服务器
66 0
|
10月前
|
IDE Linux 开发工具
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决
从旧服务器迁移svn到另一台新服务器中(linux系统)|遇到诸多坑,已解决