Slogger icon indicating copy to clipboard operation
Slogger copied to clipboard

Launchd not launching

Open Telecart opened this issue 10 years ago • 11 comments

Hey all,

I recently upgraded slogger to the newer version to take advantage of twitter OAuth. I had some issues and had to install Xcode to resolve, anyway, all of that is done and resolved.

However, now for some reason install.rb launchd script does not launch slogger. It used to work before the upgrade. I tried removing and reinstalling com.brettterpstra.slogger.plist in lingon but to no avail. I don't even see any trace in console log that it tried to run..

Any ideas what I should look for?

Telecart avatar Aug 06 '14 01:08 Telecart

You're not the first to mention this. Does the launchd script look correct when loaded in Lingon? Can you show me a paste of the plist file?

On 5 Aug 2014, at 20:15, Telecart wrote:

Hey all,

I recently upgraded slogger to the newer version to take advantage of twitter OAuth. I had some issues and had to install Xcode to resolve, anyway, all of that is done and resolved.

However, now for some reason install.rb launchd script does not launch slogger. It used to work before the upgrade. I tried removing and reinstalling com.brettterpstra.slogger.plist in lingon but to no avail. I don't even see any trace in console log that it tried to run..

Any ideas what I should look for?


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/322

ttscoff avatar Aug 06 '14 02:08 ttscoff

sure, here it is:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.brettterpstra.Slogger</string>
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/ruby</string>
        <string>/Applications/Slogger/slogger</string>
        <string>-s</string>
    </array>
    <key>StartCalendarInterval</key>
    <dict>
        <key>Hour</key>
        <integer>23</integer>
        <key>Minute</key>
        <integer>50</integer>
    </dict>
</dict>
</plist>

Nothing looks out of the ordinary in lingon.

Telecart avatar Aug 06 '14 03:08 Telecart

Have you tested from command line, then unloaded and reloaded the job?

 sudo launchctl unload com.brettterpstra.slogger.plist
 sudo launchctl load com.brettterpstra.slogger.plist

ttscoff avatar Aug 06 '14 03:08 ttscoff

curious:

sudo launchctl unload com.brettterpstra.slogger.plist launchctl: Dubious ownership on file (skipping): com.brettterpstra.slogger.plist nothing found to unload

Telecart avatar Aug 06 '14 03:08 Telecart

Run

chown yourusername 

~/Library/LaunchAgents/com.brettterpstra.slogger.plist

On 5 Aug 2014, at 22:14, Telecart wrote:

curious:

sudo launchctl unload com.brettterpstra.slogger.plist launchctl: Dubious ownership on file (skipping): com.brettterpstra.slogger.plist nothing found to unload


Reply to this email directly or view it on GitHub: https://github.com/ttscoff/Slogger/issues/322#issuecomment-51289146

ttscoff avatar Aug 06 '14 03:08 ttscoff

no effect. :/ it still won't unload with same dubious ownership claim.

Telecart avatar Aug 06 '14 03:08 Telecart

What are the permissions on that file? They should be 644 (-rw-r--r--)

drallgood avatar Aug 06 '14 16:08 drallgood

I am noticing the same as @Telecart. The only difference in our plists is the location of slogger (understandable), and I do not have the "-s" argument.

The permissions to my plist are -rw-r--r--+.

UPDATE: Scratch that. Not sure what changed, but the launchagent ran last night.

alextall avatar Aug 07 '14 02:08 alextall

permissions are indeed -rw-r--r--

Telecart avatar Aug 07 '14 23:08 Telecart

deleting and recreating file to no avail :/

Telecart avatar Aug 09 '14 19:08 Telecart

@alextall has it kept working? Any idea what might have changed? Mine still not working.

Telecart avatar Aug 18 '14 02:08 Telecart