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
This page changes with your operating system.
"Unable to reach the daemon"
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:
peerlify startAny other reason
The service isn't running, or isn't installed. Check and start it:
Get-Service peerlify-daemon
Start-Service peerlify-daemon # elevated promptThe service doesn't restart itself after a crash. If it stopped unexpectedly, start it and check the logs.
sudo launchctl print system/com.peerlify.daemonIf 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.
systemctl status peerlify-daemon
sudo systemctl start peerlify-daemonRestart the service
peerlify stop and peerlify start pause and resume the connection; they don't restart the service. To restart the service itself:
Restart-Service peerlify-daemon # elevated promptsudo launchctl kickstart -k system/com.peerlify.daemonsudo systemctl restart peerlify-daemonFind the logs
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.
/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.
The service logs to the system journal:
journalctl -u peerlify-daemon -f
journalctl -u peerlify-update # automatic updatesVerbose logging is on by default. To turn it off or on:
peerlify configure --debug-logs=falseOn 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 CPUmeans 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
peerlify update --checkCommon causes
- The network's Auto-update setting is off. Automatic updates don't run;
peerlify updatestill 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 updatemust run from an elevated prompt:peerlify update must run elevated (needs to invoke msiexec). Re-run as administrator. - macOS:
peerlify updatemust run withsudo.
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:
sudo launchctl print system/com.peerlify.daemonIf 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:
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.appPeerlify 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
| Platform | Message | Fix |
|---|---|---|
| Linux | Configure failed: Unable to update /etc/peerlify/appsettings.json: … Read-only file system | Edit the file as root and restart the service. |
| Any | Configure failed: … after you edited the file by hand | peerlify 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.