[RESOLVED] Rules lost after Yosemite upgrade

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

[RESOLVED] Rules lost after Yosemite upgrade Tue Nov 11, 2014 2:25 pm • by Mikey666
Finally upgraded to OS X 10.10 Yosemite by restoring from TimeMachine. Most things worked like a charm, but I just realized my nice Hazel rules are gone and I am faced with an empty rule set :o

I am sure this is easily fixed... if you know exactly what to restore from the backups. Anyone know how to do it?

Thank you in advance
/Mike
Last edited by Mikey666 on Wed Nov 12, 2014 4:21 pm, edited 1 time in total.
Mikey666
 
Posts: 5
Joined: Mon Apr 01, 2013 3:06 pm

Re: Rules lost after Yosemite upgrade Tue Nov 11, 2014 3:45 pm • by Mr_Noodle
To restore, do the following:
  • Quit System Preferences.
  • Launch Activity Monitor and find HazelHelper. Quit the process.
  • Find cfprefsd. Kill any that you can (some may be for other accounts and you can't kill them).
  • Restore the following:
  • In your Library/Application Support folder, restore the Hazel folder
  • In your Library/Preferences folder, restore the files starting with com.noodlesoft.
  • Reboot.

If things don't show up after that then report back.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Rules lost after Yosemite upgrade Wed Nov 12, 2014 4:21 pm • by Mikey666
@Mr_Noodle, it worked like a charm! Thanks alot.
Mikey666
 
Posts: 5
Joined: Mon Apr 01, 2013 3:06 pm

Sorry that I re-open this issue. OS X decided recently to delete my Application Support folder. I don't know why, but it's gone. I was able to restore the Application Support folder, but I can't get Hazel to work again. The rules are gone in the interface, and I don't know what to do. I followed the instructions mentioned here, but had no luck so far. Help appreciated.
Zettt
Zettt
 
Posts: 30
Joined: Wed Aug 29, 2007 8:50 am

Recent versions of OS X has made this a pain. Before restoring the files, kill any "cfprefsd" processes being run under your username. After that, restore the files and then see if it works then. The issues is that cfprefsd caches preferences now so if you replace the files out from underneath it, it won't see the new settings and may even overwrite them with whatever cached versions it has.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: [RESOLVED] Rules lost after Yosemite upgrade Wed Dec 17, 2014 12:27 pm • by Zettt
Sadly no luck. The cfpresd always comes back. I tried closing it multiple times, hoping I would be able to copy the files over before it shows up again. I rebooted a couple of times, but Hazel still doesn't show the old rules. It still has the folders though.

Because I figured the daemon only spawns when logged in from the GUI, I created a separate user and logged into it. I opened Terminal and logged into my normal user. I watched Activity Monitor and it only showed cfprefsd for my second user. I thought I had it at that point, and copied the files once again to the Preferences folder. But after I logged back in, the rules are still missing.

Anything else I could try?
Zettt
Zettt
 
Posts: 30
Joined: Wed Aug 29, 2007 8:50 am

Are you sure the settings files you are using were from a good state? For the files under the Application Support folder, do you see .hazelrules files? If so, you can also try importing those into Hazel directly and see if the rules show up then.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Zettt wrote:Sadly no luck. The cfpresd always comes back.


To stop cfprefsd from coming back until reboot run this command in Terminal.app. NOTE: there is no need to run this command with `sudo`

Code: Select all
launchctl remove com.apple.cfprefsd.xpc.agent
slessard
 
Posts: 1
Joined: Sun Dec 28, 2014 4:23 pm


Return to Support