installation issues

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
aprole
Posts: 25
Joined: Wed Sep 29, 2010 12:24 pm

installation issues

Post by aprole » Fri Oct 01, 2010 3:52 pm

Hello,

I'm not able to access the web client after installing Vault 5.0.4.18845. I have installed it on a windows 2003 server machine with .NET and IIS 6.0, with SQL server 2000. I have enabled ASP 2.0 web service extension. The Vault application pool is running under the Network Service ID. When trying to log in, I get the error message "Service Unavailable". I think this may have to do with some permission issues because the installation log has a bunch of errors having to do with granting permissions. Here is my install log:

Any help would be greatly appreciated.

Thanks,
Alex


Log started at 1 Oct 2010 - 16.26.59

Custom action assembly location: C:\inetpub\wwwroot\VaultService\bin\CustomActionExe.exe
Custom Action version: 5.0.4

FileVersionInfo: File: C:\inetpub\wwwroot\VaultService\bin\CustomActionExe.exe
InternalName: CustomActionExe.exe
OriginalFilename: CustomActionExe.exe
FileVersion: 5.0.4.18845
FileDescription:
Product:
ProductVersion: 5.0.4.18845
Debug: False
Patched: False
PreRelease: False
PrivateBuild: False
SpecialBuild: False
Language: Language Neutral


The commandline args as passed in to us:

/TARGETDIR=C:\inetpub\wwwroot\VaultService\
/TARGETDIR2=C:\inetpub\wwwroot\Fortress\
/WEBDAV=C:\inetpub\wwwroot\SgDav\
/PARAMS=
/DROPDB=
/UPGRADE=
/ADMINPW=
/SQLSERVER=
/WINAUTH=1
End commandline args.

Found local name of NT AUTHORITY\NETWORK SERVICE for Network Service account.
See if we need to do an upgrade or an install...Configuring your new Vault Installation
Entered CreateCryptoRegistryValues.
CreateCryptoRegistryValues completed successfully.
Requesting the IIS Process User...Found local name of NT AUTHORITY\NETWORK SERVICE for Network Service account.
Setting up websites for IIS versions <=6

Pre-Website Check...

Entering Website Check...
Begin search for websites on this machine - DEV-SRV-2
Looking for websites on this machine...
Begin search for websites on this machine - DEV-SRV-2
Looking for websites on this machine...
Prepped IIS Path : IIS://LocalHost/W3SVC. Preparing to do directory entry
Directory Entry succeeded : W3SVC
W3SVC child is 1
1Added to _websites
Found website - 'Default Web Site'
W3SVC child is AppPools
W3SVC child is Filters
W3SVC child is Info
Search for websites returned successfully.

