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 Segwin, 05-07-2018, 02:15 PM
        10 responses
        1,767 views
        0 likes
        Last Post Leafcutter  
        Started by Rapine Heihei, 04-23-2024, 07:51 PM
        2 responses
        30 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by Shansen, 08-30-2019, 10:18 PM
        24 responses
        943 views
        0 likes
        Last Post spwizard  
        Started by Max238, Today, 01:28 AM
        0 responses
        9 views
        0 likes
        Last Post Max238
        by Max238
         
        Started by rocketman7, Today, 01:00 AM
        0 responses
        7 views
        0 likes
        Last Post rocketman7  
        Working...
        X