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 samish18, Yesterday, 08:31 AM
              4 responses
              14 views
              0 likes
              Last Post elirion
              by elirion
               
              Started by funk10101, Yesterday, 09:43 PM
              1 response
              13 views
              0 likes
              Last Post NinjaTrader_Gaby  
              Started by TheWhiteDragon, 01-21-2019, 12:44 PM
              5 responses
              551 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by rtwave, 04-12-2024, 09:30 AM
              5 responses
              37 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by funk10101, Today, 12:02 AM
              1 response
              11 views
              0 likes
              Last Post NinjaTrader_LuisH  
              Working...
              X