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 Mestor, 03-10-2023, 01:50 AM
        16 responses
        387 views
        0 likes
        Last Post z.franck  
        Started by rtwave, 04-12-2024, 09:30 AM
        4 responses
        31 views
        0 likes
        Last Post rtwave
        by rtwave
         
        Started by yertle, Yesterday, 08:38 AM
        7 responses
        29 views
        0 likes
        Last Post yertle
        by yertle
         
        Started by bmartz, 03-12-2024, 06:12 AM
        2 responses
        22 views
        0 likes
        Last Post bmartz
        by bmartz
         
        Started by funk10101, Today, 12:02 AM
        0 responses
        7 views
        0 likes
        Last Post funk10101  
        Working...
        X