2011-03-15 37 views
5

我有一些與apache集成的存儲庫。在導入小項目時,它工作正常。但是,當我導入大約2GB的大型項目時,出現以下錯誤。我用烏龜svn。svn導入錯誤:無法將svndiff寫入臨時文件:磁盤上沒有足夠的空間

Could not write svndiff to temp file: There is not enough space on the disk.

感謝。

+1

您的tmp目錄所在的磁盤上是否有足夠的空間? – zerkms

+0

我有一些60 GB的svn根即/ var/www/svn。其中只有半個GB現在被使用。 – itsraja

+0

那臨時目錄怎麼樣? – zerkms

回答

5

更新:最後的OP itsraja發現$ TMPDIR環境變量並沒有(在上述意見提出了一些建議之後,從zerkms

Sorry, I was searching in SVN's.
I haven't set anything as temporary directory, it seems. When echoed $TMPDIR , it is empty.
I believe it uses /tmp directory and it has enough space.
I set $TMPDIR , and the issue fixed, thanks


初步答案設置:

根據this post(對於Windows客戶端,但該想法對於Unix客戶端仍然有效):

Using Subversion (via Tortoise, incidentally), I recently got this error:

svn: 

Can't set position pointer in file 'C:\WINDOWS\TEMP\report.tmp': 

There is not enough space on the disk. 

This means you have run out of space on your server.
Sounds straight forward, but it took a while fooling around on the client

這可能是你的情況類似的問題(如果你有本地剩餘空間)。


或者它可能是在tmp目錄的ACL(訪問權限)問題,因爲described here

Subversion uses an APR function (which we donated to that project) for finding a temporary directory.
It does so by trying to find a writable directory using the following search path:

 $TMP 
     $TEMP 
     $TMPDIR 
     "C:\TEMP" (windows only) 
     "SYS:\TMP" (netware only) 
     "/tmp" 
     "/var/tmp" 
     "/usr/tmp" 
     P_tmpdir (POSIX define) 
     `pwd` 

Do you have one of those first three environment variables set to a non-writable location?

0

我們跑過這個問題,這個問題是不是與空間在顛覆服務器上 - 而不是客戶端的桌面上。如果您有使用工作站端軟件的人,請檢查它是否有空間。

0

今天在多個客戶端上觀察到同樣的錯誤。原來svn服務器空間不足。顯然,tmp文件錯誤源自服務器。解決方案:釋放服務器上的磁盤空間並重試。

0

這也可能是由過大的提交引起的。嘗試提交較少的文件。

相關問題