Error: "data\rights.dat is already open"

Hi, I've just installed Visual SourceSafe 2005 on a Windows XP Professional SP2 machine. I'm not sure right off the bat if that's the problem because scouring the web, I've not found any location that lists the system requirements for this software. In fact I can't even find the official Microsoft Page for this program! Is MS downplaying its existence to get people to migrate to TFS
Anyway, after creating the SS database, I tried to add a project to the source control on my laptop through the LAN (also running xp pro SP2), but when I try to connect, I get the error "File C:\Documents and Settings\<username>\My Documents\Visual SourceSafe\data.rights.dat is already open. If I click OK it asks me to log in and if I try again, I get the same error. If I try to login as an administrator to the database I get the same error, but if I put "cancel" after the error message it brings up SourceSafe but everything is greyed out except "Open Sourcesafe Database..." which gives me the same error and "Create New Database" which I don't want to do. Can anyone give me some help I've tried repairing the installation as well as fully uninstalling/reinstalling it, but I keep getting this error message and can find no help anywhere. please if you have any info, please help me
-SelArom



Answer this question

Error: "data\rights.dat is already open"

  • programmerjoey

    Hmmm… from what I see you already have several connections to this computer.

    Could you check how many sessions are opened on this computer in Computer Management->Shared Folders->Sessions. Look in Computer Management->Shared Folders->Opened Files to see which files are opened from your computer by others.

    XP limits number of clients to 10.

    Also, it is really not a good idea to have VSS database under your documents and settings folder. This folder is for storing your private files and default ACLs are set to protect them. You may have problems with access rights if you keep your database in this folder.

    You can simply move this database in new location, recreate the share and reset file access rights to make it work in new location.

    Have you tried creating new database and accessing it


  • PjV

    the thing is, I don't have ANY connections to the computer through sourcesafe!! It just gives me that error message, even if I'm trying to connect on the machine it's hosted on... this is really getting hair-pulling...

    so here is what I did. I uninstalled the program and deleted the sourcessafe database from the "My Documents" folder. I reinstalled visual sourcessafe and created a new database at c:\Visual sourcesafe. I logged in as admin and added a new user. I closed visual sourcesafe admin on the host machine. then I fired up my laptop and ran visual studio 2005. I opened a project and tried to add to source control, logging in as that new user and I get the same damn error. what am i doing wrong !

    -SelArom



  • GTrz

    okay here is what I've managed to accomplish so far...
    I reinstalled vss on my remote pc and my laptop, and cleared everything out having to do with ss in the registry because it kept trying to connect to my old db from the laptop...
    I created a new database on the remote pc and created a new user. I logged in as that user on the remote pc through vss and created a project and added a file to it. No problem!! I close everything on my remote server (both the admin and vss), then try it again just to see what happens, and it logs me into both systems, just fine. So, I close everything again.
    now I go to my laptop, fire up vs 2005 and open a project. I want to try and add this project to source control, so I right click the project in the solution explorer and select add to source control and it gives me the wizard to connect to a new database, and I select the database on the remote pc (\\SERVER\visual SourceSafe) which is located at c:\Visual Sourcesafe on the remote pc and shared through the network. I type in my log in credentials (the same as the ones I logged on the remote pc) and as soon as I do that BAM I get the SAME ERROR MESSAGE!! AHHH!
    what is the correct procedure to connect to the remote database over the lan
    -SelArom


  • CharlyA

    I have the same problem. Opening any project that is integrated with sourcesafe via Visual Studio 2005 causes the status.dat file to remain opened (after closing Visual Studio 2005). This causes the analyze utility to fail. You can verify this by opening an integrated project in Visual Studio 2005 and looking at the open files via My Computer->Manage->System Tools->Shared Folders->Open Files.
  • chief_druid_tma

    Do you get this error without ever connecting from another computer (Reboot the server and then connect to the database with VSS Explorer on the server using local path (not share) and then add project and files to the database)

    Could you try to check open handles for this file with Process Explorer right after you reboot the server and then after you connect to this database with VSS Admin and then close VSS Admin.

    You should have this file opened only while you are connected to this database, but it should not be opened after reboot and after VSS Admin is closed (assuming there is no connections from another computer)

    Do you have any program or service running that may prevent this file from been closed Perhaps some antivirus

    Do you have the same behavior if you create VSS database on your other computer

    Do you always get the same exact error message (same text, same file) What is the exact message


  • Jamie Cansdale

     Roman Golovin MSFT wrote:

    SelArom,

              Close all the programs that are connected to this database (including from other computers). Disable LAN service using VSS Admin->Server->Configure->LAN. Reboot the machine if you need to.

    Now do the search in Process Explorer (Find->Find Handle or DLL…) for rights.dat. You should not see any entries pointing to your rights.dat file. If you do then you need to look which process has the handle open on this file.

    If you do not have this file opened anymore could you try opening VSS Explorer and try adding a file to the database Did this work If not what exact error message did you get

     

    Could you try to create new database on the same server and see if you can work with the new database

     
    Hi Roman, thanks for your help. Here's what I did:
     
    1) Rebooted
    2) Tried to run VSS Admin
    3) Immediately Got error: File \\SERVER\Visual Sourcesafe\rights.dat is already open."
    4) Ran process explorer and searched for rights.dat, here is a screen capture of what I got: http://www.selarom.com/images/screencap.gif
     
    I realized it's trying to connect via the share (which it told me to do when I tried to enable http). So I configured it to connect to the database directly, and got the same error. I then set it to automatically connect to that one next time I try, and I rebooted.
     
    This time I was able to connect as admin, and I logged in and disabled http and lan. Now I tried to connect via that same machine and actually got in! Yay. So I try to create a project in the SS and it says "File C:\Documents and Settings\Josh Morales\My Documents\Visual Sourcesafe\data\aaaaaaaa.cnt is already open."
     
    why is this happening and am I not going to be able to use the Lan service and http
     
    -SelArom
    .


  • J1102

    > "Opening any project that is integrated with sourcesafe via Visual Studio 2005 causes the status.dat file to remain opened (it never closes)."

    I cannot reproduce this. VS should close the connections to the database when the solution is closed. Also, when an application is closed Windows will close all files opened by that process (even if the process forgot to close them), so at least when VisualStudio is closed the file should be closed, too.

    You may have other applications that keep the file open. ProcessExplorer is your friend to search for open handles...

    Alin


  • BreSmith

    SelArom,

    Close all the programs that are connected to this database (including from other computers). Disable LAN service using VSS Admin->Server->Configure->LAN. Reboot the machine if you need to.

    Now do the search in Process Explorer (Find->Find Handle or DLL…) for rights.dat. You should not see any entries pointing to your rights.dat file. If you do then you need to look which process has the handle open on this file.

    If you do not have this file opened anymore could you try opening VSS Explorer and try adding a file to the database Did this work If not what exact error message did you get

    Could you try to create new database on the same server and see if you can work with the new database


  • Derek C

    Steve, thank you for taking the time to respond. I am actually running the main visual sourcesafe that holds the database on a third windows xp pro sp2 machine. I want to be able to connect via a desktop and a laptop. I have attempted to connect to the sourcesafe database as well as the administration of the database on the main machine, but it gives me the same error about the rights.dat file being open.
    I tried running the program you suggested (very cool program btw!) but I couldn't find any process that is running the program, just System. I did a search for rights.dat and it showed about 2 dozen entries, all under the top System node. do you have any idea what that means
    I don't think it's a permissions problem because I'm getting the error right on the machine, plus I can access things on that server (printer, files, etc) from the laptop with no problems. oh and my sourcesafe folder is also shared. any other ideas
    again thank you for helping, please don't go away because I really need to get this resolved asap!
    -SelArom


  • sdor

    Hi SelArom,

    Just to clarify, it sounds like you set up your SourceSafe database on your desktop and are trying to connect remotely on your laptop through the LAN. Can you connect to the database you created on your desktop from your desktop It sounds like you might have a permissions problem on the folder you setup the database in. Double-check that the username you're connecting with from the laptop has permissions on that folder on your database host machine. Also, download http://www.sysinternals.com/Utilities/ProcessExplorer.html for your environment and use the tool and look through the process tree to find the application that is using the file you mentioned. Let me know your results.

    Best Regards,

    Steve


  • ITLionWoo

    This should work. There is something special about you laptop or desktop configuration.

    Do you have any service running that can affect file closing (like an antivirus) or connections through the share We had similar problem when earlier version of Virtual PC installed on Windows XP

    When you get this message can you check if this file is opened on both server and client or only on the server

    Have you tried going the other way Making your database on the laptop and trying accessing it from your desktop


  • Yasir Mahmood

    The answer we got from MSDN guys was that they had other important things to work on, but they are working on it. Right now, the old VSS page doesn't even contain (anymore) the news that VSS2005 has shipped, so they are editing content... I'm still hoping to see someday the new page in place...

    I doubt this has anything to do with TFS, the enterprise-level target audience for TFS is different from VSS (small dev teams).

    Alin


  • Raymond Roelands

    SelArom,

    I had the same issue with one of my VSS databases except that it was the status.dat file that was open.  I found this solution, which I applied, and that solved my problem.  Perhaps it will solve yours too.  Good luck.

    http://www.codecomments.com/archive356-2005-1-379463.html

    Bob


  • Masroor ul Hassan

    SelArom wrote:
    <snip>In fact I can't even find the official Microsoft Page for this program! Is MS downplaying its existence to get people to migrate to TFS
    I too wondered the same thing...why isn't there an offfical MS web page for VSS 2005

  • Error: "data\rights.dat is already open"