Diagnostics and troubleshooting
Instructions for Collecting ZloyRouter Diagnostic Logs¶
Please follow these steps on your Raspberry Pi to collect diagnostic information (read until the end). This will help us resolve the issue.
Attention! We value your privacy and do not collect any data without your knowledge!
In order for logs to be collected, written to disk, and persist across device reboots, you must launch ZloyRouter in persistent logs mode:
sudo ./zloyrouter -journald-persistent enable
After this, repeat the actions that led to the error and proceed with collecting the logs.
1: Collecting Logs on Raspberry Pi¶
- Connect to your Raspberry Pi via SSH.
Windows: Use PuTTY or the built-in SSH client in PowerShell/CMD (Open the Start menu, type Windows PowerShell, select Windows PowerShell, and then click Open) and enterssh pi@192.168.0.5(replace 192.168.0.5 with the actual IP address of your Raspberry Pi).
macOS/Linux: Open Terminal and run the commandssh pi@<your_Raspberry_Pi_IP_address>(replace pi with your user if it is different, andwith the actual IP address of your Raspberry Pi). - Create and run the log collection script.
Enter the command:zloyrouter-diag.sh

- Wait for it to complete.
The script will start collecting information. This may take some time (a minute or two at most). You will see progress messages.
Wait for a message like:
Архив создан: /tmp/vpn_mgr_diag.ГОДМЕСЯЦДЕНЬЧАСМИНУТАСЕКУНДА+СМЕЩЕНИЕ.tar.gz
Временная директория /tmp/diag_XXXXX будет удалена **после перезагрузки**. (где XXXXX - PID процесса)
This means that an archive file with logs has been created in the /tmp/ directory on your Raspberry Pi, for example, vpn_mgr_diag.20231027153000+0300.tar.gz (the date and time will be current) — this is precisely the file you need to download to your PC first and then send to our support team.
Proceed to Part 2: Downloading the log file from the Raspberry Pi.
2: Downloading the Log File from the Raspberry Pi to Your Local Computer¶
You will need an SFTP client to download the file.
For Windows (using FileZilla):¶
- Installing the SFTP client (FileZilla):
Download FileZilla Client from the official website: https://filezilla-project.org/download.php?type=client
Install the program following the installer instructions. - Connecting to Raspberry Pi via FileZilla:
Launch FileZilla.
Enter the connection details:
Host:sftp://<your_Raspberry_Pi_IP_address> (e.g., sftp://192.168.1.100)
Username: pi (or your username)
Password: your password (default is raspberry)
Port: 22
Click "Quickconnect"

On your first connection, you will see a host key authorization window. Leave the "Always trust this host" checkbox checked and click OK.
After that, you will connect to your Raspberry Pi and in the right pane, you will see the contents of the home folder/home/pi(or/home/<your_username>if you specified a username other thanpiduring installation). - Downloading the log file from Raspberry Pi to your PC:
In FileZilla:
The left side displays files on your computer.
The right side displays files on the Raspberry Pi.
In the right pane (files on the Raspberry Pi), navigate to the/tmpdirectory.
To do this, in the Remote site field, enter/tmpinstead of/home/pi(or/home/<your_username>if you specified a username other thanpiduring installation).

Find the file named like vpn_mgr_diag.YEARMONTHDAYHOURMINUTESECOND+OFFSET.tar.gz (for example, vpn_mgr_diag.20231027153000+0300.tar.gz).
Drag and drop this file from the right side (Raspberry Pi) to the left side (your computer), for example, to your Desktop.
For macOS / Linux (using FileZilla):¶
- Installing the SFTP client (FileZilla):
Download FileZilla Client from the official website: https://filezilla-project.org/download.php?type=client for your OS version. If the version is not detected automatically, check yours here.
Install the program following the installer instructions. - The remaining procedure for downloading logs inside FileZilla is the same as described above for Windows.
For macOS / Linux (using Terminal):¶
Attention: You need to download logs from the Raspberry Pi to your PC and send them to technical support. The commands below must be executed on your local PC running Linux/macOS, not on the Raspberry Pi.
If you simply copy and paste the commands below, they will not work. Adapt them to your configuration.
- Open Terminal.
- Use the
scpcommand to download the file:
Execute the following command, replacingwith the IP address of your Raspberry Pi, and pi with your username if it differs. The file will be copied to your home directory.
scp pi@<your_Raspberry_Pi_IP_address>:/tmp/vpn_mgr_diag.<timestamp>.tar.gz .
Where:
scp - the command to copy from the Raspberry Pi to your PC where you are running it.
pi - before the @ symbol is the username. By default on Raspberry it is pi, but if you set a different name during system installation, specify it here.
- the address of your Raspberry Pi in the format 192.168.1.100. Specify your Raspberry Pi address here.
/tmp/vpn_mgr_diag..tar.gz - the path to the file and the filename of the collected diagnostics.is "YEARMONTHDAYHOURMINUTESECOND+OFFSET". Use the filename from the message received during the diagnostics collection step: Архив создан: /tmp/vpn_mgr_diag.ГОДМЕСЯЦДЕНЬЧАСМИНУТАСЕКУНДА+СМЕЩЕНИЕ.tar.gz
. (dot) - means copy to the directory you are currently in. You can specify your own if needed.
For example:
scp pi@192.168.1.100:/tmp/vpn_mgr_diag.20231027153000+0300.tar.gz .
When running the command, after pressing Enter, you will be prompted to enter the password for the pi user (or your user) on the Raspberry Pi. While typing, the password will not be displayed — this is normal for security reasons. Enter the password and press Enter.Note: If there are multiple files starting with vpn_mgr_diag. and ending with .tar.gz in /tmp/ on the Raspberry Pi, the scp command may throw an error or copy multiple files. Make sure there is only one current file or specify the exact filename.
3: Sending the File and Cleanup¶
Send the downloaded vpn_mgr_diag.*.tar.gz file to us for analysis.
🛡 Security Rules for Log Transmission:
If you are sending the log file directly as a file in Telegram to technical support — no additional action is required.
If the file is too large or you use public file-sharing services (e.g., Dropmefiles, fex.net, etc.):
1. On your computer, pack the downloaded .tar.gz file into a .ZIP or .RAR archive, обов'язково setting a password.
2. Do not rely on file-sharing features like "delete after one download" — the password must be set on the archive itself!
3. Send the download link to support, and send the password in a separate message.