launchd

...now browsing by tag

 
 

Error running launchctl remotely as non-root

Saturday, October 8th, 2011

Today, I’m attempting to install Jenkins under Homebrew on my home server running OS X. I’m ssh-ing into that machine, and got the following error while attempting to launch the program after installation:

Bug: launchctl.c:2325 (23930):13: (dbfd = open(g_job_overrides_db_path, O_RDONLY | O_EXLOCK | O_CREAT, S_IRUSR | S_IWUSR)) != -1

launch_msg(): Socket is not connected

A bit of Googling turned up this page from the Homebrew wiki which mentioned the error message but suggested that iTerm was the cause. I’m not using iTerm, but on a hunch, I tried using Screen Sharing to run Terminal.app directly on the remote machine. Success!