It seems you really must move it to ~/local or similar as the article points out. Moving to /usr/local.bak seems to still copy the files one by one into recovered items during the last stage of the installation.
Good to know that it could take hours. Upgrading to Yosemite on a Macbook Air (about a month old) and it's taking a few hours so far. Didn't check /usr/local but will just let it go for now.
Just a warning - after 6+ hours (not sure exactly as I went to sleep) my Yosemite install failed because the log buffer was full. I can't say for sure that this would not have happened if I hadn't left the log viewer open, but I would recommend closing the log window when you're not actively using it.
This time I only opened the log viewer briefly at one point during the upgrade, and again after several hours because it seemed to have hung again. I can't imagine I'm the only one who's affected by this issue. I'll report back when/if I find out how to fix it.
In the meantime I've restarted the process one more time. The laptop still boots straight into the Yosemite installer so I don't think the hard reboots have adversely affected the machine.
edit: It occurs to me that the longest I've waited has been 12 hours (my first attempt). I've now seen reports of 15 hour installs, perhaps I didn't wait long enough? Even if the log buffer is full, that wouldn't necessarily mean that install has outright failed... hmm
I had 32k files using up 8GB in /usr/local, and the time spent on "2 minutes remaining" was about 45 minutes. In retrospect, I'm happy that I didn't waste any time on special preparations.
One thing I learned is that the ⌘L log window blocks progression from restore to the next reboot; I lost about 15 minutes that way.
See my reply above. A more accurate count on a keyboard with working keys is 243185.
I'm starting to wonder whether the /usr/local-related delay is naturally about an hour, but vastly increased - sometimes catastrophically - by having the log window open. Just a theory.
I've gotten messages from people who didn't even know how to open the log viewer until hours into the process, so it's just a highly variable delay depending on individual circumstances.
Sorry, 32k was the result of `ls -lR /usr/local | wc -l` and then typing on a keyboard with a broken 4. To be much more precise, `find /usr/local -type f | wc -l` is 243185, while (including directories and links) `find /usr/local | wc -l` is 274709.
Not sure why the article hasn't considered this, but after moving /usr/local to another location and doing the Yosemite upgrade... you can always move the newly created Yosemite files/directories in /usr/local to your old local, rather than deleting them.
I've re-written the instructions a few times since I first posted it. Once it gets into conflicts and problems I can't cover everything, and I don't want to give a dozen commands for people to paste in and run for various scenarios and then screw people up more. I'll add a note to merge instead of replace, though, thanks!
Turned on cmd-L to see where it's at and I've got several pypy versions and MacTex in there, hundreds of gigs of files. Based on this new information which I so desperately wish apple made me aware of before running, I expect my install to take at least overnight. thanks apple for your consistently declining level of software quality!
I upgraded this morning. Estimates where way off. (Thanks for the CMD+L hint!) After a few hours, the Mac just reinstalled everything again. Waiting again for hours with "1 Minute" point. Worst upgrade experience with OSX ever.
Just a note: if your shell is set to something in `/usr/local` (e.g. `/usr/local/bin/zsh`), remember to set it back to `/bin/bash` before doing the move.
Yeah, I got caught by this so I was unable to open Terminal or iTerm. But using Terminal, I ran "Shell | Run Command...", entered "sudo chsh -s /bin/bash myuserid" and was then able to open a shell and move the local directory back.
Other than that, the upgrade was very smooth. Thanks for the help!
I wish that I had read this before upgrading. I have tons of stuff installed via Homebrew, and after two hours of "2 minutes remaining," and seeing in the logs that it was "restoring" stuff from /usr/local, I gave up and went to bed.
took me >24 hours without completing. I rebooted into the recovery partition, mounted the disk, moved aside the stuff in /usr/local and then re-installed. I dread to think how long it would have sat there burning crud into the LCD
Hi all. If you want to feel better about your worst upgrade experience, I should inform you that mine started : Saturday, October 18, 2014 at 19:00 (local time Greece) and at this time is still stucked in : "2 minutes remaining" :)
Thank you Apple. I think nobody will ever beat this time!!! Not even windows v100!!! I think I'll go for the Guiness Record...
38 comments
[ 6.1 ms ] story [ 116 ms ] threadhttps://twitter.com/kevinSuttle/status/513446291968651264 https://twitter.com/kevinSuttle/status/513447060499341313
sudo mv /usr/local ~/local
then merge it back in
ditto -V ~/local /usr/local
That way it should merge all the files from the backup into the new folder (and show you what it's doing)
Line 128,493 - INSTALLER LOG SHARED BUFFER IS FUL
This time I only opened the log viewer briefly at one point during the upgrade, and again after several hours because it seemed to have hung again. I can't imagine I'm the only one who's affected by this issue. I'll report back when/if I find out how to fix it.
In the meantime I've restarted the process one more time. The laptop still boots straight into the Yosemite installer so I don't think the hard reboots have adversely affected the machine.
edit: It occurs to me that the longest I've waited has been 12 hours (my first attempt). I've now seen reports of 15 hour installs, perhaps I didn't wait long enough? Even if the log buffer is full, that wouldn't necessarily mean that install has outright failed... hmm
Other than that, the upgrade was very smooth. Thanks for the help!
Thank you Apple. I think nobody will ever beat this time!!! Not even windows v100!!! I think I'll go for the Guiness Record...