Shadow copy service

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Shadow copy service

Post by Dan-RG » Tue Oct 25, 2005 2:24 am

Hi

I have set this up as per the instructions but it still doesn't seem to work.

We have the directory on another server using uncand the permissions seem ok. I used the identity tool on the shadows copy service web.config file, and it appeared to do the things its supposed to do.

This is the error in the log file:
25/10/2005 09:13:38 <generic>: [<No Name>:5328] Shadow Folder could not initialize the Client Instance for Repository ID 3. Requested registry access is not allowed.

Thanks
Dan

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

Post by lbauer » Tue Oct 25, 2005 6:58 am

Are you using Vault 3.1.2? We've identified a problem when using a custom account for Shadow Folders. We're currently working on a fix, which will be released with Vault 3.1.3, due out soon.
Linda Bauer
SourceGear
Technical Support Manager

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Wed Oct 26, 2005 7:49 am

We are using 3.1.1 at the moment as there hasn't been a need to upgrade yet.

Does the problem exist in this version?

Regadrs
Dan

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Wed Oct 26, 2005 8:14 am

Yes, I believe it exists in 3.1.1 as well. 3.1.3 should be out early next week - sorry for the inconvenience on this issue.

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Wed Oct 26, 2005 9:33 am

Thanks Dan
I will look out for this and try it once released.

Dan

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Tue Nov 08, 2005 4:53 am

OK so we have installed the update to 3.1.3 with no problems - all is working except the shadow copy service.

Unfortunately I can't get any information form the log as it is not being updated. Event viewer gives this error.

Error writing start up string to log file . Exception was: The key 'logFilePath' does not exist in the appSettings configuration section.

So I have added:
<add key="LogFilePath" value="%SYSTEMROOT%\Temp" />
to the web.config file to try and force the location of the file but no go.

So what am I missing with shadow copy using url and custom account, and how do i get a log file so I can trouble soot.

Regards
Dan

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Nov 08, 2005 7:27 am

Some questions:

a) How did you install the Vault server? Was it with a custom .Net account or did you use the ASP.Net account?

b) Look for logFilePath in Shadow's web.config file (notice the case). What is the setting there?

c) If you are using identity impersonation in Shadow Folder, how did you switch accounts? With the release of Vault 3.1.3, there was an updated Identity Switcher.

I'll need to check to see if that tool was uploaded to the Support Forum.
Jeff Clausius
SourceGear

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Tue Nov 08, 2005 7:38 am

The installation was done using the asp.net account.

There is no setting for LogFile Path in the shadow's web.config file. Only the line i added that doesn't seem to work.

I used the impersonator previously released.

Are you saying that I should start from scratch with the settings? If so where can i get the original web.config file from?

Thanks
Dan

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Nov 08, 2005 8:39 am

How did you install Vault 3.1.3 server? An uninstall / reinstall or just run the upgrade?
Jeff Clausius
SourceGear

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Tue Nov 08, 2005 9:07 am

Ran the upgrade from 3.1.1

Dan

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

Post by lbauer » Tue Nov 08, 2005 9:11 am

Jeff mentioned the IdentitySwitcher earlier -- you can download it from this link:

http://support.sourcegear.com/viewtopic.php?t=2953

It was updated November 2, so it should be the latest version.
Linda Bauer
SourceGear
Technical Support Manager

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Tue Nov 08, 2005 9:14 am

I will try this version and let you know, but how can i get the log file to work.

Thanks
Dan

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Tue Nov 08, 2005 9:17 am

Dan:

To enable logging, add the following to your web.config's <appSettings> element. Note the path and file name are both specified for this setting.

Code: Select all

<add key="logFilePath" value="%WINDIR%\TEMP\SGShadowFolder\vaultshadowfolderservice.txt" />
Note, you can change the path to the log file, but make sure the Custom .Net account has permissions to that directory.


Once that has been added, use the instructions on the link Linda has provided to configure the rest of Shadow Folder.
Jeff Clausius
SourceGear

Dan-RG
Posts: 11
Joined: Fri Jul 22, 2005 8:10 am

Post by Dan-RG » Tue Nov 08, 2005 10:23 am

Looks like it is all working now.

Thanks for the help.

Regards
Dan

mlippert
Posts: 252
Joined: Wed Oct 06, 2004 10:49 am
Location: Cambridge, MA

Post by mlippert » Tue Nov 08, 2005 12:35 pm

Linda, right now there is no way to tell that the identity switcher has been updated. From all indications on the post it was created in Jan 2005 (~10 months ago).

Could you update the message with some indication of when the identityswitcher was updated (ie I guess Nov 2, 2005).

Thanks,
Mike

Locked