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 fx.practic, 10-15-2013, 12:53 AM
        5 responses
        5,406 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by Shai Samuel, 07-02-2022, 02:46 PM
        4 responses
        98 views
        0 likes
        Last Post Bidder
        by Bidder
         
        Started by DJ888, Yesterday, 10:57 PM
        0 responses
        8 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by MacDad, 02-25-2024, 11:48 PM
        7 responses
        160 views
        0 likes
        Last Post loganjarosz123  
        Started by Belfortbucks, Yesterday, 09:29 PM
        0 responses
        9 views
        0 likes
        Last Post Belfortbucks  
        Working...
        X