Successfully exited Website Check...
Found 1 websites.
Creating the Virtual Directory, VaultService...Confirmed our website 'IIS://LocalHost/W3SVC/1/Root' exists.
The directory physical path is 'C:\inetpub\wwwroot\VaultService\' and the name is 'VaultService'
Checking for existing directory at 'IIS://LocalHost/W3SVC/1/Root/VaultService'
Begin creating the Virtual Directory 'VaultService'.
Added the Virtual Directory 'VaultService'. Commiting the Add to the IIS Metabase
Changes have been commited to IIS Metabase. Now giving setting path to files on disk and giving them read access
Changes have been commited to IIS Metabase. Now giving setting path to files on disk etc.
Path, Access, browse flags and default doc have been commited to IIS Metabase.
Creating the App Pool.
App pool changes have been commited. Now setting the application name
Application name has been committed.
Verifying that IIS://LocalHost/W3SVC/1/Root/VaultService is using the correct .NET framework version (2.0.50727)
Checking for Windows Vista...
.NET framework version (2.0.50727) verified
OK
Creating the Virtual Directory, SgDav...Confirmed our website 'IIS://LocalHost/W3SVC/1/Root' exists.
The directory physical path is 'C:\inetpub\wwwroot\SgDav\' and the name is 'SgDav'
Checking for existing directory at 'IIS://LocalHost/W3SVC/1/Root/SgDav'
Begin creating the Virtual Directory 'SgDav'.
Added the Virtual Directory 'SgDav'. Commiting the Add to the IIS Metabase
Changes have been commited to IIS Metabase. Now giving setting path to files on disk and giving them read access
Changes have been commited to IIS Metabase. Now giving setting path to files on disk etc.
Path, Access, browse flags and default doc have been commited to IIS Metabase.
Creating the App Pool.
App pool changes have been commited. Now setting the application name
Application name has been committed.
Verifying that IIS://LocalHost/W3SVC/1/Root/SgDav is using the correct .NET framework version (2.0.50727)
Checking for Windows Vista...
.NET framework version (2.0.50727) verified
OK
Creating the Virtual Directory, VaultShadowFolder...Confirmed our website 'IIS://LocalHost/W3SVC/1/Root' exists.
The directory physical path is 'C:\inetpub\wwwroot\VaultService\VaultShadowFolder' and the name is 'VaultShadowFolder'
Checking for existing directory at 'IIS://LocalHost/W3SVC/1/Root/VaultShadowFolder'
Begin creating the Virtual Directory 'VaultShadowFolder'.
Added the Virtual Directory 'VaultShadowFolder'. Commiting the Add to the IIS Metabase
Changes have been commited to IIS Metabase. Now giving setting path to files on disk and giving them read access
Changes have been commited to IIS Metabase. Now giving setting path to files on disk etc.
Path, Access, browse flags and default doc have been commited to IIS Metabase.
Creating the App Pool.
App pool changes have been commited. Now setting the application name
Application name has been committed.
Verifying that IIS://LocalHost/W3SVC/1/Root/VaultShadowFolder is using the correct .NET framework version (2.0.50727)
Checking for Windows Vista...
.NET framework version (2.0.50727) verified
OK
Creating app pool on 'IIS://LocalHost/W3SVC/AppPools'.
Created app pool on 'IIS://LocalHost/W3SVC/AppPools'.
Assigning app pool on 'IIS://LocalHost/W3SVC/1/Root/VaultService'.
Assigned app pool on 'IIS://LocalHost/W3SVC/1/Root/VaultService'.
Assigning app pool on 'IIS://LocalHost/W3SVC/1/Root/VaultShadowFolder'.
Assigned app pool on 'IIS://LocalHost/W3SVC/1/Root/VaultShadowFolder'.
Assigning app pool on 'IIS://LocalHost/W3SVC/1/Root/SgDav'.
Assigned app pool on 'IIS://LocalHost/W3SVC/1/Root/SgDav'.
Editing keepalive on IIS://LocalHost/W3SVC/1
Entered GetServerBindings()
Exit GetServerBindings()
Requesting Vault Admin user password... Hashing the admin pw
OK
Connecting to the SQL Server...ConnectToDatabase() completed successfully.
dialog result for uninstall is: OK
OK
Verifying the SQL Server requirements... User is trying to install to Microsoft SQL version 8.00.760
OK
Checking for existing databases...Not found.
Creating a new Vault database on (local)...
Using collation: SQL_Latin1_General_CP1_CI_AS
Making sure we don't have a user login still hanging around.
Executing commands in master_ddl.sql
Read master_ddl.sql from our resources.
substituting collation for master_ddl.sqlwith collation SQL_Latin1_General_CP1_CI_AS
Creating the SourceGear master database...OK
DoSqlCommandsFromFile completed successfully.
Executing commands in vault_ddl.sql
Read vault_ddl.sql from our resources.
substituting collation for vault_ddl.sqlwith collation SQL_Latin1_General_CP1_CI_AS
Creating the SourceGear source control database...OK
DoSqlCommandsFromFile completed successfully.
Executing commands in master_sp.sql
Read master_sp.sql from our resources.
Creating SourceGear master stored procedures...OK
DoSqlCommandsFromFile completed successfully.
Executing commands in vault_sp.sql
Read vault_sp.sql from our resources.
Creating SourceGear source control stored procedures...OK
DoSqlCommandsFromFile completed successfully.
Executing commands in master_data.sql
Read master_data.sql from our resources.
Adding Data to SourceGear master database...OK
DoSqlCommandsFromFile completed successfully.
Executing commands in vault_data.sql
Read vault_data.sql from our resources.
Adding Data to SourceGear source control database...OK
DoSqlCommandsFromFile completed successfully.

Now add some stuff not in the script...
Adding installation specific data.
Generating RSA value.
Adding the admin user and putting him in a group.
Adding the admin user...OK
Add user 'NT AUTHORITY\NETWORK SERVICE', grant him db access, and set as rolemember to database sgvault
Login begin used is: NT AUTHORITY\NETWORK SERVICE
NT AUTHORITY\NETWORK SERVICE exists. Nothing to do.
GrantLogin completed successfully.
Granting login to 'DEV-SRV-2\ASPNET'
DEV-SRV-2\ASPNET exists. Nothing to do.
GrantLogin completed successfully.
Giving NT AUTHORITY\NETWORK SERVICE access to the Vault database...Adding Vault SQL permissions
Checking for database access on NT AUTHORITY\NETWORK SERVICE within the sgvault database.
Checking for database access on NT AUTHORITY\NETWORK SERVICE within the sgmaster database.
Giving extra user DEV-SRV-2\ASPNET access to the Fortress database.
Checking for database access on DEV-SRV-2\ASPNET within the sgvault database.
Checking for database access on DEV-SRV-2\ASPNET within the sgmaster database.
OK
Adding Initial Repository.
Creating Initial Repository...OK
AddSqlData completed successfully.
Updating upgrade history table...
Database created successfully!
Checking permissions on local folders... Shadowdir as retrieved from context params : C:\inetpub\wwwroot\VaultService\VaultShadowFolder
Adding permissions per user's request.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService\\VaultShadowFolder' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\inetpub\\wwwroot\\SgDav' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\WINDOWS\temp' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
OK
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService\\VaultShadowFolder' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService\\VaultShadowFolder' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\Documents and Settings\\All Users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService\\VaultShadowFolder' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permissions for temporary asp.net files...
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultservice' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultservice' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultservice' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultservice' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultshadowfolder' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultshadowfolder' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultshadowfolder' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\vaultshadowfolder' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\sgdav' for user DEV-SRV-2\ASPNET
Using DEV-SRV-2\ASPNET as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\sgdav' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\sgdav' for user DEV-SRV-2\IWAM_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding permission to 'C:\\WINDOWS\\Microsoft.NET\\Framework\\v2.0.50727\\Temporary ASP.NET Files\\sgdav' for user DEV-SRV-2\IUSR_DEV-SRV-2
Error granting permissions. Some or all identity references could not be translated.
Adding NT AUTHORITY/NETWORK SERVICE to IIS_WPG
Exception The specified account name is already a member of the local group. (Exception from HRESULT: 0x80070562)
Entered ModifyWebDotConfig().
Updating Configuration... Encrypting the admin pw
Read Web.config from our resources.
Preparing to write Web.config...
ModifyWebDotConfig() completed successfully.
OK
Entered MakeUrl()
Hostname lookup returned: Dev-srv-2
Port is default, 80
Exit MakeUrl() - Dev-srv-2
Entered SetInstallationSettings().
Exit SetInstallationSettings() success
Updating Vault.config with Server URL
Updating Vault.Config with Server URL...Server URL for email configured successfully
OK
Updating Shadow Folder Configuration...OK
Creating the Server Home Page...Read index.html from our resources.
Entered GetAssemblyVersion()
GetAssemblyVersion completed successfully.
Could not find host at http or https. Defaulting to http.
OK
Your Vault Server has been successfully configured.

After pressing [OK] the install will complete and launch a Web browser where you can enter license keys. Please log in with the user name and password that you supplied during this install.
Please press OK to continue.ExitCode on exit: 0

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: installation issues

Post by lbauer » Fri Oct 01, 2010 9:46 pm

The installer tries to set permissions for several accounts, but not all of them actually need that access. The installer is using Network Service as the Vault Service account, and permissions appear to have been set for that account.
Adding permission to 'C:\\inetpub\\wwwroot\\VaultService' for user NT AUTHORITY\NETWORK SERVICE
Using NT AUTHORITY\NETWORK SERVICE as the user.
GrantPermissions completed successfully.
The problem is more likely associated with this error:
Could not find host at http or https. Defaulting to http.
Is IIS running?

On the Vault Server machine, can you connect to
http://localhost/vaultservice ?

What about http://localhost/vaultservice/vaultservice.asmx ?
Linda Bauer
SourceGear
Technical Support Manager

aprole
Posts: 25
Joined: Wed Sep 29, 2010 12:24 pm

Re: installation issues

Post by aprole » Mon Oct 04, 2010 7:10 am

Good morning,

When I try to connect to either of those links there is a "Service Unavailable" error and IIS is running.

Thanks,
Alex

aprole
Posts: 25
Joined: Wed Sep 29, 2010 12:24 pm

Re: installation issues

Post by aprole » Mon Oct 04, 2010 8:34 am

Ok, nevermind, I have it working now. Reinstalled IIS and the vault server and tried .NET 4.0 instead of 2.0 and it worked for some reason.

Thanks,
Alex

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: installation issues

Post by lbauer » Mon Oct 04, 2010 8:47 am

Thanks for the update. That's good news. : )
Linda Bauer
SourceGear
Technical Support Manager

Post Reply