Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unable to clear out cache data

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

    Unable to clear out cache data

    BETA3: I am getting this error at startup.:
    "Unable to clear out cache data"


    2015-07-15 17:52:49:378 Cbi.Instrument.RequestBars (to Provider): instrument='ZN 09-15' from='07/15/2015 00:00:00' to='07/15/2015 00:00:00' period='1 Minute'
    2015-07-15 17:52:49:661 ERROR: Data.Bars.ClearCache: System.IO.IOException: The process cannot access the file 'C:\Users\Greg\Documents\NinjaTrader 8\db\cache\Nymex Metals - Energy ETH.Eastern Standard Time\TICK\HG 09-15\Range_1_1_Last_Close_Tick_Minute_1.201507091800 .209912010000.Last.ntt' because it is being used by another process.
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.File.InternalDelete(String path, Boolean checkHost)
    at NinjaTrader.Data.BarsSeries.ClearCache(Instrument instrument, DateTime firstData2Clear, Boolean clearReplayCache)
    Last edited by NJA_MC; 07-15-2015, 06:35 PM.

    #2
    Hello NJA_MC,

    Thank you for your post.

    If you have any security, anti-virus, anti-malware, and/or backup software running, try temporarily disabling it and testing again. It is possible the file is being accessed by another process first and NinjaTrader is being denied access due to this.

    Comment


      #3
      I tried to disable the Anti-Virus software, still happens... Always the same file.

      2015-07-16 16:29:49:210 ERROR: Data.Bars.ClearCache: System.IO.IOException: The process cannot access the file 'C:\Users\Greg\Documents\NinjaTrader 8\db\cache\Nymex Metals - Energy ETH.Eastern Standard Time\TICK\CL 08-15\Range_1_1_Last_Close_Tick_Minute_1.201507141800 .209912010000.Last.ntt' because it is being used by another process.
      at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
      at System.IO.File.InternalDelete(String path, Boolean checkHost)
      at NinjaTrader.Data.BarsSeries.ClearCache(Instrument instrument, DateTime firstData2Clear, Boolean clearReplayCache)
      I manually clear the "/db/cache/" folder and this seems to have solved the problem. I will let you know if it happens again.

      Comment


        #4
        Hello NJA_MC,

        Thank you for your post.

        If you have any security, anti-virus, anti-malware, and/or backup software running, try temporarily disabling it and testing again. It is possible the file is being accessed by another process first and NinjaTrader is being denied access due to this.
        Good example of importance of excluding critical NT files from indexing and malware scanning. As mentioned elsewhere this needs to be covered in documentation such as performance tips or operational instructions of help file.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by chbruno, 04-24-2024, 04:10 PM
        4 responses
        50 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by TraderG23, 12-08-2023, 07:56 AM
        10 responses
        398 views
        1 like
        Last Post beobast
        by beobast
         
        Started by lorem, Yesterday, 09:18 AM
        5 responses
        20 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by WHICKED, Today, 12:56 PM
        2 responses
        15 views
        0 likes
        Last Post WHICKED
        by WHICKED
         
        Started by Felix Reichert, Today, 02:12 PM
        0 responses
        4 views
        0 likes
        Last Post Felix Reichert  
        Working...
        X