SelfControlApp / selfcontrol

:skull: Mac app to block your own access to distracting websites etc for a predetermined period of time. It can not be undone by the app or by a restart – you must wait for the timer to run out.
http://selfcontrolapp.com
GNU General Public License v3.0
4.04k stars 399 forks source link

Doesn't start on OSX 10.10 #184

Closed frewsxcv closed 10 years ago

frewsxcv commented 10 years ago

When attempting to start the app in OSX 10.10:

screen shot 2014-06-12 at 9 42 19 am

funski commented 10 years ago

No axe, but I'll shout a couple of drinks. Add $10 from me.

Let's get this fixed to save time/money from the distractions ASAP!

Sent from my iPhone

On 6 Sep 2014, at 6:45 am, Alistair Roche notifications@github.com wrote:

$15 from me! Thanks for setting this up, @grabinat

— Reply to this email directly or view it on GitHub.

matthiaslehming commented 10 years ago

Added also $10. Hope it get fixed sooner this way :)

santhoshramdoss commented 10 years ago

Here is a temp solution: http://www.persistence-app.com/ Works on 10.10 beta, with some bugs. Has similar basic features as SelfControl. Using it as a stop gap before our beloved app gets fixed.

TBoneTheOriginal commented 10 years ago

For what it's worth, I'm a beta tester for Anti-Social, and it works very well in Yosemite with a MUCH better interface. The Yosemite version hasn't launched publicly yet, but I assume it will soon. The new interface doesn't look anything like the old one.

http://anti-social.cc

AKlokus commented 10 years ago

@santhoshramdoss tried dl'ing Persistence, but for some reason the "Activate" button to begin is always greyed out.

Did you have the same issue?

cstigler commented 10 years ago

Hey all. Know it's been slow, but a fix is still in the works. It's a rough period for me with other projects. =) It's really awesome that y'all are pooling money, but I promise it'll be fixed with/without that. I know you want a solution now, but unfortunately these things take time.

@AKlokus glad you're finding an alternative, but please keep discussion of that app out of this thread. It'll make it easier for me/others to read through and find relevant info about this issue.

manuelkuhs commented 10 years ago

cstigler, delighted & thankful to hear you're working on a fix! Keep it up!

vsching commented 10 years ago

Hi, i have a look again. Seems like it is working using PF now? I tried, seems like it is able to block traffic now. What are the pending things to be done? Probably i can help, roughly know how it works now.

cstigler commented 10 years ago

@vsching yes, it's sort-of-kind-of working on master, but I didn't really have the time to do finishing touches last time. I'm trying to take this afternoon and push out a private beta to send to people in this thread. After that it would be really awesome if you wanted to help fix bugs / etc!

adamnemecek commented 10 years ago

@cstigler I too would be interested in the beta plox.

vsching commented 10 years ago

That's great. Yes, I think it's possible for me to contribute if there is any bug.

Cheers 

Sze Ching Voon Sent from Mailbox

On Mon, Sep 22, 2014 at 5:40 AM, Charlie Stigler notifications@github.com wrote:

@vsching yes, it's sort-of-kind-of working on master, but I didn't really have the time to do finishing touches last time. I'm trying to take this afternoon and push out a private beta to send to people in this thread. After that it would be really awesome if you wanted to help fix bugs / etc!

Reply to this email directly or view it on GitHub: https://github.com/slambert/selfcontrol/issues/184#issuecomment-56313746

cstigler commented 10 years ago

Hey everybody! Happy to say I have an Alpha version ready. Probably still buggy, but could you test and see how it works? Would love specific bug reports -- not just "it didn't work" but "On Yosemite beta 4, I clicked on this button, then that button, then 10 seconds later I saw an error message saying 'Unknown error'"

Alpha version: http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha.zip

cstigler commented 10 years ago

(oops, found a crash in that version. please use this one instead: http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha2.zip)

Also, if your SelfControl alpha version gets stuck and you need a reset, you can download a new version of our SelfControl Killer at: http://downloads.selfcontrolapp.com/SCKiller_1.5.2alpha.app.zip (make sure to delete it after the new version is out so you can maintain your control!)

bgelfand commented 10 years ago

