Question

VSS is resuming it's sabotage of my repository again. The repair command won't let me repair, the lock VSS doesn't seem to affect currently logged in users-- and it isn't a user, its claiming the only person logged in is admin (via the VSS admin tool!) and I have already closed all instances of the VSS admin tool and client.

Was it helpful?

Solution

In computer management, close all the sessions and open files. It's drastic, but that is the only way I found to fix it. You also might want to close the share temporarily.

OTHER TIPS

I had the same problem and even after following the steps in the answer above, it did not go away until I stopped the SQLWriter (Sql Server VSS Writer) and SSService (Visual SourceSafe LAN Service) services.

Write a mail to everyone:

Subject: VSS Emergency

Body: Everyone is asked to disconnect immediately from VSS. This is not a drill. I repeat: this is not a drill.

Reboot the machine and re-try.

Close also all Visual Studio instances since these are also (or can be) clients of Visual Source Safe.

stopping SSService (Visual SourceSafe LAN Service) worked for me, thanks.

it saved lot of time and confusions...

I have this batch file running through the Task Scheduler 2:00 a.m. every day when no one should be logged in anyway, but they are. It seems to do the trick.

net stop sqlwriter
net stop ssservice
"D:\Program Files (x86)\Microsoft Visual SourceSafe\analyze.exe" -C -D -F -V4 "D:\vss\data"
net start ssservice
net start sqlwriter

The only issue I have come across is the backup folder might have data in it, which stops analyzer in its tracks. So I might end up adding some commands to move the stuff out of the data\backup folder if I run into that issue again. (In that scenario, you have to keep the analyze.log file in the backup folder. I haven't done enough research into that, though.)

I hope this helps!

  1. Open 'Microsoft Visual SourceSafe Administration'.
  2. Select user and change password (if required) from User > Change password.
  3. Tools > Options > Untick 'Use network name for automatic use log in' > OK.
  4. Open 'Microsoft Visual SourceSafe' and login with the required user then do 'undo check out' or 'check-in' for required file(s).
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top