Re: Cruise Control and SVN - "svn: Network connection closed unexpectedly"

"Peter" <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <[email protected]>
All,

 

Just incase anyone else ever runs into this issue, I have managed to track
down and resolve the problem that I had.

 

Admittedly I need to wipe the egg off my face .

 

For my Cruisecontrol setup I configured an init script using the
"start-stop-daemon -chuid" option to change to the "cc" user account.
Unfortunately I assumed that when it switched to the cc user account it
would run the ~/.profile script and load the keychain settings into the
environment so any ssh-agent aware application (like the subversion client)
could use the loaded private key, this was not the case!

 

Essentially even though I could manually confirm that subversion would
update without promoting for the passphrase, when Cruisecontrol (invoked via
my init script) tried to connect to the subversion repository it was
prompted for the passphrase hence the "svn: Network connection closed
unexpectedly" error message (it was waiting for user input).

 

My ugly hack to fix this was to create a wrapper script and call this script
from the start-stop-daemon which setup keychain prior to starting
Cruisecontrol.

 

Sorry for the noise.

 

Peter.

 

PS.  If anyone knows of a good link for information on which user
configuration files get loaded for non-interactive shell sessions could you
send me a private email with the details.

 

 

From: Peter [mailto:[email protected]] 
Sent: Thursday, 15 July 2010 11:20 PM
To: [email protected]
Subject: [Cruisecontrol-user] Cruise Control and SVN - "svn: Network
connection closed unexpectedly"

 

--- Edited down my original message ---

 

For the subversion repository I am connecting to it via svn+ssh, however I
have confirmed keychain to cache the key.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.