9/22/14 9:23:39.021 AM authexec[12681]: executing /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl 9/22/14 9:23:39.045 AM org.eyebeam.SelfControl[12681]: Using your own bundle identifier as an NSUserDefaults suite name does not make sense and will not work. Break on _NSUserDefaults_Log_Nonsensical_Suites to find this 9/22/14 9:24:10.252 AM discoveryd[54]: Basic DNSResolver etc/hosts file changed: Event 0x7f918d8de990 Flushed /etc/hosts cache

Then basically I couldn't load anything. It wasn't an error where it can't find the server like how it is for websites that are blocked, it just won't load the page and it times out. Where can I email the detailed kill log?

Also, when I checked the host files it all looked fine, I didn't see any issues.

TL;DR Websites that I wanted blocked were being blocked. Websites I didn't want to block just wouldn't load and would time out.

cstigler commented 10 years ago

Thanks for testing @BrandonGelfand . Was this the latest Yosemite beta? Please email the log to charlie@charliestigler.com

bgelfand commented 10 years ago

@cstigler I figured it out I think, when you block a port which in my case it was *:33986 it causes the issue. I killed the app, imported with the port in the list and it caused the issue, I killed it again and then imported, removed the port from the list, and then it worked. I did this twice and it produced the same results.

TL;DR Ports break the blocker.

cstigler commented 10 years ago

@BrandonGelfand THANK YOU! That's super helpful. I think I forgot to test port blocking entirely. Will let you know when a version is out that fixes that (keep using with non-port items in the meantime).

bgelfand commented 10 years ago

@cstigler No problem, and thank you for getting this all fixed up, now I can get some school work done without drifting into a coding session.

tomschlick commented 10 years ago

The alpha is working, however every time I start it I have to do it twice. Each first time I get this

After I hit ok, then click start, and confirm my password again it seems to work the second time around...

bgelfand commented 10 years ago

I have the same issue but I assumed it was because I entered in my password incorrectly, it is intermittent for me though.

cstigler commented 10 years ago

@tomschlick @BrandonGelfand try this new version I made today with some fixes:

http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha3.zip

It should fix the port blocking issue, might fix the "Insufficient block information" issue, and also has a cool new feature: if the program gets stuck and is showing 00:00 for more than seconds in a row, it will change the "Add to Blacklist" button to a "Stuck? Manually end block" button. It's like the SelfControl Killer, but built into the app itself.

Let me know how this version works...

daniwoodard commented 10 years ago

I am stuck in the "loading" screen after I click "start." I am not prompted to type in my password.

cstigler commented 10 years ago

@daniwoodard are you using the latest version posted (alpha 3)? What version of the Yosemite beta are you on? And does the block actually start (are websites blocked)?

aarjav commented 10 years ago

Using alpha 3 and Yosemite Developer Preview 8. After I started selfcontrol I couldn't access any websites, including those not on my blacklist. I verified that it wasn't my Internet connection by switching to my iPhone hotspost. As soon as the counter on selfcontrol added, I regained access to all websites.

Aarjav TrivediFounder & CEO, Summon www.summon.com

Cell: 4046616234aj@summon.com aj@summon.comGet the Android app here https://play.google.com/store/apps/details?id=com.ridecell.com.unicorn&hl=en | Get the iPhone app here https://itunes.apple.com/us/app/instantcab/id513651818?mt=8 | Apply to Drive for us http://www.instantcab.com/!TechCrunch: "Summon (formerly InstantCab) has a unique twist on the transportation app..take a look at the inventory comparison" http://techcrunch.com/2013/03/15/instantcab/ http://techcrunch.com/2013/03/15/instantcab/

On Mon, Sep 22, 2014 at 11:32 PM, Charlie Stigler notifications@github.com wrote:

@daniwoodard https://github.com/daniwoodard are you using the latest version posted (alpha 3)? What version of the Yosemite beta are you on? And does the block actually start (are websites blocked)?

— Reply to this email directly or view it on GitHub https://github.com/slambert/selfcontrol/issues/184#issuecomment-56480891 .

daniwoodard commented 10 years ago

I just restarted my computer, and it worked now! Thanks so much!

