Page 1 of 1

[RESOLVED] Rules lost after Yosemite upgrade

PostPosted: 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

Re: Rules lost after Yosemite upgrade

PostPosted: 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.

Re: Rules lost after Yosemite upgrade

PostPosted: Wed Nov 12, 2014 4:21 pm
by Mikey666
@Mr_Noodle, it worked like a charm! Thanks alot.

Re: [RESOLVED] Rules lost after Yosemite upgrade

PostPosted: Tue Dec 16, 2014 7:34 am
by Zettt
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.

Re: [RESOLVED] Rules lost after Yosemite upgrade

PostPosted: Tue Dec 16, 2014 2:24 pm
by Mr_Noodle
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.

Re: [RESOLVED] Rules lost after Yosemite upgrade

PostPosted: 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?

Re: [RESOLVED] Rules lost after Yosemite upgrade

PostPosted: Wed Dec 17, 2014 3:56 pm
by Mr_Noodle
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.

Re: [RESOLVED] Rules lost after Yosemite upgrade

PostPosted: Sun Dec 28, 2014 6:07 pm
by slessard
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