Changing Vault Server Name
Moderator: SourceGear
Changing Vault Server Name
We recently moved our Vault Server to a new machine. Everything went well and everything was working on our new server (goldserver). Then our sysadmin went in and changed the machine's name and IP to spiritserver. I thought everything was working until I noticed changes weren't being made. When I log into the machine (now named spiritserver), and hit the Admin Web Client, it tries to go to our old server's URL. I can put in the new machine name in the address field and get into the web client and all of our changes show up in here, but when I try to access the shadow folder link it errors out again looking for the old server's URL of http://goldserver.ssprd.org/VaultService.
I'm not sure where I need to change this information so it tries to go to the correct server.
Thanks for your help,
Erika
I'm not sure where I need to change this information so it tries to go to the correct server.
Thanks for your help,
Erika
Re: Changing Vault Server Name
Changing server names and IP addresses tends to cause problems in general for services and applications. Even worse is changing a domain name. You may wish to update the few things in IIS that are affected by the name change: Updating IIS After You Change the Computer Name.
Here is a forum post that has more detailed information about what the change will affect: Any known issues in changing machine name of Vault server. If the SQL server was not on the same machine as Vault, then I think you will want to just uninstall and reinstall the application. You will want to keep your database, and both the uninstall and reinstall will ask if you want to keep and reuse the database.
If you use Shadow Folders, then let me know before you proceed.
If you use IDE integration, your bindings will not work either. The projects and solutions will need to be unbound, then reopen VS, and bind to the new server.
Here is a forum post that has more detailed information about what the change will affect: Any known issues in changing machine name of Vault server. If the SQL server was not on the same machine as Vault, then I think you will want to just uninstall and reinstall the application. You will want to keep your database, and both the uninstall and reinstall will ask if you want to keep and reuse the database.
If you use Shadow Folders, then let me know before you proceed.
If you use IDE integration, your bindings will not work either. The projects and solutions will need to be unbound, then reopen VS, and bind to the new server.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Changing Vault Server Name
We do use Shadow Folders, that is actually the only portion that isn't working. The database is kept on a different server. I hate to uninstall and reinstall, last time it took me an entire day to get it back working. I thought there might just be a configuration piece I could change to the new server name.
Please let me know how to proceed using Shadow Folders.
Thanks,
Erika
Please let me know how to proceed using Shadow Folders.
Thanks,
Erika
Re: Changing Vault Server Name
Let's try just changing the path then.
In your SQL server, take a look at the table sgvault.dbo.tblplugins. If there are rows in the table that reference your old host name for Shadow Folders, you may want to delete the row or change the name.
In your SQL server, take a look at the table sgvault.dbo.tblplugins. If there are rows in the table that reference your old host name for Shadow Folders, you may want to delete the row or change the name.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Changing Vault Server Name
I tried deleting the row in the tblplugins table, then I opened up the Web Admin and tried clicking on the shadow folder link for the repository, but I get the same error.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Unable to connect to http://goldserver.ssprd.org/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: Unable to connect to the remote server at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword) at VaultShadowFolder.VaultShadowFolderService.TestServerConnection()
Also when I open the Web Admin, it first tries to open the old server URL at http://goldserver.ssprd.org/vaultservice/admin. I just put in the new server name instead of goldserver and I can get into the admin pages.
Again thanks for your help,
Erika.
System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Unable to connect to http://goldserver.ssprd.org/VaultService. No server was found at the specified URL. Please verify your network settings using the Options dialog under the Tools menu in the Vault GUI Client. Web Exception: Unable to connect to the remote server at VaultClientNetLib.VaultConnection.Login(String strURLBase, String strUserLogin, String strPassword) at VaultShadowFolder.VaultShadowFolderService.TestServerConnection()
Also when I open the Web Admin, it first tries to open the old server URL at http://goldserver.ssprd.org/vaultservice/admin. I just put in the new server name instead of goldserver and I can get into the admin pages.
Again thanks for your help,
Erika.
Re: Changing Vault Server Name
Go to your shadow folder web.config that is found by default at C:\inetpub\wwwroot\VaultService\VaultShadowFolder. If you didn't install to the default location, it will be under VaultService\VaultShadowFolder wherever you installed it to. In the web.config, find the line <add key="shadowfolder_vaultserver" value="http://xxxxxxxxx/VaultService" />. In place of the x's put either localhost or your current server name. Then perform an iisreset and try to reach the shadow folder page.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Changing Vault Server Name
That worked!!
Thank you so much for your help. We really love Vault and the support that we receive.
Thanks,
Erika
Thank you so much for your help. We really love Vault and the support that we receive.
Thanks,
Erika