cstigler commented 10 years ago

@daniwoodard glad to hear!

@aarjav could you send me your SelfControl-Killer.log file generated by the Killer (http://downloads.selfcontrolapp.com/SCKiller_1.5.2alpha.app.zip)? Make sure to run a block again and verify it's blocking all web traffic before running the Killer, so the log will show whatever's going wrong. The log will be in your Documents folder and can be sent to charlie@charliestigler.com. thanks...

cstigler commented 10 years ago

@aarjav Actually, may have found your issue! Try this new version and let me know if it's working for you (otherwise, please send me the log).

http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha4.zip

saveyourtime1990 commented 10 years ago

Thanks @cstigler . It's working :dancers:

swildermann commented 10 years ago

Works for me @cstigler .

backus commented 10 years ago

@cstigler Thank you!

Tardishade commented 10 years ago

Here's a custom made icon in the Yosemite style to commemorate this release. http://lopaneyo.deviantart.com/art/SelfControl-484581682

cstigler commented 10 years ago

All,

here's the latest version of the alpha. please upgrade, especially if you're having issues with a previous version, and let me know about any issues: http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha6.zip

and @lopaneyo that looks great!

lkva92as commented 10 years ago

I'm not sure why but it seems to make Alfred really chug when I try running it.

cstigler commented 10 years ago

@jyotidas What do you mean "really chug"? I use Alfred too but am not having problems. I'm guessing they're unrelated to SelfControl since Alfred is entirely local.

lkva92as commented 10 years ago

I mean it becomes incredibly slow and unresponsive, eventually freezing, and I've had to go into the Activity Monitor to quit Alfred just to get the search bar off my screen. The problem is very reproducible on my end. If SelfControl is running, Alfred becomes slow, unresponsive and freezes. If SelfControl isn't running, Alfred runs fine.

E: Oh, this is embarrassing. I think the problem is likely caused by the workflow I'm using to trigger SelfControl. Never mind, sorry!

wooter commented 10 years ago

@cstigler, alpha 6 still gives me error -210 first time I try it, like @tomschlick .

When I tried alpha 4 the first time, I did not get error -210, but every consecutive try I did get the error.

cstigler commented 10 years ago

@wooter so in alpha 6 are you getting error -210 only the first time, or every time you try to run a block?

if every time, could you please run open Terminal, run defaults read org.eyebeam.SelfControl and let me know the output?

wooter commented 10 years ago

@cstigler Ever since I started a second block session on alpha 4 I am getting the error, and it continues on alpha 6. { BlockDuration = 60; BlockStartedDate = "2014-09-29 08:26:39 +0000"; HostBlacklist = ( "autoforum.be", "autominded.be", "hbvl.be", "hln.be", "standaard.be", "reddit.com", "bmw-mc-vl.be" ); SUEnableAutomaticChecks = 1; SUHasLaunchedBefore = 1; SULastCheckTime = "2014-09-25 22:04:28 +0000"; SUSendProfileInfo = 0; }

cstigler commented 10 years ago

@wooter thanks. Can you click Edit Blocklist and tell me what sites are on your list?

On Mon, Sep 29, 2014 at 1:50 AM, wooter notifications@github.com wrote:

@cstigler Ever since I started a second block session on alpha 4 I am getting the error, and it continues on alpha 6. { BlockDuration = 60; BlockStartedDate = "2014-09-29 08:26:39 +0000"; HostBlacklist = ( <list of blacklisted URL's> ); SUEnableAutomaticChecks = 1; SUHasLaunchedBefore = 1; SULastCheckTime = "2014-09-25 22:04:28 +0000"; SUSendProfileInfo = 0;

}

Reply to this email directly or view it on GitHub: https://github.com/SelfControlApp/selfcontrol/issues/184#issuecomment-57132533

wooter commented 10 years ago

See my update of original comment.

thistimearound commented 10 years ago

@cstigler I'm getting the same error on alpha4. Here's my output.

{ BlockDuration = 1440; BlockSoundShouldPlay = 1; BlockStartedDate = "2014-09-30 22:39:42 +0000"; HostBlacklist = ( "reddit.com", "ign.com", "espn.com", "facebook.com", "absolutepunk.net", "androidpolice.com", "droid-life.com", "twitter.com", "sbnation.com", "espn.go.com", "fantasypros.com", "numberfire.com", "youtube.com", "etsy.com", "spotify.com", "genius.com" ); SUEnableAutomaticChecks = 1; SUHasLaunchedBefore = 1; SULastCheckTime = "2014-09-30 22:37:01 +0000"; SUSendProfileInfo = 0; TimerWindowFloats = 1; }

cstigler commented 10 years ago

@wooter @thistimearound thanks for the info. Can you try this version and let me know if it's working:

http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha7.zip

wooter commented 10 years ago

@cstigler have not seen an error yet on Alpha 7. Thanks!

andredtr commented 10 years ago

The Alpha 7, is blocking everything ( not just the sites on the blacklist ), and the Alpha 6, is showing the following error to me: "Insufficient Block informations".

cstigler commented 10 years ago

@decaobr could you please run the Killer to get rid of your block (make sure one is running / broken first) and send the log to me? The new Killer is at http://downloads.selfcontrolapp.com/SCKiller_1.5.2alpha.app.zip , the log will be at ~/Documents/SelfControl-Killer.log, and my email address is charlie@charliestigler.com. Thanks

cstigler commented 10 years ago

Newest version of the alpha, with some upgrades to the whitelist functionality: http://downloads.selfcontrolapp.com/SelfControl_1.5.2alpha8.zip

(if whitelist blocks are taking too long to start, you can disable the new preference under Advanced preferences)

milesaheadof commented 10 years ago

Hello... I have a question. I have used the app (selfcontrol) serveral times with no issues. But have come across a problem. I was trying to block my kid from downloading a VPN from a site, so I typed what I thought was it's port :80 in the blacklist, as a result I couldn't access any site accept google and yahoo. To get around it I moved my clock up on my mac....Problem solved I thought...but... I'm finding I cant access certain sites...huffingtonpost....tmz...and a few other sites....I've used the Killer app and still have the problem....I also looked around in the terminal...but didn't see any sign of the selfcontrol app there.....any suggestions???? Thanks...

vsching commented 10 years ago

you are using yosemite or?

basically self-control is doing these few things

i) edit your host file

ii) using pf or ipsw to block the connection

