Files destroyed in VSS
hi i have a critical problem here can anyone suggest what sould be done.
i have checked in some files in VSS and also deployed on a server after few days i check from VSS and i didnt find any file then i select the project and check history and i am surprized to the these files had been destroyed by the user: "rebuild" . what does it means rebuild is a builtin user or something else and how can i resolve this problem. please reply as soon as possible.
Regards,
Faisal Saleem
Hi Faisal,
When you run analyze -f if a reference to a file cannot be resolved either because the file is missing or locked open by the OS (possibly because you are backing up the database at the same time as running analyze etc) , analyze will create an entry destroy entry by the rebuild user. Analyze also creates a backup of all the files it modifies and places them in the data\backup folder. (or the dated backup folder for your last analyze run).
You can move all the files from the backup folder to undo the analyze run.
You could try to identify the project physical file that contained the files you added and just restore that plus any files that are part of the project.
Run ss physical command to generate a mapping file between friendly name and physical file name.
Here is steps how to run generate the physical mapping file:
1. Open a command window and go to the C:\Program Files\Microsoft Visual Studio\SourceSafe\win32 directory that contains ssarc, ssrestor, ss, analyze.exe, etc.
- set VSS database directory to point to the correct database srcsafe.ini file:
set ssdir=\\serverName\share\vss
Where \\server\share\vss is the folder where the srcsafe.ini file is located.
3. Run the following command line syntax to generate and ss physical file.
ss physical $/ -r -ophysical.txt
In this example, ss is the program we are using and physical is the subprogram. $/ specifies that we would like to begin at the root level and -r means we want to walk the tree recursively (all sub projects of all projects). Finally, -o specifies that the results should be exported to a text file named physical.txt. This file will be created in the directory the command was run from.
If the files the project is referencing are not still in the data directory and are not in the analyze backup folder that would suggest they might have been missing before running analyze.
I hope this helps a little.
Hi Faisal,
Do you access your VSS db remotely? If yes, I think you may need to get a VSS remote access tool.
As we all know that running VSS from a remote machine is very slow. If network problem happens during check in, the chance is very high that your file is left "corrupted".
Thanks.