You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't export the whole photo library and many other problems

Hello Everyone! My first post here.

I had used iPhoto before I've started using Photos, which always had some problems with exporting, maybe because of the amount of photos and videos stored in the library (the .photoslibrary package is 84GB - 13575 files in the Photos app). Got many problems trying to export my whole library.

  • When I export all the originals from the inside of the app, it keeps crashing, even with a brand new M1 MBPro
  • So then, I export 2000 originals at a time. No crashing but for every 2000, about 100 won't be exported due to Cocoa Error -1 or Unknown Error (4) . Those incriminated file aren't corrupted: I can find them in the Library, editing etc.
  • So I try to copy the original from the package: when I open the package using the Finder, the originals folder contains 131181 files (where are the other 384?).
  • If I export from the package, will I lose every metadata like date, time ecc.


Here are my question:

  1. How do I safely export my whole library?
  2. Where are stored the masters? Can I keep the metadata?
  3. Is there any other app I can use to safely manage my Photos library? Maybe the app itself is the problem.


Thanks a lot,

Vincenzo, from Italy.

MacBook Pro 13″, macOS 11.0

Posted on Dec 17, 2020 3:02 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 20, 2020 3:30 AM

Hello Russ!

Thanks for your help.

Power Photos was ok. It helped me in finding many duplicates, but no chances to reveal in finder any files in my library: as you said, for any photos, the reveal in finder option was greyed out.

Either DeltaWalker and Chronosync keeps crashing once opened in my Apple Silicon M1 :/ I tried many similar software with no result.

How it ended:

  • I've double backed-up my Photo Library and its originals folder.
  • The originals file have been moved into a new library. The unexportable files have been moved too and now I can easily export them from the new library: their file name is strange (before, it was IMG_1590, now FAVC9D-DEIRF-ERJNI etc.) but metadata, time and date are safe!
  • I still don't know if and how many photos are missing: I only know that in Photos are numbered about 13thousands photos but the masters are about 12thousand. My guess is that no photo is missing: the library file system was somehow corrupted, but photos are safe.
  • My experience with Photos will end AS SOON AS POSSIBILE. Maybe, I'll start use any other photo manger which "don't trap" photos into its file system, but it just manages and sorts the master files.


Thanks again for you help,

Vincenzo.

Similar questions

5 replies
Question marked as Top-ranking reply

Dec 20, 2020 3:30 AM in response to Russ New Boy

Hello Russ!

Thanks for your help.

Power Photos was ok. It helped me in finding many duplicates, but no chances to reveal in finder any files in my library: as you said, for any photos, the reveal in finder option was greyed out.

Either DeltaWalker and Chronosync keeps crashing once opened in my Apple Silicon M1 :/ I tried many similar software with no result.

How it ended:

  • I've double backed-up my Photo Library and its originals folder.
  • The originals file have been moved into a new library. The unexportable files have been moved too and now I can easily export them from the new library: their file name is strange (before, it was IMG_1590, now FAVC9D-DEIRF-ERJNI etc.) but metadata, time and date are safe!
  • I still don't know if and how many photos are missing: I only know that in Photos are numbered about 13thousands photos but the masters are about 12thousand. My guess is that no photo is missing: the library file system was somehow corrupted, but photos are safe.
  • My experience with Photos will end AS SOON AS POSSIBILE. Maybe, I'll start use any other photo manger which "don't trap" photos into its file system, but it just manages and sorts the master files.


Thanks again for you help,

Vincenzo.

Dec 17, 2020 2:47 PM in response to vincenzojrs

Hi Vincenzo,


Welcome to the forum. You are doing many of the right things by trying to export your library in batches of 2,000. I will try to answer some of your questions directly. A few general comments first.


  • Do you use iCloud Photos, and if so, did all of the photo upload/sync successfully?
  • What is the reason for wishing to export the entire library, is this to maintain a back up of your photos?
  • The error you see on exporting, is it the same whether you export the unmodified original or the edited version?
  • Have you tried repairing the library? This should be done with care as it can create more problems than it solves. This article explains more https://discussions.apple.com/docs/DOC-250002264


  • You say the originals folder may be missing 384 files. Its possible that the library has become corrupted at some point and you may have the edited version in the library but not the original. I had some instances where I had an edited photo but I couldn't revert to the original. Have you tried exporting the entire library in unmodified form and edited form and comparing the results.


The new version of Photos uses a method of file naming that makes it hard to locate the files by examine the folder structure. A very useful utility is Power Photos by Fat Cat software. If you download this application and right click on your photos it will allow you to find where the original and edited photos are within the file structure of Finder.


You asked if the app is the problem? Its possible but unlikely. The only way to reinstall the application is by reinstalling the OS. However, if you are using a new Mac then the OS will be freshly installed.


