After opening the CONSOLE today I discovered I too have the same problem on my Yosemite 10.10.1 iMac. The following two lines repeat perpetually every 10 seconds:
Dec 19 13:55:28 iMac com.apple.xpc.launchd[1] (com.apple.mdworker.bundles[14932]): Could not find uid associated with service: 0: Undefined error: 0 505
Dec 19 13:55:28 iMac com.apple.xpc.launchd[1] (com.apple.mdworker.bundles): Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
Since the stated Error is 505, I conjured up the following info in the Terminal:
iMac:var james$ sudo find . -user 505 -exec ls -ld {} \;
Password:
drwx------ 5 505 _spotlight 170 Nov 5 16:33 ./folders/zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.Spotlight/505
drwx------ 2 505 _spotlight 68 Nov 5 16:33 ./folders/zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.Spotlight/505/0
drwx------ 2 505 _spotlight 68 Nov 5 16:33 ./folders/zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.Spotlight/505/C
drwx------ 2 505 _spotlight 68 Nov 5 16:33 ./folders/zz/zyxvpxvq6csfxvn_n0000000000000/0/com.apple.Spotlight/505/T
iMac:var james$
What should I do at this point?
Not sure if it is related, but a few days ago I successfully tried some Terminal commands to keep my Computer from being renamed with "(2)" (and so on) at the end:
James-iMac:~ james$ sudo /usr/libexec/PlistBuddy -c 'Add :ProgramArguments: string --no-namechange' /System/Library/LaunchDaemons/com.apple.discoveryd.plist
Password:
James-iMac:~ james$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.discoveryd.plist &&
> sudo launchctl load /System/Library/LaunchDaemons/com.apple.discoveryd.plist
James-iMac:~ james$ sudo launchctl unload /System/Library/LaunchDaemons/com.apple.discoveryd.plist
James-iMac:~ james$ sudo launchctl load /System/Library/LaunchDaemons/com.apple.discoveryd.plist
James-iMac:~ james$ sudo discoveryutil mdnsflushcache
James-iMac:~ james$ sudo discoveryutil mdnsrestartregistrations
James-iMac:~ james$
Would the above Terminal commands have caused the Error 505 problem?
There's one more thing I should mention, since I don't know if it is related or not. Ever since updating to Yosemite (from Mavericks) I cannot connect my iMac to our office Time Capsule via simply by clicking it in the "Shared" section of the left sidebar in Finder windows. (It says "Not Connected".) But if I click the "Go" menu and then "Connect To Server..." and then type SMB://<ip address of TC> or AFP://<ip address of TC>, I can connect. In fact, it was in my quest today to solve that problem that I decided to open the CONSOLE, only to discover the endless ERROR 505 messages.
Any thoughts would be greatly appreciated.
Thank you.