Troubleshooting Prey on macOS Mojave

PS My activity log for my laptop:

December 28, 2018 - 12:58 Data requested location
December 28, 2018 - 11:10 Data requested location
December 27, 2018 - 19:44 Data requested location
December 27, 2018 - 19:42 Data requested location
December 27, 2018 - 19:38 Data requested location
December 27, 2018 - 19:36 Data requested location
December 27, 2018 - 00:30 Data requested location
December 26, 2018 - 19:47 Data requested location
December 26, 2018 - 19:20 Data requested location
December 26, 2018 - 18:45 Data requested location
December 26, 2018 - 18:43 Data requested location
December 24, 2018 - 23:27 Device not seen
December 23, 2018 - 01:34 Stopped_charging
December 22, 2018 - 23:28 Stopped_charging
December 22, 2018 - 22:03 Started charging
December 22, 2018 - 21:14 Stopped_charging
December 22, 2018 - 18:13 Started charging

Hi Tom,

Sorry for the delay, I took a week off… I need to see your /var/log/prey.log file to check what’s wrong, could you attach it here?

Regards,
Javo

@javo Can you please let me know how I access this file?

you can open your Terminal and run this command:
cat /var/log/prey.log > ~/Desktop/prey.log

After that a prey.log file should appear on your Desktop

Thanks. This is what the log file says:

warn Mon, 07 Jan 2019 21:29:09 GMT [control-panel] Not configured. Waiting for user input...
 info Mon, 07 Jan 2019 21:29:19 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:29:29 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:29:39 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:29:50 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:00 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:10 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:20 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:30 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:40 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:30:50 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:00 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:10 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:20 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:30 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:40 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:31:50 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:32:00 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:32:11 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:32:21 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:32:31 GMT [control-panel] Reloading config...
 info Mon, 07 Jan 2019 21:32:41 GMT [control-panel] Reloading config...

Hi Tom,

Your device is not configured, you need to run one of these 2 commands:

sudo /usr/local/lib/prey/current/bin/prey config panel -f
or
sudo /usr/local/lib/prey/current/bin/prey config gui

And use your credentials

I tried the first command and after the browser window opened and I clicked on my account, I was taken to a screen that said “Connecting with Prey servers” and it has just remained on that screen with nothing else happening.

Then I tried the second command. A new window opened asking for my Prey log-in details, which I gave. I then got an error that said “Error! Account is valid, but no available slots are left.”

My device is still showing up as missing.

You can try deleting the device from the control panel and then try again with the commands, the device should be re-added.

I did that and re-added the device and it has now been “seen” by Prey just a minute ago but it can’t find my location.

ok, delete the prey.log file from your Desktop and run this again:
cat /var/log/prey.log > ~/Desktop/prey.log

then paste the file here the same way you did before

This is what the log file says:

PREY 1.8.2 spreads its wings!
Current time: Tue Jan 08 2019 15:26:15 GMT-0500 (EST)
Running with PID 64998 as prey over Node.js v4.5.0 on a x64 mac system (10.14.2)

 warn Tue, 08 Jan 2019 20:26:16 GMT [control-panel] Not configured. Waiting for user input...
 info Tue, 08 Jan 2019 20:26:27 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:26:37 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:26:47 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:26:57 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:07 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:17 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:27 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:37 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:47 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:27:57 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:07 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:17 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:27 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:37 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:48 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:28:58 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:08 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:18 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:28 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:38 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:48 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:29:58 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:08 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:18 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:28 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:38 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:48 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:30:58 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:31:09 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:31:19 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:31:29 GMT [control-panel] Reloading config...

critical Tue, 08 Jan 2019 20:31:29 GMT UNCAUGHT EXCEPTION: Not configured. Stopping.
info Tue, 08 Jan 2019 20:31:31 GMT Gracefully shutting down. Will self-destruct in 5 secs.
info Tue, 08 Jan 2019 20:31:31 GMT [hooks] Unregistering hooks.
info Tue, 08 Jan 2019 20:31:36 GMT Time’s up, shutdown forced. Have a jolly good day sir.

PS I just tried it again and got this:

PREY 1.8.2 spreads its wings!
Current time: Tue Jan 08 2019 15:38:48 GMT-0500 (EST)
Running with PID 65106 as prey over Node.js v4.5.0 on a x64 mac system (10.14.2)

 warn Tue, 08 Jan 2019 20:38:49 GMT [control-panel] Not configured. Waiting for user input...
 info Tue, 08 Jan 2019 20:38:59 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:39:09 GMT [control-panel] Reloading config...
 info Tue, 08 Jan 2019 20:39:19 GMT [control-panel] Reloading config...

Is that the complete file? Because is still saying that your device is not configured.

You can also send it to me through javo@preyhq.com

I deleted the device from Prey and reinstalled Prey again. This time it is working. I have no idea what happened and am relieved that this has finally been resolved. Thanks for your help.

Glad that it finally worked, let me know if you have any other question.

Javo

Hello!

I ran the suggested command and received an 80.

Terminal returned “80” — below are the prey.log contents.

I have deleted my MacBook in the Prey Panel, uninstalled through Terminal, then reinstalled. It says “device seen less than a minute ago” but then “location unknown”. Thanks in advance!

PREY 1.8.2 spreads its wings!
Current time: Tue Jan 29 2019 10:42:57 GMT-0500 (EST)
Running with PID 25709 as prey over Node.js v4.5.0 on a x64 mac system (10.14.2)

 warn Tue, 29 Jan 2019 15:42:57 GMT [control-panel] Not configured. Waiting for user input...
 info Tue, 29 Jan 2019 15:43:07 GMT [control-panel] Reloading config...
 info Tue, 29 Jan 2019 15:43:07 GMT Plugin loaded: control-panel
 info Tue, 29 Jan 2019 15:43:07 GMT 1 plugins loaded with 0 errors.
 info Tue, 29 Jan 2019 15:43:07 GMT Initialized.
 info Tue, 29 Jan 2019 15:43:07 GMT [triggers] Watching: connection, control-zones, hostname, location, network, power
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: connection
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: connection
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: control-zones
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: control-zones
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: hostname
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: location
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: location
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: network
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Starting trigger: power
 warn Tue, 29 Jan 2019 15:43:07 GMT [control-panel] Unable to sync settings.
error Tue, 29 Jan 2019 15:43:07 GMT [network] Connection error: Error: connect EHOSTDOWN 107.178.244.155:443 - Local (0.0.0.0:0)
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: hostname
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: network
 info Tue, 29 Jan 2019 15:43:07 GMT [actions] Running: power

Hi @William

Does the other actions works? Like the alarm, alert, etc

Regards,
Javo

Nope — when I initiate from my iPad, message and lock just flash and say “pending” and that they’ll take place when Prey connects.

Thanks for the prompt reply, by the way!