The Windows installer is a standard MSI-based Windows installer. We are using Advanced Installer by Caphyon to author the installation process. Running the installer is simple, the only option during the wizard is to select the location to install the product. We default the path to C:\csvn. We chose this as the default, as opposed to using C:\Program Files to minimize issues around dealing with paths that have spaces in the name and also to avoid Windows User Account Control (UAC) issues on Vista and later OS. We can test these scenarios and resolve issues in the product but as you start adding hook scripts and other integrations to Subversion it is an issue you are always dealing with. So we chose a default path that avoids some of these problems and makes the overall experience easier for the administrator.
Here are some of the things we do during the install process, beyond simply copying the bits to your drive.
The main issues that customers experience on a new install are related to the services that we install. Either they fail to install at all or they fail to start. This will give you some information on what to look for to resolve any problems you are having.
Server never says it is Ready
After running the install the web page that we bring up to show you the server is starting never says it is Ready. This means that either the service never installed or it did not start. Please do the following:
Check if the service installed
Open the Windows Services control panel and see if there is a CollabNet Subversion Edge service. If you prefer to check from a command line try this:
C:\>sc query CSVNConsole SERVICE_NAME: CSVNConsole TYPE : 10 WIN32_OWN_PROCESS STATE : 4 RUNNING (STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN) WIN32_EXIT_CODE : 0 (0x0) SERVICE_EXIT_CODE : 0 (0x0) CHECKPOINT : 0x0 WAIT_HINT : 0x0
This shows a running service. This is what you would see if the service is not installed:
C:\>sc query CSVNConsole [SC] EnumQueryServicesStatus:OpenService FAILED 1060: The specified service does not exist as an installed service.
Service Not Installed
The primary reason we have seen for the service not being installed is that Java is not in your PATH. The Sun/Oracle JRE normally adds java.exe to the Windows system folder, but there have been some users that install the JDK and do not install the JRE so they do not have anything in PATH. To check, just run this command:
C:\>java -version java version "1.6.0_24" Java(TM) SE Runtime Environment (build 1.6.0_24-b07) Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
If you get some output, then it is in your PATH. You can install the service manually by going to the folder C:\csvn\svcwrapper\bat and running the script installService.bat
C:\>cd \csvn\svcwrapper\bat C:\csvn\svcwrapper\bat>installService.bat C:\csvn\svcwrapper\bat>if . == . goto skip Apr 14, 2011 5:37:43 AM org.apache.commons.vfs.VfsLog info INFO: Using "C:\DOCUME~1\markphip\LOCALS~1\Temp\1\vfs_cache" as temporary files store. Service CSVNConsole installed
You should now be able to see the service and start it. You can run the script startService.bat to start it, or you can start it from the Services Control Panel.
Service Exists But Will not Start
The service exists but it fails to start. The main cause of this seems to be that Java is not in PATH. Use the technique shown before to check if it is in PATH. Install the JRE if you do not have Java in your PATH an that should resolve the problem. If it doesn't, there are some logs you can check:
C:\csvn\appserver\wrapper.log.0
This log file shows the output from starting the service. There would not typically be any errors in this log file, but it is worth checking.
C:\csvn\data\logs\console_YYYY_MM_DD.log
This log file has the output from the actual application when it starts. Look for error messages and they should give a clue as to why the app did not start. Mail the log file to our discussion forum if you need help.
Here are some issues we are aware with the install.
http://whxhz.iteye.com/blog/1294253