Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Jpg Images are randomly renamed to name.tmp

Community Beginner ,
Sep 04, 2024 Sep 04, 2024

Hello,

I use  Lightroom Classic under Windows 11. All my images are located on a Synology Diskstation with DSM 7.1.1. The image Folder is mounted as a networkdrive via SMB with a user that has read and write permissions on that share and all folders within it. 

Until now everything worked well. I don't now exactly when it started but the day before tomorrow i realized, that Lightroom renames jpg files to name.tmp and does not recognize the images anymore. I have 10000 files renamed that way now! 😞

I can reproduce this behavior like that:

 

* rename the images to name.jpg

* sync folder ib Lightroom -> images are back again

* save metadata

 

When save metatadate I sometimes get the message that there was an error saving the metadata. Errorcode is 29. "Unknown File I/O errror" is the messge translated from German.

 

Afterwards the images are renamed to *.tmp again. 

 

Can someone tell me, what happened? I didn't change permissions or something nlike that. 

Only Lightroom and the Nas wher updated frequently. Lightroom recently but not before I saw this problem.

 

Thanks for helping me.

 

TOPICS
Windows
566
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 06, 2024 Sep 06, 2024

I just renamed the images with a counter before the name and the problem disapeared! Strange!
Perharps i was caused by the fact, that LR recognized them as douplicate because the where exported from CR2 files, that are stored in a compltely different storage location? 

Translate
LEGEND ,
Sep 04, 2024 Sep 04, 2024

@Marcel25258739v697: "When save metatadate I sometimes get the message that there was an error saving the metadata. Errorcode is 29. "Unknown File I/O errror" is the messge translated from German."

 

It sounds like there's some kind of disagreement between LR and the NAS over file permissions. When LR saves metadata to a JPEG, instead of modifying the existing file, it often writes a temporary file containing the new version of the JPEG and then renames that file on top of the existing file. From your description, it sounds like the rename is failing.

 

It also sounds like you have enabled the option Catalog Settings > Metadata > Automatically Write Changes Into XMP.  I recommend disabling that immediately until you resolve the problem.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 05, 2024 Sep 05, 2024

Hello @johnrellis,

thanks for your quick reply!

In my case there are only jpgs. For those images there are no RAW files. 

What I do not understand is, why LR touches the original files at all. Perhaps because it handles jpgs other than raw files when they ar stand alone images?

For raw files I have no such problems. The xmp files could be written without problems.

But for jpgs there are no xmp files and the jpg itself is overridden to *.jpg.tmp.

Hence raw and jpg images live in the same folder structure with the same permission, I'm not sure if permissions are the problem.

 

For some jpg images there are name.jpg and name.jpg.tmp at the same time. So it seems that this ist the correct way. And the *.jpg.tmp was not deleted yet. 

In the other cases it seems to be a problem of renaming back the tempfile to the original one. 

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 05, 2024 Sep 05, 2024

One more thing I realised is, that during the meta write process there are also name.swp files in the folder. But only for a short time.

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 05, 2024 Sep 05, 2024

And one more thing is, that for older jpg images there are also name.tmp files without jpg in the ending (many of them!!!). For those images everything seems to be fine ande the corresponding name.jpg file is exists in the same folder.
It seems as if LR startet to rename name.jpg to name.jpg.tmp instead of name.tmp for some images.

However the problem doesnot apear on ever jpg on every meta save. 
Some files in the same folder are renamed wrong / overridden some are not. The have identical permissions. 



Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 05, 2024 Sep 05, 2024

... and it seems to happen randomly for the same images.  
I suspect it to happen when many files are processed by LR or when LR is busy determining adresses, cordinates or other batchstuff. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 05, 2024 Sep 05, 2024

@Marcel25258739v697: "In my case there are only jpgs. For those images there are no RAW files. What I do not understand is, why LR touches the original files at all."

 

Have you enabled the setting Catalog Settings > Metadata > Automatically Write Changes Into XMP?  That setting is confusingly named. When enabled, it writes any changes to a photo's metadata (including Develop settings) back into the photo's file (if it's not a proprietary raw file) or a .xmp sidecar file (if it's a proprietary raw).  

 

So with that setting enabled, LR will be writing any changes to metadata back into the JPEG files.  As I recommended above, disable that setting immediately and see if the misbehavior stops.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 06, 2024 Sep 06, 2024

@johnrellis THX!
Yes I deactivated this setting immediately but the files are still renamed. 
I also have the option "Include develop settings in metadata inside JPGs.." deactivated. 
But the problem resists. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 06, 2024 Sep 06, 2024
LATEST

I just renamed the images with a counter before the name and the problem disapeared! Strange!
Perharps i was caused by the fact, that LR recognized them as douplicate because the where exported from CR2 files, that are stored in a compltely different storage location? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines