svn: E220000: Not authorized to open root of edit operation

简介: p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545}span.s1 {font: 12.

Compare diff 时提示:

svn: E220000: Not authorized to open root of edit operation

查看历史记录时输出:

svn: E220001: Unreadable path encountered; access denied

更新时的输出:

update /Users/aven/Documents/workspace/project -r HEAD --force

    At revision 51.

    svn: E220001: Item is not readable

    svn: E220001: Item is not readable

以上几种错误似乎都是由于一个小Bug引起的。

查看服务端版本

avenMac:conf aven$ svnserve --version
svnserve, version 1.9.5 (r1770682)
   compiled Mar  8 2017, 11:28:39 on x86_64-apple-darwin16.0.0

Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository back-end (FS) modules are available:

* fs_fs : Module for working with a plain file (FSFS) repository.
* fs_x : Module for working with an experimental (FSX) repository.

Cyrus SASL authentication is available.
查看客户端版本
avenMac:conf aven$ svn --version
svn, version 1.9.5 (r1770682)
   compiled Mar  8 2017, 11:28:39 on x86_64-apple-darwin16.0.0

Copyright (C) 2016 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.9 (compiled with 1.3.9)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /Users/aven/.subversion
* Mac OS X Keychain
操作系统 :mac os sierra 10.12,自带SVN服务器和客户端(有人说是安装了XCode的 command line tools 才有,由于我接手的电脑别人用过,也不敢确定);

后来是更新的问题解决了,提交更新都没有问题,但是查看历史记录和进行版本比较都不行。

网上查到的解决方案:

Subversion装了1.5.2版,乌龟SVN装的是1.5.1版本,可以通过乌龟正常访问到版本库,但当check out时却出现了"Not authorized to open root of edit operation"错误,上网搜索了一下,提供的解决版本如下:
anon-access 属性对目录权限的影响
你想将你的代码库开放给所有人访问,于是你就开放了匿名访问权限,在 svnserve.conf 文件中添加一行:"anon-access=read"。可是对于部分目录,你又不希望别人看到,于是针对那些特别目录,你在 authz.conf 里面进行配置,添加了授权访问的人,并添加了"* ="标记。你认为一切OK了,可是你却发现,那个特别目录却无法访问了,总是提示"Not authorized to open root of edit operation"或者"未授权打开根进行编辑操作"。你再三检查你配置的用户名与密码,确认一切正确,还是无法解决问题
原来,Subversion 有个小 bug ,当"anon-access=read"并且某个目录有被设置上"* ="标记,则会出现上述问题。这个 bug 在当前最新版本上(v1.4)还存在
但我并没有设"*="这种访问方式,用户名、密码、目录访问都正确设置了。当把 anon-access=read 改成 anon-access=none 后,发现,真的可以正常访问了
他这个是1.5版本的,而我这是1.9的,怀着怀疑的态度,试了一下,修改之后也不需要重新启动SVN服务器,结果问题就解决了。

这算是一个Bug吗?

如果算,为什么这个 bug 在 v1.4 之前就存在,

而现在都已经1.9了,还是没有去修复?

======================文档信息===========================

版权声明:非商用自由转载-保持署名-注明出处

署名(BY) :testcs_dn(微wx笑)

文章出处:[无知人生,记录点滴](http://blog.csdn.NET/testcs_dn)

==============欢迎关注我的个人微信订阅号(微wx笑)============

目录
相关文章
|
数据库 数据库管理
【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案
【异常解决】svn报“Previous operation has not finished; run ‘cleanup‘ if it was interrupted”的错误解决方案
723 0
|
8月前
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
解决 idea中SVN一直 looking for xxx working copy root 或者performing vcs refresh
275 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(完美解决)
451 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“ 的解决办法
264 0
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\wc.db数据库文件里面存储了svn的operation,表名是work_queue。
1076 0
SVN previous operation has not finished
svn提交遇到恶心的问题,可能是因为上次cleanup中断后,进入死循环了。 错误如下:   解决方法:清空svn的队列 1.下载sqlite3.exe    2.找到你项目的.svn文件,查看是否存在wc.db 3.将sqlite3.exe放到.svn的同级目录 4.启动cmd执行sqlite3 .svn/wc.db "select * from work_queue" 5.看到很多记录,下一步执行delete from work_queue   6.ok了,现在在到项目里面,执行cleanup,完全没问题了,图标状态也已经恢复了。
891 0
svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted
原文地址: http://blog.csdn.net/luojian520025/article/details/22196865 svn提交遇到恶心的问题,可能是因为上次cleanup中断后,进入死循环了。
1017 0