Another possible cause, particularly if some of your photos are quite old, is that some of the photos are in a format that is not supported. This article explains more https://discussions.apple.com/docs/DOC-250002727


Dec 17, 2020 3:35 PM in response to Russ New Boy

Thanks Russ!

  1. Never used iCloud
  2. I'd like to create a backup with master files and would like to share someI' photos with my friends
  3. The unexportable photos are shoot either with iPhone, Sony A7XX or Nikon D7200 .jpeg file. When I try to export the non edited original, the error is Unknown Error (4). When I try to export the same photo, png version, the error is Cocoa Error -1. One of the photos which are unexportable are shoot last summer, iPhone 7.
  4. I've never repaired the library
  5. Tried to export the last 6780 photos. If I try to export the original non edited photos, 855 photos/vidoes won't be exported. Otherwise, 684 files won't be exported.
  6. I can easily copy and paste files in finder, from the library package...but I just can't get why 384 are missing.


Just trying power photos. I'll let you know.

Thanks sir

Dec 18, 2020 4:06 PM in response to vincenzojrs

Hi Vincenzo,


How did you get on with Power Photos?


  1. OK.
  2. I would highly recommend keeping a back up copy of the library in the future as you will then have a backup copy of your original and edited photos as well as any other metadata you add to your photos. Time Machine is good for this as it keeps multiple copies over a period of time.it will containts worth keeping a back upThe reason for my question about iCloud Photos.
  3. I'm not aware that Apple has released a list of error codes and their meaning. For a sample of the items which give an error. Can you try finding them in Power Photos and right clicking on them - you should be given the option to open both the original and edited version in Finder. If this greyed out then it means the file is missing and is probably the cause of the export error - you did mention that you think you have 384 photos missing and these could be linked. Within Preferences has the box 'Copy items to library' always been ticked? If you create a smart album with the rule 'Photo is referenced' this will show any photos where the Photos.app keeps a link to the file rather than maintaining a copy of the photo within the library.
  4. It might be worth making a copy of the library. Hold down Alt and CMD, then click on the library and select repair library. Once it has finished repairing the library, which can take some time, try exporting all of your photos as above and see if you get any differences in the result.
  5. Its interesting you get different results. It might be worth comparing the contents of the two export folders using a program like Deltawalker or Chronosync which will highlight any differences. It could be that the same 684 photos can't be exported in either original or edited form. OR it could be that some photo will only allow you to export the original and others only the edited version. If so, then you can explore the differences further. You say that 384 files are missing, don't forget that when you select Get Info in Finder it will count not only the files themselves, but also the folders. So the number of missing files could be higher (sorry don't want to worry you) and may be closer to the 684 photos you couldn't export.


Just following on from no. 3, for some of the items that can't be exported, try making a small edit to the photo, e.g. crop it slightly and then export again. It sounds odd, but I tried duplicating a number of photos within the library a while back and many of them failed. I made a small edit to them, tried to duplicate them again and it worked fine. It sounds odd I know, but its almost as if making the edit corrected a small corruption in the file and allowed it to be duplicated.


Good luck.

Dec 24, 2020 2:15 AM in response to vincenzojrs

Hi Vincenzo,


You're welcome, hope the comments were of some help.


Its strange that Deltawalker and Chronosync didn't work. Deltawalker is not updated very often but I thought Chronosync was updated quite regularly.


Re the filenames, yes this a recent change in the way Photos handles the photos and it makes it much harder to try and navigate the folders and find a photo, hence suggestion to use Power Photos


If you are sure it is just the library system that is corrupt. You could always create a new, empty library and merge this with the old library using Power Photos, it is just a random thought, but in forcing the merger of the 2 libraries Power Photos may help in rebuilding the library structure and index - can't hurt to try I guess


I have a bit of a love/hate relationship with Photos, when it is working well, it is simple to use and powerful enough and I like using it. It can handle things like live photos and the various portrait lighting modes from the iPhone. However, it does take a lot more effort to actually maintain the program, handle the workarounds and it is not as resilient as other Apple software. Just yesterday, Photos kept crashing every time I opened a particular photo. The photo was 6 months old, had been taken with iPhone and had been previously edited with Photos. I deleted the photo, recovered it, and now I can edit it fine with Photos - very strange. Then again Photos is a free piece of software, so can't complain too much. As well as Photos I also use Lightroom for all my SLR photos. This is clearly in a different league and far more powerful and although all programs have their bugs, I have found it to be extremely stable, but you have to pay £100 or so per year. There are many other 'paid for' applications out there, so don't feel constrained to one application.

Can't export the whole photo library and many other problems

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.