天天看點

Subversion 錯誤資訊一覽表 《轉》

Subversion 錯誤資訊一覽表 http://www.iteye.com/topic/742761

注意:

1.不同的用戶端(指令行,TortoiseSVN, AnkhSVN, Subclipse等)的出錯資訊可能稍有不同。

2.下面表格中的出錯資訊以 http://svn.moon.ossxp.com/svn/test 版本庫做示例,僅供參考。

編号

出錯資訊

問題剖析

解決方案

1.

svn: Server sent unexpected return value (500 Internal Server Error) in response to OPTIONS request for 'http://svn.moon.ossxp.com/svn/test'

錯誤的使用者名

檢查登入的使用者名是否輸入錯誤

svn: 伺服器發送了意外的傳回值(500 Internal Server Error),在響應 “OPTIONS” 的請求 “http://svn.moon.ossxp.com/svn/test” 中

2.

svn: OPTIONS of 'http://svn.moon.ossxp.com/svn/test': authorization failed: Could not authenticate to server: rejected Basic challenge (http://svn.moon.ossxp.com)

錯誤的密碼

用正确的使用者名/密碼登入

svn: 方法 OPTIONS 失敗于 “http://svn.moon.ossxp.com/svn/test”: 認證失敗: Could not authenticate to server: rejected Basic challenge (http://svn.moon.ossxp.com)

3.

svn: Server sent unexpected return value (403 Forbidden) in response to OPTIONS request for 'http://svn.moon.ossxp.com/svn/test'

使用者無權限

聯系管理者,為使用者配置設定權限

svn: 伺服器發送了意外的傳回值(403 Forbidden),在響應 “OPTIONS” 的請求 “http://svn.moon.ossxp.com/svn/test” 中

4.

svn: OPTIONS of 'http://www.moon.ossxp.com/svn/test': 200 OK (http://www.moon.ossxp.com)

伺服器位址錯誤,是普通Web頁面,不支援SVN的 WebDAV 協定

确認輸入正确的 SVN 服務位址。可以在浏覽器中輸入該位址進行确認

svn: 方法 OPTIONS 失敗于 “http://www.moon.ossxp.com/svn/test”: 200 OK (http://www.moon.ossxp.com)

5.

The version of your subversion (client) is below 1.5.0, upgrade to 1.5.0 or above. SVN below 1.5.0 can not handle mergeinfo properly. It can mess up our automated merge tracking!

是由于用戶端的軟體版本低于1.5.0造成的。伺服器端對用戶端軟體版本進行了限制,以免對合并跟蹤破壞。

更新本地的Subversion用戶端軟體到1.5.0或以上版本。

6.

svn: This client is too old to work with working copy '.'. You need to get a newer Subversion client, or to downgrade this working copy. See http://subversion.tigris.org/faq.html#working-copy-format-change for details.

安裝了多個版本的SVN用戶端(TSVN,Subclipse,...),且各個用戶端的版本不一緻。高版本的SVN用戶端會自動更新本地工作目錄中的 .svn 目錄下的檔案格式,導緻舊版本的SVN用戶端不能繼續通路該本地工作目錄

将本機安裝的所有的SVN用戶端都更新到同一個大版本,以避免本地工作目錄的格式不一緻

svn: 此用戶端對于工作副本 “.” 太舊。你需要取得更新的 Subversion 用戶端,或者降級工作副本。 參見 http://subversion.tigris.org/faq.html#working-copy-format-change 以獲得更詳細的資訊。

7.

svn: Working copy 'trunk/src' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

異常操作導緻目錄沒有解鎖。

一個簡單的重制方法:在 .svn 目錄下建立空的名為 lock的檔案

使用指令行 "svn cleanup" 或者類似的“清理”動作删除鎖定

svn: 工作副本“trunk/src”已經鎖定 svn: 運作“svn cleanup”删除鎖定 (輸入“svn help cleanup”得到用法)

8.

日志中沒有作者資訊: ------------------------------------ r9 | (沒有作者資訊) | … ossxp.com anonymous commit test

匿名送出導緻沒有作者資訊

檢查版本庫權限控制,禁止匿名送出

9.

正在發送 ... 傳輸檔案資料.svn: 送出失敗(細節如下): svn: Commit blocked by pre-commit hook (exit code 1) with output: 送出說明至少應包含 4 個字元, 或者太簡單了。

這是由于使用者送出的送出說明(commit log),太過簡單了。在送出時需要輸入有意義的 commit log。

寫有意義的送出說明,或者請求管理者更改版本庫插件

10.

增加 Logger.c 傳輸檔案資料.svn: 送出失敗(細節如下): svn: Commit blocked by pre-commit hook (exit code 1) with output: Wide character in print at /opt/svn/svnroot/myrepos/hooks/scripts/check-case-insensitive.pl line 259. 發現檔案名大小寫沖突: trunk/src/Logger.c 已經存在于 logger.c

管理者設定了對新增檔案是否重名(隻有大小寫不同)的檔案進行檢查。檔案名隻有大小寫不同,在Windows上進行檢出會造成麻煩

不要添加重名(僅大小寫不同)檔案

增加 src/檔案aBc.txt 傳輸檔案資料.svn: 送出失敗(細節如下): svn: Commit blocked by pre-commit hook (exit code 1) with output: Clash: '/trunk/src/檔案aBc.txt' '/trunk/src/檔案abc.txt'

11.

svn: While preparing '/home/jiangxin/tmp/svn.test/trunk/src/README.txt' for commit svn: Inconsistent line ending style

送出的檔案已經設定了 svn:eol-style 屬性,但是該文本内的換行符有DOS的換行符CRLF,也有Unix換行符LF,不一緻!

統一該文本檔案内的換行符。Linux 下可以用dos2unix, unix2dos, sed等指令。Windows下可用UltraEdit 進行轉換。

svn: 當為送出操作準備“/home/jiangxin/tmp/svn.test/trunk/src/README.txt”時 svn: 不一緻的行結束樣式

12.

svn: Failed to add file 'Makefile': an unversioned file of the same name already exists

執行更新(svn up)時報錯。因為其他人新增一個檔案到伺服器,而本地卻存在一個同名檔案(未版本控制)

先将本地重名檔案改名,再執行"svn up",之後再比較、合并檔案。或者執行 "svn up --force"

svn: 增加檔案 'Makefile' 失敗: 同名未版本控制的檔案已存在

13.

Adding src/Makefile svn: Commit failed (details follow): svn: File '/svn/test/trunk/src/Makefile' already exists

添加新檔案,送出時報錯。因為其他人已經先于我增加了該檔案。

先執行更新操作("svn up"),再根據提示進行操作:合并/送出...

增加 src/Makefile svn: 送出失敗(細節如下): svn: 檔案“/svn/test/trunk/src/Makefile”已存在

14.

$ svn up Conflict discovered in 'Makefile'. Select: (p) postpone, (df) diff-full, (e) edit, (mc) mine-conflict, (tc) theirs-conflict, (s) show all options: p C Makefile Updated to revision 5. Summary of conflicts: Text conflicts: 1

多人同時編輯同一個檔案時,可能會遇到沖突。别人先于我送出,則當我送出時要先更新。更新可能遇到不能自動解決的沖突

使用工具進行沖突解決

$ svn up 在 “Makefile” 中發現沖突。 選擇: (p) 推遲,(df) 顯示全部差異,(e) 編輯, (mc) 我的版本, (tc) 他人的版本, (s) 顯示全部選項: p C Makefile 更新到版本 5。 沖突概要: 正文沖突:1

15.

svn: Commit failed (details follow): svn: File 'Makefile' is out of date svn: File not found: transaction '6-d', path '/trunk/src/Makefile'

送出的檔案已被他人删除

先執行更新操作("svn up"),再根據提示解決該樹沖突:删除檔案或繼續添加...

svn: 送出失敗(細節如下): svn: 檔案 “Makefile” 已經過時 svn: File not found: transaction '6-c', path '/trunk/src/Makefile'

16.

svn: Commit failed (details follow): svn: File or directory '/trunk/XXX' is out of date; try updating svn: resource out of date; try updating

基于舊版本修改是不允許的

先更新("svn update"),再送出

svn: 送出失敗(細節如下): svn: 檔案或目錄 “/trunk/XXX” 已經過時;請先更新 svn: resource out of date; try updating

17.

svn: DAV request failed; it's possible that the repository's pre-revprop-change hook either failed or is non-existent svn: At least one property change failed; repository is unchanged svn: Error setting property 'log': Repository has not been enabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook

修改送出說明等操作屬于高風險操作,因為該操作沒有被版本控制,屬于不可恢複的操作。預設禁止。

請聯系管理者,啟用該版本的相關鈎子,允許修改“版本屬性”。參見 管理者鈎子設定

svn: DAV 請求失敗;可能是版本庫的 pre-revprop-change 鈎子執行失敗或者不存在 svn: 至少有一個屬性變更失敗;版本庫未改變 svn: 設定屬性 “log” 出錯: Repository has not been enabled to accept revision propchanges; ask the administrator to create a pre-revprop-change hook

18.

傳輸檔案資料.svn: 送出失敗(細節如下): svn: Commit blocked by pre-commit hook (exit code 1) with output: ==================== trunk/src/File.c : 屬性 svn:mime-type 或者 svn:eol-style 沒有設定 ==================== 管理者已經啟用換行符屬性檢查。每一個新添加的檔案必須 指定換行符。如果 svn:mime-type 屬性為文本檔案,則 必須設定 svn:eol-style 屬性。 對于二進制檔案,執行如下指令: svn propset svn:mime-type application/octet-stream path/of/file 對于文本檔案,可以執行如下指令: svn propset svn:mime-type text/plain path/of/file svn propset svn:eol-style native path/of/file 為了避免每次添加檔案手動設定,可以啟用自動屬性設定 ...

管理者啟用了檢查新檔案換行符的擴充

為新增檔案設定正确的 svn:mime-type 和/或 svn:eol-style 屬性