Troubleshooting the client

The Peerlify service isn't running, commands are refused, an update or the Mac installer didn't finish — and where to find the logs.

Updated · ·By Ivan Vyshniak

Showing Windows instructions.

This page changes with your operating system.

"Unable to reach the daemon"

text
Unable to reach the daemon on the named pipe \\.\pipe\peerlify-daemon: <reason>

This message has two different causes. Read the end of the first line.

It ends with "peerlify is not running. Run peerlify start …"

The service is running, but the connection is paused (someone ran peerlify stop). Run:

shell
peerlify start

Any other reason

The service isn't running, or isn't installed. Check and start it:

Windows
powershell
Get-Service peerlify-daemon
Start-Service peerlify-daemon        # elevated prompt

The service doesn't restart itself after a crash. If it stopped unexpectedly, start it and check the logs.

macOS
shell
sudo launchctl print system/com.peerlify.daemon

If the service isn't found, it hasn't been approved. Open the Peerlify app and choose Finish Setup… in its menu, or open System Settings → General → Login Items & Extensions and turn on Peerlify under Allow in the Background.

If it shows state = spawn scheduled and a path that contains update/staged, see The installer fails after about 10 minutes below.

Linux
shell
systemctl status peerlify-daemon
sudo systemctl start peerlify-daemon

Restart the service

peerlify stop and peerlify start pause and resume the connection; they don't restart the service. To restart the service itself:

Windows
powershell
Restart-Service peerlify-daemon      # elevated prompt
macOS
shell
sudo launchctl kickstart -k system/com.peerlify.daemon
Linux
shell
sudo systemctl restart peerlify-daemon

Find the logs

Windows

Log files are in C:\ProgramData\Peerlify\logs\logs\, readable by administrators. Files are named by date and time and end in .log.csv; up to 5 files of 10 MB are kept.

Settings… → Advanced → Save Diagnostics… in the tray menu collects logs and status into one .zip file for support. Windows asks for an administrator, because the logs are protected. If you decline, the file has everything except the logs.

macOS
  • /Library/Application Support/Peerlify/logs/: the service's log files (.log.csv).
  • /Library/Logs/Peerlify/peerlify-daemon.log: output from before the service's logger starts, such as start-up errors and crashes.

Settings… → Advanced → Save Diagnostics… collects logs, status and configuration into one file for support.

Linux

The service logs to the system journal:

shell
journalctl -u peerlify-daemon -f
journalctl -u peerlify-update        # automatic updates

Verbose logging is on by default. To turn it off or on:

shell
peerlify configure --debug-logs=false

On Linux this command currently fails with a read-only file system error. Instead, set "EnableDebugLogs": false under TapClient → Diagnostics in /etc/peerlify/appsettings.json and restart the service.

The tray app isn't running (Windows)

The tray app starts after installation but not at sign-in, and closes during updates. Start Peerlify from the Start menu, and turn on Settings… → General → Open at Login to start it at sign-in from then on. The service runs without it.

A shadow session is slow or uses a lot of CPU

Choose More → Stats in the viewer. Two rows say where the work is being done:

  • Target names how the remote computer captures its screen and what encodes the picture. Windows devices encode on the CPU; Macs normally encode on the GPU.
  • This PC (This Mac on a Mac) names what decodes and draws the picture here. on CPU means this computer has no usable graphics driver for it, or the work fell back after a driver problem.

A session you can't see pauses by itself after a couple of seconds, so several sessions cost little as long as only one is on screen. Several sessions visible at once in separate windows cost the most. Low bandwidth under More → Quality lowers the frame rate, which helps on both computers.

An update didn't install

Diagnose

shell
peerlify update --check

Common causes

  • The network's Auto-update setting is off. Automatic updates don't run; peerlify update still works.
  • The newer version differs only in its build number, so it's treated as the same release. Use peerlify update --force (Windows and macOS).
  • Linux: the device was installed from the tarball, which doesn't update automatically. Re-run the installer.
  • Windows: peerlify update must run from an elevated prompt: peerlify update must run elevated (needs to invoke msiexec). Re-run as administrator.
  • macOS: peerlify update must run with sudo.

Verify: peerlify version shows the new version for both the CLI and the service.

The installer fails after about 10 minutes (macOS)

The installer stops with "An error occurred while running scripts from the package". Or Peerlify stopped connecting after an automatic update, and peerlify status says "Unable to reach the daemon". Check the service:

shell
sudo launchctl print system/com.peerlify.daemon

If it shows state = spawn scheduled and a path that contains update/staged, the background service is still registered to a temporary copy of Peerlify that an automatic update has since deleted. macOS can't start the service from there, and older installers waited for it until macOS stopped them.

Fix

Reset the registration in Terminal, signed in to your own account on the Mac:

shell
sudo pkill -f "launchctl kickstart -k system/com.peerlify.daemon"
sudo launchctl bootout system/com.peerlify.daemon
pkill -x Peerlify
open -n -W -a /Applications/Peerlify.app --args --unregister-daemon
open -a /Applications/Peerlify.app

Peerlify opens Set Up Peerlify. Click Allow in Background; if macOS asks, open System Settings → General → Login Items & Extensions and turn on Peerlify under Allow in the Background. If the last install failed, run the installer from the downloads page again afterwards.

Installers newer than 2.7.2 (build 175) detect this and do the same steps themselves: the install finishes, and Peerlify opens at Set Up Peerlify for you to click Allow in Background.

Verify: peerlify status answers, and peerlify version shows the service's version.

peerlify configure fails

PlatformMessageFix
LinuxConfigure failed: Unable to update /etc/peerlify/appsettings.json: … Read-only file systemEdit the file as root and restart the service.
AnyConfigure failed: … after you edited the file by handpeerlify configure needs strict JSON; remove comments and trailing commas.

A device became a new device

If the client can't read its identity file (node.secret), for example after it was corrupted or copied from another Windows computer, it silently creates a new identity. The console then shows a new device, with a name ending in -1, and the old one stays offline. Remove the old device and set up the new one's tags and approval again.

Next steps

Was this page helpful?