[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SVN Error while running via CCNet script: Source control operation failed: svn: Connection closed unexpectedly

From: <pinaki.basu_at_thomson.com>
Date: 2006-11-09 09:40:59 CET

I am facing issue on SVN while trying to run via CCNet. If you have some
knowledge on such problem please share the information.

 

Issue Description

We are using Cruise Control .Net (CCNet) along with Subversion (SVN) and
NAnt for automated code synchronization and build process. Also we use
Putty for SSH authentication for code base access. Earlier the server
which is hosting the code base used to allow SVN connection without SSH
authentication but recently configured to allow only (SVN + SSH)
connection. We have the CCNet scripts which has necessary commands to
make code synchronization via SVN which used to work fine with earlier
SVN connection without SSH authentication but failed to do so when (SVN
+ SSH) connection is enforced. Then I modified the SVN part of the CCNet
script to make it work for (SVN + SSH) connection as follows (also refer
attached configuration file as ccnet.config).

 

<sourcecontrol type="svn" >

<executable>C:\Program Files\Subversion\bin\svn.exe</executable>

<!--<trunkUrl>svn://user@projects.tfn.com/svn/tfoms/Client/Trunk/LvRtmd<
/trunkUrl>--> (Old, SVN only)

<trunkUrl>svn+ssh://user@projects.tfn.com/svn/tfoms/Client/Trunk/LvRtmd<
/trunkUrl> (New, (SVN + SSH) only)

                <workingDirectory>some directory</workingDirectory>

                <username> user@projects.tfn.com</username>

                <password>PSW</password>

</sourcecontrol>

 

Here I used to get an error as following

Source control operation failed: svn: Connection closed unexpectedly.

Process Command: C:\Program Files\Subversion\bin\svn.exe log
svn+ssh://user@projects.tfn.com/svn/tfoms/Client/Trunk/LvRtmd -r

"{2006-11-03T07:19:35Z}:{2006-11-03T07:20:38Z}" --verbose --xml
--username user@projects.tfn.com --password PSW --non-interactive
etc.

 

However when I run the same command from the command-line instead of
CCNet script, it succeeds.

BTW before running CCNet service, I have already started PAgent,
authenticated private key validation and started Putty as well to
establish secure connection with the server which is hosting necessary
code base (for Putty related settings, refer 'Putty.jpg'). At the same
time I can do the code sync with SVN or Tortoise SVN but similar actions
fail when being run through CCNet scripts.

 

I searched on internet regarding this kind of SVN error and got few
advises such as to add a ssh variable under [tunnels] section in SVN
config file in C:\Documents and Settings\<user>\Application
Data\Subversion folder as 'ssh = $SVN_SSH ssh -l user' (refer attached
file config.file) and copying of TortoisePlink.exe inside Subversion
installation directory and then add a system variable as 'SVN_SSH' with
value as 'C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe' (refer
screen-shot as 'SVN_SSH System Variable.jpg') etc. I even changed CCNet
service property from 'This Account' to 'Local System Account' and
enabled the service to interact with desktop (refer screen-shot as
'CCNet Service Property Pages.jpg'). But still these did not help to
overcome the problem of running SVN via CCNet.

 

Version Information of related Software

CCNet i.e. CCNet.exe version is 1.0.1.1277.

Subversion i.e. SVN.exe version is 1.2.3.15833.

Tortoise SVN i.e. TortoiseProc.exe version is 1.3.5.6804 and
TortoisePlink.exe version is 1.9.0.15.

 

Platform Information

Concerned machine is an Intel Pentium Xenon 3 GHz with Windows 2003
Server, SP1.

 

Thanks,

Pinaki

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

CCNet Service Property Pages.jpg
  • application/octet-stream attachment: config
SVN_SSH System Variable.jpg
Putty.jpg
Received on Thu Nov 9 09:50:08 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.