ttscoff / Slogger

Social logging script for Day One
757 stars 160 forks source link

Launchd not launching #322

Open Telecart opened 10 years ago

Telecart commented 10 years ago

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?

ttscoff commented 10 years ago

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

Telecart commented 10 years ago

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.

ttscoff commented 10 years ago

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
Telecart commented 10 years ago

curious:

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

ttscoff commented 10 years ago

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

Telecart commented 10 years ago

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

drallgood commented 10 years ago

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

alextall commented 10 years ago

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.

Telecart commented 10 years ago

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

Telecart commented 10 years ago

deleting and recreating file to no avail :/

Telecart commented 10 years ago

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