Originally created by: spamboun...@gmx.de
When trying to start the cygwin version of svnserve as a windows service as described in this book, I got the apparently ubiquitous timeout error 1053. After much googling and MSDN reading, I finally realised that it was not a windows service problem, but rather because windows service support isn't built into the cygwin version of svnserve. I found out by typing svnserve --help, which didn't list the --service option.
The obvious workaround of course is to use a different build of svnserve which supports running as service. The not so obvious solution is to use cygrunsrv to start the service, eg:
% cygrunsrv --install svnserve \
--path /usr/bin/svnserve \
--args '-d --foreground -r /c/temp/svn-test' \
--dep Tcpip
--user someuser
I got this solution on the cygwin forum, please read the rationale and more explanation here:
http://www.mail-archive.com/cygwin@cygwin.com/msg112607.html
I realise this is not a SVN problem as such, yet it might save a couple of people a couple of hours to include this hint in the SVN book.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: spamboun...@gmx.de
Some version info for completeness:
$ uname
CYGWIN_NT-6.0
$ cygcheck -V
cygcheck version 1.124
System Checker for Cygwin
Copyright (C) 1998 - 2008 Red Hat, Inc.
Compiled on Aug 31 2010
$ svnserve --version
svnserve, version 1.6.13 ([r1002816])
compiled Oct 4 2010, 09:08:12
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository back-end (FS) modules are available:
* fs_base : Module for working with a Berkeley DB repository.
* fs_fs : Module for working with a plain file (FSFS) repository.
Cyrus SASL authentication is available.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Owner: cmpilato
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Maybe Paul has some experience here, and can validate this suggestion?
Owner: pbu...@googlemail.com
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Labels: Milestone-en-1.6
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Summary: ch06: svnserve as a windows service under cygwin
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Oops. Use the correct address for Paul Burba.
Owner: ptbu...@gmail.com
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ptbu...@gmail.com
I can validate the suggestion, but with reservations. It installs the cygwin provided svnserve binary as a service, but any attempt to communicate with the server with my own 1.6.17 build, trunk build, or Tortoise SVN nightly build results in:
svn: Can't connect to host 'localhost': No connection could be made because the target machine actively refused it.
The same thing happens even if I run it directly from the command line rather than as a service.
On the cygwin command line things are a bit better. When running svnserve as a service I can access the repository via ra_serf sometimes, but frequently get this error:
$ svn log svn://localhost/svn-test-work/repositories/merge_tests-110
svn: Network connection closed unexpectedly
I haven't investigated these any further because of my primary reservation: The book currently makes no mention whatsoever about cygwin, so do we want to start now? Can we get away with just a brief mention of the solution to this problem without a greater discussion of using cygwin? I leave the answer to the long time authors...perhaps I am worried about nothing.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Hrm... maybe this is better handled as a request to the Subversion dev@ list to build first-class support for running svnserve as a service under Cygwin environments?
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Pushing this off as not-strictly-needed-for-1.6-coverage. (Trying to get to the 1.7 work sooner rather than later.)
Labels: Milestone-en-1.7
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
Bumping these out of the 1.7 milestone, not because I don't want to attack them in that timeframe, but because they don't necessarily block the completion of the 1.7 doc task.
Labels: Milestone-whenever
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ptbu...@gmail.com
Removing myself as the owner. I have not plans to tackle this.
Owner: ---
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: cmpilato
(No comment was entered for this change.)
Labels: -Milestone-whenever Milestone-unlikely
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: karthik....@gmail.com
Hi, hope this thread is still active. I've installed Cygwin 1.7.27 on a Windows 2003 Standard Edition (32 bit) box and setup SVN 1.8.5 on it. I've integrated it with AD and it all works flawlessly. I've created a windows service for SASLAUTHD and it works (albeit I see some weird SLAPD related errors on eventviewer upon startup / shutdown of service) but for some reason I'm unable to create one for svnserve. Below is the command, the service starts and immediately stops itself.
cygrunsrv --install SVNserve --path /usr/bin/svnserve --args '-d --config-file /mnt/svn/conf/svnserve.conf –r /mnt/svn' --dep Tcpip --desc "Subversion 1.8.5 - svnserve"
Please note the repository is on a network share which I've mounted on /mnt/svn and the full setup is working fine when accessed via TortoiseSVN, problem is with Windows service. I've also attached cygcheck log in case if it's of any help (please note though, all site, server info have been modified for obvious reasons). Anything on this would be greatly appreciated.
Eventviewer log:
The description for Event ID ( 0 ) in Source ( SVNserve ) cannot be found. the local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: SVNserve: PID 1216: 'SVNserve' service stopped, exit status: 1.
thanks,
Karthik Durairajan