News for hackers. Stuff that matters.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by digiguru69 on Friday October 17, 2014 @08:49AM (#8470643)
Isn't it safer to use the "ditto" command for the restore?

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)

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Friday October 17, 2014 @02:51PM (#8472706)
Thanks, I've updated the post in response to this suggestion from you & a few others. Might need to force refresh your browser to see it.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by lmousselimis on Tuesday October 21, 2014 @04:05PM (#8489562)
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...

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by zzzeek on Friday October 17, 2014 @02:08PM (#8472432)
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!
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by ivarv on Friday October 17, 2014 @12:36PM (#8471797)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Friday October 17, 2014 @01:43PM (#8472245)
All add a note about the log buffer, thanks.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by ivarv on Friday October 17, 2014 @04:11PM (#8473082)
Just happened again. The error is:

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.

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by bratsche on Friday October 17, 2014 @05:15PM (#8473422)
What did you do after this happened? Is it safe to restart the machine, or will that totally hose the install?
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by borked_borked on Friday October 17, 2014 @05:40PM (#8473521)
(Gah! HN's anti procrastination measures have kicked in so I can't login with my normal account... ) Anyway, I've got threads open at Apple ( https://discussions.apple.com/thread/6603910 ) and at MacRumours ( http://forums.macrumors.com/showthread.php?t=1803281 ) describing my situation - hopefully some kind soul will be able to help out.

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

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by rmetzler on Saturday October 18, 2014 @09:31AM (#8475284)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by falsedan on Friday October 17, 2014 @12:45PM (#8471856)
Upgrade on a late 2013 rMBP took about 18 minutes (2min faster than the estimate).

  $ find /usr/local | wc -l
  24825
  $ du -sh /usr/local
  644M
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by kevinSuttle on Thursday October 16, 2014 @11:36PM (#8469325)
If for some reason, you didn't move everything, you can see exactly what's taking so long. For me it was copying every NPM package on my machine.

https://twitter.com/kevinSuttle/status/513446291968651264 https://twitter.com/kevinSuttle/status/513447060499341313

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by podsnap on Friday October 17, 2014 @12:42PM (#8471838)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by podsnap on Saturday October 18, 2014 @09:16AM (#8475266)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by bratsche on Friday October 17, 2014 @05:17PM (#8473428)
45 minutes, another lost 15 minutes... wow, you're install went fast! Everyone else seems to be having multiple-hours long installs. :)
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by podsnap on Friday October 17, 2014 @07:02PM (#8473881)
It was multi-hour altogether, but the lying about two minutes remaining only took 45 minutes.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Friday October 17, 2014 @01:43PM (#8472244)
I'll add that note. People with problems tended have >100k or more files.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by podsnap on Saturday October 18, 2014 @09:27AM (#8475278)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Saturday October 18, 2014 @12:42PM (#8475693)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by reuven on Sunday October 19, 2014 @12:09AM (#8477187)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by cbsmith on Friday October 17, 2014 @12:58PM (#8471946)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Friday October 17, 2014 @01:42PM (#8472240)
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!
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by cbsmith on Saturday October 18, 2014 @02:37PM (#8475954)
Glad to help. Seems simple enough that people might think of it.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by danbee on Saturday October 18, 2014 @05:14PM (#8476336)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by geneticgrabbag on Saturday October 18, 2014 @07:28PM (#8476715)
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!

Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by brettporter on Friday October 17, 2014 @07:19AM (#8470346)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by cbsmith on Friday October 17, 2014 @12:59PM (#8471950)
What could possibly be driving this process though? What is the update actually trying to accomplish?
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by bhartzer on Friday October 17, 2014 @10:13AM (#8471048)
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.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by codesix on Friday October 17, 2014 @05:31AM (#8470101)
How large was your /usr/local folder before upgrading? Mine is currently at 12GB and I wonder whether I should try to reduce it even more.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by zwily on Friday October 17, 2014 @11:15AM (#8471367)
It's really about the number of files, not the size involved. If you have hundreds of thousands of files in there, you'll have a long wait.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by gothick on Friday October 17, 2014 @02:04AM (#8469624)
Well, at least I now know what the problem was! (I'm a Homebrew user, and I was at "About a minute remaining" for more than an hour...)
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by michae1m on Sunday October 19, 2014 @04:21PM (#8479483)
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
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by CWSpear13 on Thursday October 16, 2014 @11:30PM (#8469298)
Is there any stopping the update once it's started to move stuff around to get a better start...? Probably not, eh?
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by PatrickTulskie on Saturday October 18, 2014 @11:06AM (#8475456)
You can hit cmd+q from the screen where it's doing the install and it will quit out and let you reboot back into your OS.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by jlindley on Thursday October 16, 2014 @11:41PM (#8469330)
Not that I know of. If you find a way to do that I'll add it to the post.
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by holodigm on Saturday October 18, 2014 @03:46AM (#8474880)
Super handy Jim, big thanks. Full install completed in 40 mins with no issues with brewed packages. ;)
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by josefrichter on Friday October 17, 2014 @12:50PM (#8471898)
Srsly, how did Apple miss this problem? This affects good percentage of Mac users…
Re:Upgrading to Mac OS X 10.10 Yosemite as a Developer by robbyt on Friday October 17, 2014 @12:38AM (#8469442)
I just upgraded, and Macports had no problem. (Macports uses /opt)