You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Stefan Podskubka <s....@hcs.at> on 2012/05/07 15:51:47 UTC

Error with file externals

Hello list,

I encountered an error which I don't know how to resolve.
It looks like a bug to me but I am not sure if I am missing something.

I searched the archive and found this recent report which is somewhat 
similar to my current problem, but there was no solution:
http://svn.haxx.se/tsvnusers/archive-2012-03/0042.shtml

Here's my setup:
The client is on Windows 7 using the latest svn 1.7.4.
The server is rather outdated with svn 1.4.3 on CentOS 4.3, but as I 
understand it, externals are a pure client-side feature.
I have an existing repository containing a file external (relative path 
to the same repository).
The initial checkout of the working copy is working fine.
Trying to update the working copy afterwards yields the error you find 
below.
Like the other user reporting the problem, everything seems to work 
fine, despite the error message...

Please tell me if I am making an obvious mistake.
Otherwise how can I help to diagnose this problem further?
I tried coming up with a simple repro-script but there it worked, of 
course...

Thank you and best regards
Stefan

Here's the log of what's happening:

C:\SVN> svn co 
http://192.168.0.22/svn/repos/build-scripts_msbuild_csharp_tools/Trunk wc
A    wc\a
A    wc\bunch
A    wc\of
A    wc\files
  U   wc

Fetching external item into 'wc\LatestVersion.txt':
A    wc\LatestVersion.txt
Checked out external at revision 6.

Checked out revision 6.

C:\SVN> svn propget svn:externals wc
../Tags/LatestVersion.txt LatestVersion.txt

C:\SVN> svn up wc
Updating 'wc':

Fetching external item into 'wc\LatestVersion.txt':
svn: warning: W160016: Failure opening 
'/Tags/LatestVersion.txt/LatestVersion.txt'

At revision 6.
svn: E205011: Failure occurred processing one or more externals definitions

C:\SVN> svn propset svn:externals "../Tags/LatestVersion.txt foo.txt" wc
property 'svn:externals' set on 'wc'

C:\SVN> svn up wc
Updating 'wc':

Fetching external item into 'wc\foo.txt':
A    wc\foo.txt
Updated external to revision 6.

Removed external 'wc\LatestVersion.txt'
Updated to revision 6.

C:\SVN> svn up wc
Updating 'wc':

Fetching external item into 'wc\foo.txt':
svn: warning: W160016: Failure opening '/Tags/LatestVersion.txt/foo.txt'

At revision 6.
svn: E205011: Failure occurred processing one or more externals definitions

C:\SVN> del wc\foo.txt

C:\SVN> dir /b wc\foo.*
File not found

C:\SVN> svn up wc
Updating 'wc':

Fetching external item into 'wc\foo.txt':
svn: warning: W160016: Failure opening '/Tags/LatestVersion.txt/foo.txt'

At revision 6.
svn: E205011: Failure occurred processing one or more externals definitions

C:\SVN> dir /b wc\foo.*
foo.txt

C:\SVN> svn info wc
Path: wc
Working Copy Root Path: C:\SVN\wc
URL: http://192.168.0.22/svn/repos/build-scripts_msbuild_csharp_tools/Trunk
Repository Root: 
http://192.168.0.22/svn/repos/build-scripts_msbuild_csharp_tools
Repository UUID: 432010bc-1fb0-0410-b773-b1dec32ce2af
Revision: 6
Node Kind: directory
Schedule: normal
Last Changed Author: spodskubka
Last Changed Rev: 6
Last Changed Date: 2012-05-07 14:52:55 +0200 (Mo, 07 Mai 2012)

C:\SVN> svn info wc/foo.txt
Path: wc\foo.txt
Name: foo.txt
Working Copy Root Path: C:\SVN\wc
URL: 
http://192.168.0.22/svn/repos/build-scripts_msbuild_csharp_tools/Tags/LatestVersion.txt
Repository Root: 
http://192.168.0.22/svn/repos/build-scripts_msbuild_csharp_tools
Repository UUID: 432010bc-1fb0-0410-b773-b1dec32ce2af
Revision: 6
Node Kind: file
Schedule: normal
Last Changed Author: spodskubka
Last Changed Rev: 3
Last Changed Date: 2012-05-07 13:37:14 +0200 (Mo, 07 Mai 2012)
Text Last Updated: 2012-05-07 15:17:53 +0200 (Mo, 07 Mai 2012)
Checksum: 4491f8b5ecc09d9de308ea37e6a23ad2dd66c256


