-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.5 continuously crashes and restarts every 5 seconds on Mac #40
Comments
Hey Charles, Thanks for the heads up. This is a known bug. We haven't upgraded the links yet because we've been super testing the 1.2.x branch before releasing it publicly. That said, a few minutes ago we just green lighted version 1.2.3 for public release. 1.2.3 fixes this one as well as numerous other things, as you can see on the Releases section. I can send you the download links in a while so you can try it out. |
Hi Tomás Thanks so much! I'm glad I wasn't making a stupid mistake. However, after a successful install and a restart things don't look happy:
prey.log is empty. Is there any more information I can send you that would be helpful? |
Holy shmoly! That doesn't look good. The Is there a |
Tomás You wrote: Is there a /tmp/prey-install.log around? I don’t think so:
What happens if you run id prey from the command line?
And what does a ls -al /usr/lib/prey render?
I installed 1.2.3 on the 2011 Mac mini, where 1.1.5 previously seemed to be OK, and tried the same procedure. There, /tmp/ has an empty file named Charles On 23 September 2014 at 10:06:36, Tomás Pollak ([email protected]) wrote: Holy shmoly! That doesn't look good. The getpwnam line suggests that the prey user doesn't exist. The weird thing is that it should have been successfully created during installation; otherwise you would have received an error and wouldn't have been able to complete the process. Is there a /tmp/prey-install.log around? What happens if you run id prey from the command line? And what does a ls -al /usr/lib/prey render?= |
Hmm, that's weird. Are you sure the installation process went through successfully? Did you get to see the green icon saying "We're all good"? It would also help to know what are the contents of |
The installer said everything was fine, but clearly it isn’t. For one thing there is no com.prey.agent.plist on the Mac mini 2009. Can I uninstall and try again? I tried the uninstaller from 0.6.3, which said it had worked, but it didn’t. I guess 1.1.5 and later versions put different things in different places. On the other machine – the Mac mini 2011 – I’d guess that com.prey.agent.plist is OK: ExitTimeOut 5 KeepAlive SuccessfulExit Label com.prey.agent ProgramArguments /usr/lib/prey/current/bin/prey RunAtLoad UserName prey WorkingDirectory /usr/lib/prey/currentOn 23 September 2014 at 18:10:57, Tomás Pollak ([email protected]) wrote: Hmm, that's weird. Are you sure the installation process went through succesfully? Did you get to see the green icon saying "We're all good"? It would also help to know what are the contents of/Library/LaunchDaemons/com.prey.agent.plist. |
Hi Charles, The plist looks good, but that's the one from version 1.1.5, not the one from 1.2.3 -- which should include a WatchPaths directive, and set an ExitTimeOut of 20 seconds. What OSX version are you running on them? Is it possible that you ran the 1.1.5 installer by mistake, instead of the one from the link I sent? The 0.6.3 uninstaller will remove files from
Those commands take care of unloading and removing the daemon configuration (com.prey.agent), remove the installed files and finally the configuration file in /etc/prey. |
Hi Tomás Thanks. I'm getting out of my depth here, but I think the install script is only partly working. To simplify matters I'm now working on only one of the two machines (the Mac mini 2011). Going on from what I reported yesterday, I found that So I used all the Now
But:
Can I try to put this right from the Terminal? From your script it looks as if the next step should be a |
Charles, You can run the post install hooks as follows: |
Mauricio Thank you. The installer did not create a
But |
Yes, it has to be a symlink. It's weird though, because the v1.2.3 installer sets up everything in my case, symlink included. |
Thanks Mauricio. Symlink now in place, but
|
Just confirmed identical behaviour on the other Mac mini (2009):
|
Does any suspicious log appear in Console when running the installation? |
I don't think so. prey.log says only:
and if I type "prey" to filter "All Messages" there is nothing apart from the terminal commands I've typed. Nothing for "node" either. |
That's weird. Is that the file |
Hi Charles, Thanks for the patience! I think I know what's going on, thanks to this line when you ran the post_install hooks:
I'll take a look at this now and let you guys know what I find. As for the prey.sh error messages, those are probably appearing because of the old crontab line still present. What does a |
Hi Charles, Thanks to your input we were able to find and exterminate the dreaded bug. We just produced a fresh set of packages that addresses this issue and an additional one spotted by @mauricioschneider. You can download 1.2.4 from this URL: https://s3.amazonaws.com/prey-releases/node-client/1.2.4/prey-mac-1.2.4-x64.pkg Let us know how it goes! |
Tomás and Mauricio Thanks for all your hard work on this. 1.2.4 is looking much more promising: the Configurator ran as part of the install process,
Mauricio asked: "As for the prey.sh error messages, those are probably appearing because of the old crontab line still present. What does a sudo crontab -l render?"
Is there a way to kill that? |
Hello Charles, You can get rid of the crontab entry by running Could you please attach the content of the file |
Thanks Mauricio. Some stuff here that might help. Since it keeps refreshing, I had to be quick to copy it. Hope I caught enough :-)
|
Thas is indeed helpful. But it would be even more helpful to have the debugging log, here's how to get it:
If you get something like the following,
then run After following the previous steps you'll get a nicely syntax highlighted log and you'll have plenty of time to copy/paste it. After you're done, you can close the process by pressing ctrl+C. Finally, if you want to re-enable Prey's daemon, run Thanks for all your help and patience in helping us improving Prey :), we really appreciate it. |
Mauricio As you'll see, debug mode immediately triggered the log display, and when I tried to kill the process I guess it had already terminated. Anyway, I hope this helps.
|
Indeed, once you close the debug mode (ctrl+c), that process in particular is no longer running. This log is very useful, since it shows exactly where the software is crashing:
Now, we just have to wait for Tomás to show up :), his timezone is UTC-7 if I recall well. Hopefully, he'll have an idea of what might be going wrong or where to look. |
Hey guys, This is an easy bug. That bug is caused by the router not returning a valid response to the 'getExternalIPAddress' command. It's an easy fix, though, since there's numerous other ways around it. I'll get it fixed in a sec. -- Tom |
Just out. This should do it. https://s3.amazonaws.com/prey-releases/node-client/1.2.5/prey-mac-1.2.5-x64.pkg Thanks for the inmense patience Charles! |
Great work!
Compared to Prey 1.1.3 on my Android phone, the Mac doesn't seem very responsive – the web control panel says it's offline, and I haven't been able to get a test message through. But I guess that's a discussion for elsewhere. Seriously, people, thanks! |
Hi Charles, Looking at your log file, it seems like your router does have push notification support. This means that you should be able to trigger commands in real-time using the new Beta UI. Is this not the case? And thanks to YOU, by the way! |
Cool! We're glad it's finally working :). Thanks for helping us with it.
It's mainly a UI issue, we are working on the way the connection status of the devices is displayed. Usually, if you send an instructions (alarm, message, screen lock), it should take between 30 seconds to 1 minutes for the device to execute it. |
Mauricio:
Tomás:
When I tried sending a message to my phone, which is connected to the same router, it showed up within a couple of seconds. So I'd say that push is working in that case. And a request for a new location works within 30s or so. But with the Mac, any request for a location or a message just seems to time out. I'm assuming it should be possible to query the web interface from the machine you're actually searching for? I also tried 1.2.5 on the 2009 Mac mini ("Why bother to protect this?", I hear you cry) and am not sure it installed properly. The main system log says:
and
and no more. What do you think? |
That's pretty weird. What does Console say? Any |
This is most likely related to an OS X security feature. Try going to Preferences -> Security & Privacy (click the lock to make changes) and see if the setting "Allow apps downloaded from:" has the "Mac App Store and identified developers" option selected. |
Tomás:
Only that line about
No, only a 2-byte Mauricio:
Good idea, though that setting was already in place. But I did have to "option-open" the installer because the 2009 Mac mini somehow thought it was not from a registered developer, so something odd is happening. It may be the Mac mini; I bought it only a week ago with 10.9.2 installed (it's now on 10.9.5), and I won't be entirely happy till I've done a clean install. Basically it runs fine but there are one or two network-related behaviours I don't understand. I have to take a break now and get some paid work done, but I may come back to you on this in a few days if I can't work out what is happening. And as I said, I'm sure Prey is not working properly on the Mac mini 2011, even though we've cracked the install problem. One step at a time, though, and thanks again for your excellent help. |
Hi, @CharlesButcher. Just checking on this. Version 1.3.3 was released a while ago, and I was wondering if you're still having trouble. |
Fabián It's good of you to check, but I'm sorry to report that I decided to rely If I had a laptop I'd be using Prey for sure :-) Season's greetings Charles Butcher
|
Sorry to read that, but thanks for letting us know. I'm closing this issue, then. Please feel free to try Prey again at any time 👍 |
Thanks. Prey is protecting two Android phones in this household and I'm Keep up the great work! Charles mobile +44 (0)777 119 3620
|
Sincere apologies if I'm out of date here, but 1.1.5 is giving me just the same issues as described in #37.
Prey.log is not very informative. All it says is:
This is on an ancient Mac mini (early 2009, Intel Core Duo, OS 10.9.5). I also have Prey 1.1.5 on a Mac mini 2011 and it's working fine.
sudo bin/prey config upgrade
informs me that 1.1.5 is the latest version. As I said, sorry if I've got this wrong – I can see you are up to 1.2.2, but I'm not capable of compiling my own. In fact the "Try the new beta" link on the control panel still seems to point to 1.1.4…The text was updated successfully, but these errors were encountered: