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.
    Patrick H.NinjaTrader Customer Service

    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 Renorail, Today, 01:05 AM
        2 responses
        32 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by luigiabsh1972, Today, 03:08 AM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by mattage86, Today, 06:43 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_RyanS  
        Started by Hyper, Yesterday, 05:13 PM
        1 response
        11 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by ansgrecho, Today, 06:23 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Working...
        X