Re: Error with file externals

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Stefan Sperling wrote on Wed, May 09, 2012 at 11:12:10 +0200:
> On Wed, May 09, 2012 at 11:09:35AM +0300, Daniel Shahaf wrote:
> > Hi, just wanted to say thanks for the effective bug report.
> 
> Yes, it is very good indeed.
> 
> > I'm not able to look further into this right now but I hope someone else will.
> 
> Stefan, could you please file an issue for this? Someone will take
> a look at this eventually. Thanks.

Maybe next month at the hackathon? </gstein>

Re: Error with file externals

Posted by Stefan Podskubka <s....@hcs.at>.
On 09.05.2012 11:12, Stefan Sperling wrote:
> Stefan, could you please file an issue for this? Someone will take
> a look at this eventually. Thanks.
Done: http://subversion.tigris.org/issues/show_bug.cgi?id=4182


Re: Error with file externals

Posted by Stefan Sperling <st...@elego.de>.
On Wed, May 09, 2012 at 11:09:35AM +0300, Daniel Shahaf wrote:
> Hi, just wanted to say thanks for the effective bug report.

Yes, it is very good indeed.

> I'm not able to look further into this right now but I hope someone else will.

Stefan, could you please file an issue for this? Someone will take
a look at this eventually. Thanks.

Re: Error with file externals

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
Hi, just wanted to say thanks for the effective bug report.  I'm not
able to look further into this right now but I hope someone else will.

Daniel

Stefan Podskubka wrote on Wed, May 09, 2012 at 09:20:59 +0200:
> Hello,
>
>> So maybe it is related to the server version and the communication  
>> protocol.
> I have made Wireshark captures for the failed and for the successful  
> communication.
> If anyone is interested in those captures please say so, I didn't want  
> to send them directly to the list.
>
>> Anyway, if the bug cannot be found I could always use directory  
>> externals instead of file externals, they work just fine.
> And that's what I did yesterday to work around this problem.
>
> Best regards
> Stefan

Re: Error with file externals

Posted by Stefan Podskubka <s....@hcs.at>.
Hello,

> So maybe it is related to the server version and the communication 
> protocol.
I have made Wireshark captures for the failed and for the successful 
communication.
If anyone is interested in those captures please say so, I didn't want 
to send them directly to the list.

> Anyway, if the bug cannot be found I could always use directory 
> externals instead of file externals, they work just fine.
And that's what I did yesterday to work around this problem.

Best regards
Stefan

Re: Error with file externals

Posted by Stefan Podskubka <s....@hcs.at>.
Hello list,

> I tried coming up with a simple repro-script but there it worked, of 
> course...
>
I didn't manage to reproduce the error with the file:// protocol, but 
with http:// I was able to reproduce it.
Still on Windows 7, still using subversion 1.7.4 on the client and 
subversion 1.4.3 on the server with Apache 2.0.52 serving the repository.
http://192.168.0.22/svn/repos/test123 is an empty repository.

The script:
----------
svn co http://192.168.0.22/svn/repos/test123 wc123
echo test >wc123\test1.txt
svn add wc123\test1.txt
svn ci -m "initial checkin" wc123
svn up wc123
svn propset svn:externals "^/test1.txt test2.txt" wc123
svn up wc123
svn up wc123
----------

The last update outputs the following:
----------
Updating 'wc123':

Fetching external item into 'wc123\test2.txt':
svn: warning: W160016: Failure opening '/test1.txt/test2.txt'

At revision 1.
svn: E205011: Failure occurred processing one or more externals definitions
----------

I tried the same with the subversion repository (apparently subversion 
1.7.0), there I could not reproduce the error with the following script. 
Everything went well.
----------
C:\SVN>svn co http://svn.apache.org/repos/asf/subversion/trunk/doc wcsvn
C:\SVN>svn propset svn:externals "../INSTALL INSTALL" wcsvn
C:\SVN>svn up wcsvn
C:\SVN>svn up wcsvn
----------

So maybe it is related to the server version and the communication protocol.

Anyway, if the bug cannot be found I could always use directory 
externals instead of file externals, they work just fine.

Best regards,
Stefan