for pf (OS X Yosemite)

 /etc/pf.conf

which include a file responsible for selfcontrol

edit the file and restart the service using this command

 sudo pfctl -F all -f /etc/pf.conf

iii) add a self control lock file

WARNING, BEFORE YOU EDIT ANY FILE, BACKUP A COPY FIRST. 

I don’t think will have anything serious, just be safe =)

On Thu, Oct 9, 2014 at 3:41 PM, milesaheadof notifications@github.com wrote:

Hello... I have a question. I have used the app (selfcontrol) serveral times with no issues. But have come across a problem. I was trying to block my kid from downloading a VPN from a site, so I typed what I thought was it's port :80 in the blacklist, as a result I couldn't access any site accept google and yahoo. To get around it I moved my clock up on my mac....Problem solved I thought...but... I'm finding I cant access certain sites...huffingtonpost....tmz...and a few other sites....I've used the Killer app and still have the problem....I also looked around in the terminal...but didn't see any sign of the selfcontrol app there.....any suggestions???? Thanks...

Reply to this email directly or view it on GitHub: https://github.com/SelfControlApp/selfcontrol/issues/184#issuecomment-58473764

bgelfand commented 10 years ago

@milesaheadof Port 80 is what is commonly used to go to a website, you block that and you block everything. In regards to your kids downloading a VPN, it doesn't work that way. You don't download a VPN, and if you want to block it, he/she could just change the port where it is routing though to one of the 65,535 available. It might be best to setup parental controls instead and change the administrator password. If he/she is really smart they can create an admin via terminal when booting the computer into single user mode. Blocking a port isn't a feasible option, sorry. Someone else can advise on your issue, copy and paste the killer log as well.

milesaheadof commented 10 years ago

I'm running Maverick 10.9.4 How do I run backup before? The command above is for Yosemite, is it the same command for Maverick?