簡體   English   中英

Linux SVN 服務器的問題

[英]Problems with Linux SVN server

我有一個 SVN 服務器在我的 Redmine 服務器中運行。 我已經運行以下以確保我是最新的:

apt-get update
apt-get upgrade

我能夠連接、更新、提交等,但是我在從 TortoiseSVN 或 linux svn 客戶端從我的 svn 服務器獲取歷史記錄/日志時遇到問題。

我的 SVN 服務器(在 Debian 上運行)版本是:

svnserv, version 1.6.17 (r1128011)
   compiled Aug 10 2015, 05:02:48

Copyright (C) 2000-2009 CollabNet.

我的 TortoiseSVN 客戶端(在 Windows 10 上運行)是:

TortoiseSVN 1.9.1, Build 26747 - 64 Bit , 2015/08/31 20:16:00
Subversion 1.9.1, -release
apr 1.5.2
apr-util 1.5.4
serf 1.3.8
OpenSSL 1.0.2d 9 Jul 2015
zlib 1.2.8
SQLite 3.8.11.1

我的 Linux svn 客戶端(在 Ubuntu 上運行)是:

svn, version 1.8.8 (r1568071)
   compiled Aug 20 2015, 12:51:30 on x86_64-pc-linux-gnu

TortoiseSVN 給了我這個錯誤:

There has been a problem contacting the server.
Do you want to see the cached data instead?

Please understand that the cached data may be outdated,
incomplete or even misleading due to the incomplete history data.

Linux 給了我這個錯誤:

svn: E220001: Item is not readable

這是我的 svn 日志(我沒有看到任何錯誤):

7397 2015-09-13T19:26:46.156052Z 192.168.1.1 - thompco open 2 cap=(edit-pipeline svndiff1 absent-entries depth mergeinfo log-revprops) /garageMonitor/scripts/update.sh SVN/1.8.8%20(x86_64-pc-linux-gnu) -
7397 2015-09-13T19:26:46.174812Z 192.168.1.1 - thompco reparent /garageMonitor/scripts/update.sh
7397 2015-09-13T19:26:46.187860Z 192.168.1.1 - thompco log (/garageMonitor/scripts/update.sh) r61:0 revprops=(svn:author svn:date svn:log)
7398 2015-09-13T19:27:12.196359Z 192.168.1.1 - thompco open 2 cap=(edit-pipeline svndiff1 absent-entries depth mergeinfo log-revprops) /garageMonitor/scripts/update.sh SVN/1.9.1%20(x64-microsoft-windows) TortoiseSVN-1.9.1.26747
7398 2015-09-13T19:27:12.224528Z 192.168.1.1 - thompco get-latest-rev
7399 2015-09-13T19:27:12.236982Z 192.168.1.1 - thompco open 2 cap=(edit-pipeline svndiff1 absent-entries depth mergeinfo log-revprops) /garageMonitor/scripts/update.sh SVN/1.9.1%20(x64-microsoft-windows) TortoiseSVN-1.9.1.26747
7399 2015-09-13T19:27:12.240851Z 192.168.1.1 - thompco reparent /garageMonitor/scripts/update.sh
7399 2015-09-13T19:27:12.243852Z 192.168.1.1 - thompco log (/garageMonitor/scripts/update.sh) r61:0 limit=100 discover-changed-paths revprops=(svn:log svn:date svn:author)
7400 2015-09-13T19:27:13.498247Z 192.168.1.1 - thompco open 2 cap=(edit-pipeline svndiff1 absent-entries depth mergeinfo log-revprops) /garageMonitor/scripts/update.sh SVN/1.9.1%20(x64-microsoft-windows) TortoiseSVN-1.9.1.26747
7400 2015-09-13T19:27:13.505382Z 192.168.1.1 - thompco reparent /garageMonitor/scripts/update.sh
7400 2015-09-13T19:27:13.518023Z 192.168.1.1 jordan thompco stat /garageMonitor/scripts/update.sh@61

任何建議將是最受歡迎的!

發現問題...在/srv/repos/svn/[repo name]/conf/authz文件中我發現了這個:

[/] my_username = rw

它應該是: [/] my_username = r

我的顛覆設置遇到了同樣的問題,經過大量搜索,我得到了如下解決方案

解決方案1

您需要在 authz 文件中添加以下幾行。

[/]
* = r

解決方案2

確保您的 svnserve.conf 中有以下幾行

anon-access = none
auth-access = write

我希望它能解決你的問題,祝你好運!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM