25 Replies Latest reply: Apr 17, 2012 6:33 PM by Thronsen RSS

    Any way to change where LR stores Temp App Data, or getting it to clean up after itself?

    Thronsen Community Member

      Hi there-

       

      I currently have LR installed on an SSD, along with my OS. Like many SSDs, its not as large as its HDD counterparts, and on mine I generally only have 5-10gb free.

       

      When I use LR to export pictures, it seems to store the pictures in Users/user/App Data/Local/Temp. But even after they are uploaded, it keeps them there. So if I am uploading a lot of photos, eventually my drive will fill up and LR will stop exporting and give me an error message. I even tried to exit and restart LR, but the photos remained, and I had to delete them manually.

       

      Is there any way to have LR but those temp files somewhere else, like on one of my HDDs where I have more space? Or get it to delete those temp files when it is done using them, which I suspect would be after it had uploaded them.

       

      Thanks,

        • 1. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
          Lee Jay Community Member

          I don't think export stores them anywhere but where you are exporting to.  I export constantly and have never noticed my SSD filling up.

          • 2. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
            Thronsen Community Member

            When I have done 5 or 20 photos, I havent noticed it either, though I never looked. But I was uploading 300, it would get up to around 50 and LR would tell me my C drive was full. And sure enough, there they all were, in the location I posted above.

             

            The first time it happened, I exited LR, manually deleted the files, then started LR and it worked fine (at least until it got to 50 or so photos again).

             

            The second time it happened and I deleted them while LR was running, then tried to continue. LR gave me another error message, saying it was missing files and giving me the same location. So its definitely doing it.

            • 3. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
              RikkFlohr Community Member

              Items should only get stored in that directory if, for some reason, your export aborts prematurely as you are seeing.

               

              I am guessing the problem is the amount of free space on your SSD drive. 5-10GB is a very small space. Lightroom can be finicky about remaining space. Until all those files are saved as finished product, the rendered in-process files occupy temp space.

              • 4. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                Thronsen Community Member

                Not sure what is meant by 'stored' but they are certainly there as the export is being processed. Even long after individual photos have been uploaded. And when you need to do a batch upload, stopping every few dozen photos to restart LR is not very efficient (among other things, you cant do it overnight).

                 

                And Im not exporting to a drive, Im exporting to Smugmug. LR is picking the C drive because thats where my OS is (I suspect, or maybe because thats where LR is).

                • 5. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                  RikkFlohr Community Member

                  I routinely send out images in groups of 50-300 and never see this. The only time Lightroom leaves a file in the Temp directory is if something bad happens and an abort occurs.  Your speed and efficiency is likely related to your lack of free space on your OS drive. When space gets tight, competing for resources grinds you to a halt.  Do you have your ACR Cache located on your SSD also? That is movable to another location and might free up some space.

                  • 6. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                    MikeKPhoto Community Member

                    I am seeing the same thing. Exporting a single image and a low res jpeg is dropped in this directory, happens on a successful export of a single image. It is a small file averaging 16k but that can add up over time.

                     

                    By the way, lots of other applications seem to use this directory for dumping all sorts of stuff from imstalls etc.

                    • 7. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                      JerryGerber Community Member

                      Wow! With LR not open, I find over 6GB of data in over 300 folders in that Temp folder on my Win 7 system!  Only some have names that indicate they are LR files.  Many folders have cryptic names (groups of numbers/letters separated by dashes.  Many of those are empty.  Some folder names indicate they are Flash or Acrobat related.

                       

                      Thanks for your post, without which I would not have looked.

                       

                      Is it safe to just delete all the files and folders within that Temp folder??

                       

                      Jerry

                      • 8. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                        b_gossweiler Community Member

                        JerryGerber wrote:

                         

                        Is it safe to just delete all the files and folders within that Temp folder??

                         

                        Jerry

                        Yes, I clear %temp% on each shut-down of my system.

                         

                        Beat

                        • 9. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                          b_gossweiler Community Member

                          If %temp% is used by LR or not depends on the operations you perform and the available memory to LR.

                           

                          Beat

                          • 10. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                            John Blaustein Community Member

                            Hi Beat,

                             

                            How do you do that on Windows 7 Home Premium?  Where is the %temp% folder, and do you have an automatic way to clear it?

                             

                            Thanks!

                             

                            John

                             

                             

                            b_gossweiler wrote:

                             

                            Yes, I clear %temp% on each shut-down of my system.

                             

                            Beat

                            • 11. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                              b_gossweiler Community Member

                              John,

                               

                              When you enter %temp% into the search box of the start menu, an explorer window will open showing the temp folder of your system (by default "C:\Users\youruser\AppData\Local\Temp").

                               

                              No, I don't have an automatic way to clear it because I want to have control over it, but you could run a script at shutdown containing a script with the following commands:

                               

                              cd C:\Users\%username%\AppData\Local
                              rmdir /S /Q Temp
                              

                               

                              See here on how to execute a script at shutdown.

                               

                              Beat

                              • 12. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                Lee Jay Community Member

                                Thronsen wrote:

                                 

                                When I have done 5 or 20 photos, I havent noticed it either, though I never looked. But I was uploading 300, it would get up to around 50 and LR would tell me my C drive was full. And sure enough, there they all were, in the location I posted above.

                                 

                                The first time it happened, I exited LR, manually deleted the files, then started LR and it worked fine (at least until it got to 50 or so photos again).

                                 

                                The second time it happened and I deleted them while LR was running, then tried to continue. LR gave me another error message, saying it was missing files and giving me the same location. So its definitely doing it.

                                 

                                I recently did an 8,000 image export with no such issues.

                                • 13. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                  John Blaustein Community Member

                                  Thank you, Beat!

                                   

                                  The contents of my temp folder take up very little space, so I see no reason to clear it.  I'll check from time to time and see if that changes.

                                   

                                  John

                                   

                                   

                                   

                                  b_gossweiler wrote:

                                   

                                  JerryGerber wrote:

                                   

                                  Is it safe to just delete all the files and folders within that Temp folder??

                                   

                                  Jerry

                                  Yes, I clear %temp% on each shut-down of my system.

                                   

                                  Beat

                                  • 14. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                    b_gossweiler Community Member

                                    Lee Jay wrote:

                                     

                                    I recently did an 8,000 image export with no such issues.

                                    LR's use of %temp% depends on what you are doing in LR and how much memory LR has left to use (and therefore also bugs in LR related to not freeing memory).

                                     

                                    Example:

                                    Go to the import dialog, selecting a folder with many Raw images. Switch to Loupe view (still within Import) and scroll through the Raws using the arrow keys. After about 25 images LR will start to build a file called cr_sdk_nnnnnnnn.tmp in your %temp% directory, which can reach many GB after a while.

                                     

                                    I've also seen *.tmp files being built during export, especially when using the "Limit File Size" option.

                                     

                                    Beat

                                    • 15. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                      Thronsen Community Member

                                      Not sure why you wouldnt see anything. Did you check while you were doing the upload? How much free space do you have on your OS HDD?

                                       

                                      Other possibility. Were you uploading something other then originals? My problem has been occuring when as part of the upload, LR was converting RAW to .jpgs.

                                       

                                      Its definitely LR. The files have the same filenames as the photos Im trying to upload. And as I said, when I deleted the folder with LR running, LR produced an error citing that deleted folder.

                                       

                                      This is a pretty big pain, as it means I cant do overnight uploads of large collections.

                                      • 16. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                        b_gossweiler Community Member

                                        Not sure if this has been answered before:

                                        • Please indicate your system specs
                                        • What version of LR
                                        • Please provide a screen shot of your export dialog
                                        • What kind of originals are you exporting (format, camera, size)

                                         

                                        Beat

                                        • 17. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                          Thronsen Community Member

                                          Apologies, probably should have listed all that information from the start.

                                           

                                          LR is version 4.0, trial, installed on the C drive with the OS, which is Win 7 SP1 64-bit home.

                                           

                                          System is i7- Q720, 8gb ram. Drive C is an 80 gb Intel SSD drive. There is a 500gb internal HDD where the LR Cat is, and a 1tb external HDD where the the RAW files are held. The C drive has around 5gb free, the internal HDD has 205gb free, the external has around 192k free.

                                           

                                          It will take me a couple of hours to get screenshots of the exact errors, but basically the first one is 'There is only 5mb free space on Drive C, please free up at least 20mb to continue'. If I delete the files in the Temp location while LR is on, I get 'Cannot continue missing file from' the Temp location.

                                           

                                          The RAW files are D90 NEFs that I am archiving, but I can test NEFs from the D3s, D7000 or D800 if it matters. I am uploading to Smugmug, and as part of that process LR is converting them into 90% jpgs.

                                           

                                          Hope that helps, Ill upload the screenshots when I have them. Thanks.

                                          • 18. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                            b_gossweiler Community Member

                                            Do you also have the problem when doing a "normal" export?

                                            • 19. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                              Thronsen Community Member

                                              By 'normal' export, do you mean one where I export the files as originals, or one where I am exporting to the HDD? Im trying both now and will post the results.

                                               

                                              Here are the error message btw. The initial one:

                                               

                                              LR error 1.JPG

                                              And the one that happens after I delete the Temp file at the above location:

                                               

                                              LR Error 2.JPG

                                              • 20. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                Thronsen Community Member

                                                Ok I tried 2 tests where I was exporting originals/jpg converstions to the HDD. The C drive wasnt touched.

                                                 

                                                I then tried to export original jpgs in original form to Smugmug (Smugmug doesnt allow RAW). The same problem occured, the C drive filled up very quickly.

                                                 

                                                In fact, far more quickly then the amount of photos that had been uploaded. These pictures were around 2mb in their original state. By the time LR had uploaded 5 of them, LR had taken close to 4 GB worth of space on my C drive Temp file.

                                                 

                                                Now a question might be, is this a problem with LR uploading in general, or something specific to the Smugmug plugin?

                                                • 21. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                  Dorin Nicolaescu-Musteață Community Member

                                                  When you mean export to SmugMug, you should say publish to SmugMug. That's

                                                  why everybody is confused here.

                                                   

                                                  Regarding your problem, you probably have only two options:

                                                  1. Buy a bigger SSD.

                                                  2. Change your Temp folder location. Google for instructions.

                                                  • 22. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                    b_gossweiler Community Member

                                                    Thronsen wrote:

                                                     

                                                    In fact, far more quickly then the amount of photos that had been uploaded. These pictures were around 2mb in their original state. By the time LR had uploaded 5 of them, LR had taken close to 4 GB worth of space on my C drive Temp file.

                                                     

                                                    Now a question might be, is this a problem with LR uploading in general, or something specific to the Smugmug plugin?

                                                    OK, I was able to reproduce what you're seeing using Flickr (before I thought you were Exporting, vs. Publishing). This is what's happening:

                                                     

                                                    Before LR starts uploading images to SmugMug, it renders all selected images into directory %TMP%, then it starts uploading and deletes each JPEG when successfully uploaded. To me, this seems like designed behaviour.

                                                     

                                                    As Dorin mentioned, you have 2 options:

                                                    • Make sure you have as much free space on your system drive as needed for rendered copies of all the images you want to upload in one publish action
                                                    • Move the %TMP% directory to a drive with more space, see here for instructions. (LR is using the USER variable TMP, not TEMP, so you need to change TMP).

                                                     

                                                    Beat

                                                    • 23. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                      JerryGerber Community Member

                                                      b_gossweiler wrote:

                                                       

                                                      JerryGerber wrote:

                                                       

                                                      Is it safe to just delete all the files and folders within that Temp folder??

                                                       

                                                      Jerry

                                                       

                                                      Yes, I clear %temp% on each shut-down of my system.

                                                       

                                                      Beat

                                                       

                                                       

                                                      Thanks Beat.

                                                       

                                                      I was surprised that %Temp% was the same as C:\Users\username\AppData\Local\Temp. I am unfamiliar with the use of the "%" sign before and after a folder name and don't know what that does. 

                                                       

                                                      Does anyone know a reference where I can read up on that?

                                                       

                                                      In any case, it is an easy way to access that Temp folder, and I now delete everything that I can from Temp on closing, (FXSAPIDebugLogFile.txt is always "in use by Explorer" and will not delete.)

                                                       

                                                      I noticed that immediately following boot up (before opening LR4.1) , that Temp folder acquires an empty folder, WPDNSE, and four files:  AdobeArm.log, FXSAPIDebugLogFile.txt, logger.log, and LuUpdater.log.  Combined these occupy only a couple of MB, so are not the magnitude of  problem this thread is about.  But by the end of any session, that folder has 5-6 GB of stuff, which I am now deleting. 

                                                      Several weeks ago MS Essentials found a JAVA exploit on my computer, which (it said) was removed, but I remain a bit nervous.

                                                       

                                                      Does anyone see anything suspicious in that bunch?

                                                       

                                                       

                                                      My LR 4.1 is working pretty well right now, except for occasional 10-second delays opening the Develop module. But, it is the best Adobe has right now, and it is only a "release candidate." I will live with it until something better comes along.

                                                       

                                                      My system includes LR 4.1 and 3.6, running in Win 7 on an I7 with 8GB RAM.

                                                       

                                                      This has been an extremely informative and helpful thread.  Thanks so much to all contributors. 

                                                       

                                                       

                                                      Jerry      

                                                      • 24. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                        b_gossweiler Community Member

                                                        Jerry,

                                                        JerryGerber wrote:

                                                         

                                                         

                                                        I was surprised that %Temp% was the same as C:\Users\username\AppData\Local\Temp. I am unfamiliar with the use of the "%" sign before and after a folder name and don't know what that does. 

                                                         

                                                        Does anyone know a reference where I can read up on that?

                                                        See section "Using environment variables with Cmd.exe" in this Windows TechNet Article. The article is for WinXP, but the same applies to Win7.

                                                         

                                                         

                                                        In any case, it is an easy way to access that Temp folder, and I now delete everything that I can from Temp on closing, (FXSAPIDebugLogFile.txt is always "in use by Explorer" and will not delete.)

                                                         

                                                        I noticed that immediately following boot up (before opening LR4.1) , that Temp folder acquires an empty folder, WPDNSE, and four files:  AdobeArm.log, FXSAPIDebugLogFile.txt, logger.log, and LuUpdater.log.  Combined these occupy only a couple of MB, so are not the magnitude of  problem this thread is about.  But by the end of any session, that folder has 5-6 GB of stuff, which I am now deleting. 

                                                        Several weeks ago MS Essentials found a JAVA exploit on my computer, which (it said) was removed, but I remain a bit nervous.

                                                         

                                                        Does anyone see anything suspicious in that bunch?

                                                        • WPDNSE is created by Windows Media Player -> nothing to worry about
                                                        • AdobeArm.log is a log file of the Adobe Reader Manager, the software checking for updates of Adobe Reader, Adobe Acrobat and related software -> nothing to worry about
                                                        • FXSAPIDebugLogFile.txt is a log file of Windows Fax and Scan -> nothing to worry about
                                                        • logger.log: don't know
                                                        • LuUpdater.log is created by Logitech Updater -> nothing to worry about

                                                         

                                                        In general, you shouldn't worry too much about what's stored in %temp%, since many applications use it to write information they need to keep temporarily.

                                                         

                                                        Beat

                                                        • 25. Re: Any way to change where LR stores Temp App Data, or getting it to clean up after itself?
                                                          Thronsen Community Member

                                                          Thanks Beat and Dorin. And apologies for the confusion, I just always think of anything leaving LR as 'exporting' but Ill use 'publishing' in the future.

                                                           

                                                          I switched the Temp drive to my HDD, which has much more space, and it seems to work fine. It does keep my HDD spinning (and vibrating my laptop) all the time, which isnt ideal, but it also saves write cycles on my SSD.

                                                           

                                                          I suppose one could make the arugment that LR should render and dispose of the photos to be published in a more timely fashion, but I imagine that would be well down the proirity list.

                                                           

                                                          Thanks again,