Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can’t reset DB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can’t reset DB

    When I try to reset DB in NT 7 I get the message Failed to compact DB. Old DB is preserved. You need to restore manually. There is a file sharing violation. A different process might be using the file.

    How do I restore manually?

    #2
    Hello neverwas,

    Can you please close NinjaTrader and go to (My) Documents-->NinjaTrader 7-->db. The 'db' folder contains the database (.sdf).

    Due to the error, it has been renamed as 'NinjaTrader.Old'. The .sdf file named just 'NinjaTrader' will be the database file that NinjaTrader uses. So please rename the .sdf file 'NinjaTrader' instead of 'NinjaTrader.Old'.

    Subsequently start NinjaTrader and check if the issue remains.
    JasonNinjaTrader Customer Service

    Comment


      #3
      OK, there are both a NinjaTrader.sdf and Ninjatrader.Old.sdf in the db folder. I have renamed them as each other get same error, I’ve renamed then one at a time and both at the same time and a file with the original renamed file regenerates on boot up and I get same error.

      Comment


        #4
        Can you please check if your virus scanner or another application scans/locks files in the (My) Documents-->NinjaTrader 7 folder.

        Please make sure to configure your virus scanner or other application so that none of the files in directory above would be scanned/locked or remove that directory from the scanning list.

        Subsequently check if the error message persists when resetting the database.
        JasonNinjaTrader Customer Service

        Comment


          #5
          Downloaded a un locking program attached pic of what it shows. When I unlocked NT crashed.
          Attached Files

          Comment


            #6
            Just did another unlock and reboot and its working error free.

            Comment


              #7
              Good to hear the error does not persist when resetting the database.

              Have a nice day!
              JasonNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by hazylizard, Today, 08:38 AM
              0 responses
              0 views
              0 likes
              Last Post hazylizard  
              Started by Max238, Today, 01:28 AM
              5 responses
              42 views
              0 likes
              Last Post Max238
              by Max238
               
              Started by giulyko00, Yesterday, 12:03 PM
              3 responses
              12 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by habeebft, Today, 07:27 AM
              1 response
              14 views
              0 likes
              Last Post NinjaTrader_ChristopherS  
              Started by AveryFlynn, Today, 04:57 AM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_Erick  
              Working...
              X