Tag: iCloud Drive

  • iCloud Drive (again)

    iCloud Drive (again)

    I just migrated my MacBook Pro (2016) to a M1 Mac mini. For different reasons the MacBook Pro isn’t suitable anymore for some of my needs, but it’s still a good machine for writing, traveling and using around the house. So I decided to buy a Mac mini as a replacement for my App Development, Podcasting and other desk centric work. As Apple didn’t announce a M2 Mac mini yet and I wasn’t willing to pay the original price for a computer that has been introduced two years ago, I decided to buy a used one. The options there were limited. I got a base 8GB/256GB model for around 500€. As it’s a desktop computer and won’t be moved around, it’s not a big deal to get the low-storage-model and add an external drive to it. I researched the best options to move the home directory to an external SSD, and luckily macOS offers this as a quite hidden, but official feature. Deep in the User options of the System Preferences, there is the option to select a different location for the home directory.

    As I was migrating from a 512GB MacBook Pro, I already removed a lot of clutter that had been accumulated in the last 5 1/2 years and was able to migrate the data to the new computer via thunderbolt. After installing a 2TB SSD in an external enclosure, I wanted to move the data from the existing home directory to the new SSD in order to change the home directory location once everything was finished. Unfortunately that’s where the problems began.

    The transfer of the 200ish GB started fine but at one point macOS decided it had to stop, because a file that was supposed to be copied already existed. The error message says “The operation can’t be completed because an item with the name […] already exists.”

    Error message when copying files

    I found, by searching for the file name, that it was part of my Photos library. As this library is located on iCloud, I decided to delete it from the Mac and just redownload everything once the remaining files were moved. Little did I know that Photos weren’t the only files that made problems. Everytime I reinitiated the transfer, a new file would result in the same error message. Some files were hidden files, some were normal user accessible files. I googled for the error message and couldn’t find a satisfying solution. But I remembered that I already had some issues with files when using iCloud Drive. So I logged out of iCloud, restarted the transfer of the files and it worked flawlessly.

    After the files have been transferred, I changed the home directory as shown before. The system rebooted. I turned iCloud back on, checked that everything was working fine and deleted the old home directory form the Mac. It might be a good idea to create a second admin account that’s not been used but has its home directory on the internal SSD, just in case the external drive breaks and your user is no longer properly working as the home directory is no longer available. And backup your data. If you have it backed up, and the external SSD fails, you will still be able to fix it.

  • iCloud is losing files

    I was programming a new app, when I wanted to reuse some code snipped from one of my old apps. I used the recently opened projects dialog in Xcode, but Xcode failed to open the project and also removed all other projects from that dialog. As I’m storing my Xcode Projects on my iCloud Drive as a first backup (in case my Mac breaks), I headed over to the Finder and found that not only the xcodeproj Container, but also a lot of swift files were missing. I headed over to iCloud.com where deleted files from the past 30 days can be restored. But they were not there either.

    Luckily I do run Time Machine (and have most of my projects on GitHub), so I connected my external drive to the MacBook and opened time machine.

    As you can see in the TimeMachine view, at some time between end of May and beginning of June a lot of files where lost. I was wondering if I accidentally deleted those files. So I’ve checked other projects. The same picture. A lot of files where missing, some still available. Same for other iCloud Drive data, like my Numbers documents.

    Files missing in several locations without any system behind, can’t be explained with accidentally deleted. Somehow iCloud is dropping files which can’t be restored through iCloud.com.

    iCloud.com restore files view

    iCloud.com offers only 7 recently deleted files, even though more are missing. As seen from before, the files disappeared somehow in the last 14 days, so they should be visible in the last 30 days of deleted files, if they have been deleted manually.

    If someone else has the same issue, I would be happy to hear about it.

    This is, after Apple removing my desktop background all the time, the second big issue I have with data saved in iCloud.