Docs · v0.5.3
Troubleshooting
Ugh, why is it doing that? This page goes through the problems people run into, what the app says when they happen, and what to try. At the end: where the log is, how to make a capture, and what to put in a bug report.
It won't start
"not a config this version reads"
/home/pi/.config/trunk-pro/config.json: not a config this version reads (expected `,` or `}` at line 41 column 5)The config file isn't valid JSON, a value has the wrong type (text where a number goes, say), or a
choice isn't one the app lists (a system type of P25x, a vocoder of best):
config.json: not a config this version reads (unknown variant `P25x`, expected one of `p25`, `smartnet`, `dmr`, `nxdn` at line 12 column 20)The part in brackets says what and where. This usually comes from a hand edit: a missing comma,
a trailing comma, a stray quote or a misspelt choice (choices are read in any case, so P25 is
fine). Fix that line, or move the file aside and start again (the app starts with the default
config, one RTL-SDR and no systems, when there's no file). The choices each key takes are listed
in the config reference.
A Trunk Recorder config.json is a different format. Don't point --config at one; bring it over
with Import… instead (see
Migrating from Trunk Recorder).
The app reads the config when it starts and writes it whenever you change something in the interface, so edit the file by hand only while the app is stopped.
Other things that stop it at start, each with its message:
| Message | Fix |
|---|---|
--log-level x: trace, debug, info, warning, error or fatal |
Use one of those |
--port x: a port number, 1–65535 |
A number in that range |
bind address: … |
--bind or server.bind must be an IP address (127.0.0.1, 0.0.0.0), not a host name |
--ui <folder>: no index.html there |
Point --ui at a folder with an index.html |
Interface <id>: can't serve it on port <n>: … |
Another program has the port (or it's below 1024): pick another on the Interfaces page |
Started from Finder, Explorer or a desktop launcher, these show as a dialog (macOS) or a notification (Linux) titled "Trunk Recorder Pro couldn't start".
"Port 8080 is in use by another program"
Something else is using the port. Start on another one:
trunk-pro --port 8081or set server.port in the config. If what's on the port is another copy of Trunk Recorder Pro,
you won't see this: the new copy opens your browser on the running one and exits, and the log
says Trunk Recorder Pro is already running — http://localhost:8080. To run two recorders at
once, give each its own config and port (--config, --port).
macOS says it can't be opened
Until releases are signed with an Apple Developer ID, macOS blocks the first launch. Open the app once, then go to System Settings → Privacy & Security and click Open Anyway. The app has no Dock icon: it opens its interface in your browser.
Windows warns about an unrecognised app
SmartScreen may warn the first time: click More info → Run anyway.
Start is greyed out (or "Not started")
When the settings can't record, Start is greyed out and hovering over it says why. The same
check runs when recording starts from --start or Record when the app starts, and
the log says Not started: <why>, the first problem found. The reasons:
| Message | What to do |
|---|---|
Add a source (a dongle or a capture file). |
Setup → Radios → Add a source |
Choose the capture file to replay. |
A capture-file source has no file |
Not started: <system> is set to receive on <source>, which isn't a source — choose its sources again. The sources: … |
A system's or conventional channel's Receive on names a radio that was taken out or renamed. The rest records; the sources there are are listed once, to copy a label from. With several left out it names each, <system> (on <source>) |
Source N: the USB transfer size must be a multiple of 512 bytes, at most 16 MiB. or Source N: at most 256 USB transfers in flight. |
An RTL-SDR's bufLen or buffers (Setup's USB transfer size) is out of range; 65536 is the usual value |
Source N: a HackRF runs at 1 to 20 MSPS. or Source N: a HackRF's LNA gain is 0–40 dB in 8 dB steps, its VGA gain 0–62 dB in 2 dB steps. |
A HackRF's rateHz, lnaDb or vgaDb is out of range |
Source N: a HydraSDR's input is ANT, CABLE1, CABLE2. or Source N: the HydraSDR's bias-T is on ANT only, … |
A HydraSDR's rfPort is over 2, or its biasTee is on with another input |
Source N: the USRP's wire format is sc16, sc12 or sc8 (or empty, to choose). |
A USRP's wireFormat |
Add a system with a control channel, or a conventional channel. |
A trunked system only counts once it's enabled and has a control channel; a conventional one once it has an enabled channel |
Every system needs a short name. |
Give it one in Setup |
Two systems are named "x" — each needs a short name of its own … |
Short names are folder names and how plugins tell systems apart, so they must differ (conventional systems included, enabled or not) |
Two sites of x are named "y" — each needs a name of its own. |
Site names are unique within their system |
A site of x is named "y", which is another system's short name — one of them needs another name. |
Rename the site or the other system |
x: … (a signal problem, such as x: two signals are called y …) |
A system's signals can't be used: no id, an id used twice, a pattern it doesn't know, a page without its two tones |
Set a center frequency for source N — it couldn't be placed automatically … |
Automatic centring couldn't fit the channels. Set the centre yourself, or add a source. See Radios. |
x: … (a band plan problem) |
A SmartNet system's band plan isn't one it knows, or 400_custom lacks a number; see SmartNet |
x: DMR frequencies outside every source's bandwidth: … MHz — move a center frequency or add a source. (or NXDN, EDACS, LTR) |
Every control and voice frequency of a DMR, NXDN, EDACS or LTR site has to be covered |
No control channel of x falls inside any source's bandwidth — move a center frequency or add a source. |
At least one control channel must be inside a source's usable band (its band minus the guard band at each edge: see Guard band) |
x: an EDACS site needs its channel list — each LCN (1–25) and its frequency. |
Fill in the site's lcnTableHz; see EDACS |
Conventional channel … MHz is in both a and b — a frequency belongs to one conventional system. |
As it says |
A conventional channel has no frequency yet. |
Fill it in or remove the row |
Conventional channel(s) outside the bandwidth of every source they may be received on: … MHz — move a center frequency or disable them. |
As it says |
Conventional channel … MHz: … |
Its tone, NAC, colour code or RAN can't be read (151.5 Hz isn't a standard CTCSS tone — 151.4?); see Typing a code |
Conventional channel … MHz: a bandwidth is 4–20 kHz. |
A channel's Bandwidth kHz is outside that range |
<system>: AM low cut is 0–600 Hz. (also Squelch open delay is 0–500 ms., Squelch hang is 0–1000 ms.) |
A conventional system's demodulation setting is out of range |
File name format: Unknown token: {x}. (or <system>'s file name format: …, or A { has no closing }.) |
A file name format has a token that isn't one of the listed ones, or a { with no } |
Conventional channel … MHz is listed with different modes … (or sources, or bandwidths) |
Rows sharing a frequency need the same mode, sources and bandwidth |
Conventional channel … MHz is listed twice without a tone … (or NAC, or code) |
Give each row its own code; one may have none |
Conventional channel … MHz is auto — it has no tone or code to split a frequency by, so it is one row without one. (or AM) |
Remove the other rows or the code, or give the channel a mode |
Conventional channel … MHz has two rows for … |
Two rows ask for the same code (or two DCS codes that are the same signal, such as D023N and D047I) |
Channel file <file>: … |
A linked channel file can't be read (missing, empty, or no Frequency column) |
Some of the "outside" messages end with Suggested settings reach it: … and the sources' settings
that would (Setup → Radios). An encryption key file that can't be read, or a bad key in it, also
stops the start, with a message saying which key and what to fix (see
Encryption keys).
My dongle isn't found
Check what the app can see:
trunk-pro devicesSetup → Radios lists your dongles too, and says when one is in use by another program or the app
has no permission to open it. Dongle not showing up? on that tab has the short version of
what follows.
Plug it straight into the computer. Skip hubs and extension cables; if one port fails, try another.
Only one program can use a dongle. Quit SDR#, SDR++, GQRX,
rtl_tcp, another recorder, andtrunk-pro capture.Linux: permission.
install.shadds a udev rule for you (it covers HackRFs too). Without it, add one and replug the dongle:printf '%s\n' \ 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", MODE="0666"' \ 'SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE="0666"' \ | sudo tee /etc/udev/rules.d/20-rtlsdr.rules sudo udevadm control --reload-rules && sudo udevadm triggerLinux: the TV-tuner driver. Linux may claim an RTL-SDR as a TV tuner (
dvb_usb_rtl28xxu). The app detaches it when it opens the dongle, but if it gets in the way, stop it for good:echo 'blacklist dvb_usb_rtl28xxu' | sudo tee /etc/modprobe.d/blacklist-rtlsdr.conf sudo rmmod dvb_usb_rtl28xxuWindows: the USB driver. Every RTL-SDR program on Windows needs the WinUSB driver, once. Get Zadig, choose Options → List All Devices, pick Bulk-In, Interface (Interface 0), make sure WinUSB is selected, press Replace Driver, then replug the dongle.
macOS: works as it is. If it's missing, look in System Report → USB for RTL2838 or your radio's name; if it isn't there, try another cable or port.
"its tuner isn't supported natively"
open RTL-SDR (first): its tuner isn't supported natively (only R820T / R828D / E4000; not FC0012, FC0013 or FC2580) — add it as a SoapySDR source with device arguments driver=rtlsdr instead (needs SoapySDR's RTL-SDR module)The built-in RTL-SDR driver handles the R820T, R828D and E4000 tuners (nearly every dongle). For an FC0012, FC0013 or FC2580 one, install SoapySDR and its RTL-SDR module and add the dongle as a SoapySDR source; see Other radios.
Source errors while recording
USB trouble shows as Source 0: <error> (sources counted from 0) in the log and on the RF page (open RTL-SDR …,
USB: …, USB stream timed out). The app reopens the dongle by itself after 2 seconds, so a
dongle that was unplugged and plugged back in carries on. If it keeps happening, suspect the cable,
the hub or the power supply (a Raspberry Pi with a weak supply is a common one).
Opening a radio, and searching for one, gives up after a deadline (5 s for an RTL-SDR, HackRF or Airspy; 15 s for a bladeRF or SoapySDR device; 30 s for a USRP). A radio whose firmware is stuck says:
<radio> isn't answering (its firmware is stuck): unplug it and plug it back in, or power-cycle its USB hubDo that; the other radios keep opening meanwhile. An RTL-SDR or HackRF whose USB stream is stuck is
reopened, with keeps sending the same samples over and over (its USB stream is stuck, so the waterfall stands still) or sends samples at N× its sample rate ….
A HackRF with firmware older than 2021.03 is refused when opened: update it with hackrf_spiflash.
The control channel isn't decoding
A trunked system lives on its control channel: if that isn't decoding, nothing gets recorded. Signs:
The system's light is red and says
Control channel lost, hunting — check antenna, gain, frequencyThe Overview's system card says
huntinginstead of a frequency.The log has errors like this every 10 seconds:
freq: 857.262500 MHz Control Channel Message Decode Rate: 2.3/sec, count: 23
That line is logged as an error whenever a control channel decodes fewer messages a second than
Decode rate warning in Setup → Recording → Log (log.controlWarnRatePerS, 10 by default). Set
it to -1 to log the rate every 10 seconds even when it's fine, which is handy while you tune.
Every 200 seconds the log also prints each system's average rate under Control Channel Decode Rates:.
What to try, in order:
- The frequency. Is it a current control channel for this site? Check RadioReference, or let Find my system find it. Add the alternates too: the recorder moves to another when one stops.
- Inside the band. The control channel should be well inside a source's band, not near its edge. The RF page's The band shows where it falls.
- Gain. Look at the RF page: Headroom near 0 or clipping means too much; a channel only a few dB above the floor means too little (or the antenna). Change it a few dB at a time.
- Frequency error. A radio that's several ppm off can miss the channel entirely. Turn on AutoTune, or set the ppm that Frequency error reports. See Radios.
- Decode page numbers. Eye opening under 4 or Phase error over 20° means the signal is weak or distorted where you are: a better antenna or location helps more than settings. On a simulcast system, try another site's control channel.
If it decodes but fewer messages than usual with more lost ones, the Decode page says so in amber: that points at reception (multipath, a marginal signal), not at traffic.
"The control channel is another system's"
Control channel 857.26250 MHz is not this system: NAC 2A3 (expected 2A4)The site has a site lock (its expect in the config, set by Find my system or by hand) and the
control channel it found belongs to a different system or site. Its grants aren't followed and the
recorder keeps hunting. Either the frequency belongs to another site (fix the control channel list),
or the expected identity is wrong (fix or clear it). See Multiple sites.
Calls are empty, or missing
- Encrypted calls. They show as
encrypted. Encrypted audio can't be decoded, so by default they aren't recorded.recordEncryptedin the config records them anyway (there's no switch for it in the interface); they'll have no usable audio. - "Call not saved - no audio, or shorter than the minimum". Calls with no decoded audio are dropped unless Calls with no audio is on in Call rules, and calls shorter than Shortest call are dropped too. See Recordings.
- Garbled or broken-up audio. Look at Voice lost on the Decode page. Over 8% is bad. The frequency table there shows whether it's one frequency (interference), the frequencies near a band edge (move the centre), or all of them (gain, antenna, ppm).
- Calls you know happened aren't there. The Radio system page's Call outcomes shows where they went: No recorder (raise Recorders), Out of band (a voice channel no source covers: click it for which frequencies, and how far each is past the nearest source's edge), Not in file (unknown talkgroups are off), Ignored.
Nothing is recorded on a conventional channel
Conventional channels have no control channel to say when someone talks, so the recorder opens a
channel when its signal rises far enough above the noise floor: the squelch, 8 dB by default
(squelchDb for a system, Squelch dB for a channel).
- Nothing at all: lower the squelch a few dB, and check on the RF page that the channel is inside a source's band and the frequency is right.
- Recordings of noise: raise it.
- A tone, NAC, colour code or RAN on the channel: only transmissions that match are recorded. If it's wrong, nothing is. The Heard: row under the channel in Setup → Conventional shows the codes actually on the air; see Tones.
More in Conventional.
Dropped samples
The source's light goes red with Dropping samples — CPU or USB can't keep up; calls lose audio,
the RF page shows Dropped above zero, and the event feed says
<source>: dropping samples. trunk-pro capture prints how many it dropped too.
The radio delivers samples at a fixed rate and the driver has only a small buffer: if the app doesn't collect them in time, they're lost. Causes, most likely first:
- CPU. Check the Platform page and Decoding load on the Overview. A lower sample rate, fewer sources, or a faster computer helps.
- USB. Several dongles on one hub or one bus, a long or poor cable, or a Raspberry Pi with a weak power supply. Spread dongles across ports. An RTL-SDR reports the samples its chip dropped at each retune or gain change; losses the driver doesn't report show up as samples falling behind the clock and are logged as "lost without its driver saying so".
- A busy computer. If the queue to the decoder is full, the block is dropped there and counted
(the gap is filled), rather than letting the radio's own buffer overflow unseen. Receive threads run
at real-time priority on macOS and Linux. On Linux that needs
CAP_SYS_NICE; if it is refused, the log says once "can't run at real-time priority". Allow it withsudo setcap cap_sys_nice+ep $(which trunk-pro)(again after each update). A user systemd unit can't grant it. File capabilities make the dynamic loader ignoreLD_LIBRARY_PATH, so if UHD or SoapySDR are found only through it (radioconda,/optinstalls), name the library withTRUNK_PRO_UHD/TRUNK_PRO_SOAPY(the path of the library file), or skipsetcap. - Linux: "usbfs_memory_mb". A USB transfer refused for lack of memory means the radios' transfers have used up Linux's USB memory (16 MB by default). The message gives the command to raise it.
- Something else on the computer hogging it for a moment (a backup, a screen-sharing session).
Airspys drop a buffer (6.5 ms at 10 MS/s) when the thread taking them runs more than ~50 ms late. The recorder takes the Airspy's raw samples and turns them into IQ on its own decoding thread, so the thread reading USB only copies. If an Airspy's channels ever look wrong (nothing decodes, or the spectrum looks mirrored), tell us. On Windows, an Airspy or HydraSDR whose driver was replaced with Zadig (libusbK or libusb-win32) can't be opened: switch it back to WinUSB.
USRPs have a very small buffer by default, so the app asks UHD for a bigger one
(num_recv_frames=1024, about 260 ms at 8 MSPS) unless your device arguments set num_recv_frames
themselves. Other USRP messages: USRP can't run at … MSPS (it offers …); set that sample rate
(pick a rate the device supports) and USRP: no samples for 3 s.
Clipping or "Peaks at full scale"
The source's light says Gain too high · N% clipping or Gain too high · peaks at full scale
(and the event feed Samples at full scale). For the opposite the card suggests Gain may be low · peaks … dBFS
without changing its light, and not on a source that carried a call in the last day.
For the first two, the gain is too high, or there's a strong transmitter nearby. Lower the gain a few dB. On the RF
page, Headroom should stay a few dB above zero. More gain isn't better: past a point it
raises the noise and overloads the radio. See Radios.
No M4A files
No M4A encoder found (install ffmpeg): calls are kept as WAV onlyKeep .m4a needs an encoder: ffmpeg (any system), afconvert (built into macOS) or
fdkaac, found on your PATH. Install ffmpeg (brew install ffmpeg, sudo apt install ffmpeg).
trunk-pro plugin list says which encoder it would use. M4A encoding is off: calls are kept as WAV only means the encoder is set to none. See Recordings.
A plugin keeps failing
The Plugins page's Health tab shows each plugin's state and last failure.
[<id>] exited (1); restarting in 4 s: the plugin crashed. It's restarted automatically, waiting a little longer each time (up to a minute). Restarts counts these. Open Last 24 h and log ▾ for what it said before it died.- A plugin that stops because of its settings says why in its status and isn't restarted until the next Start. Fix its settings in Setup → Plugins.
[<id>] is falling behind: N event(s) dropped so far: the plugin is too slow to keep up, and events it couldn't take were dropped. Fell behind (N events) shows it on its card.- A service shown as down: the plugin failed 3 times in a row, or hasn't succeeded in 5 minutes. Check your internet (Platform page) and the plugin's key or URL.
To see exactly what a plugin does with a call, run it by hand against calls already on disk:
trunk-pro plugin run openmhz ~/TrunkRecorderPro/dcfd --limit 3See Plugins.
The RAM spool
No RAM spool (…): calls go to the recordings folder means the spool couldn't be made; recording
carries on, writing to disk. Spool warnings in the event feed (filling, full) mean the plugins
aren't uploading as fast as calls arrive. Nothing is lost when it's full: calls go to the
recordings folder instead. See Recordings.
RAM spool deleted (Linux): systemd deletes a user's files in /dev/shm
when their last login session ends (RemoveIPC, on by default), as when the SSH session that
started trunk-pro closes, or someone logs in and out as the account a system service runs as.
The app makes the spool again, but calls waiting in it for their uploads are lost, and each
logout deletes it again. Run it as the user service or a
system service with
RuntimeDirectory=trunk-pro, which keeps the spool in the service's own folder; or set
RemoveIPC=no in /etc/systemd/logind.conf and restart (or sudo systemctl restart systemd-logind).
Spotlight
On macOS, the Platform page may say Spotlight indexes recordings. Spotlight reads every call you save into its index: disk writes for files nobody searches. Apps can't change Spotlight's list, so do it yourself: System Settings → Spotlight → Search Privacy, click +, and choose the recordings folder. The app checks again once a day. If it can't tell (Spotlight may index recordings), click I've done it once you have. See Spotlight on macOS.
A browser or page is "Refused"
Refused a page from http://192.168.1.50:3000: add it to server.allowedOrigins in the config to let it use the interface.The app only lets its own pages drive it, so other web pages can't. Each interface it serves uses the API on its own port: a page on port 8081 is refused on 8080. For a page served by something else, add its origin to Pages served elsewhere on the Interfaces page. See Why a page gets "Refused".
Signed out, or locked out
With signing in on, a browser without a token gets the
sign-in page, and a program gets 401 (Sign in first: an access token as Authorization: Bearer, ?token=, or POST /api/login.).
- "Not a token here" on the sign-in page: the secret is wrong, or its user was removed. A token's secret can't be shown again; ask an Admin to add you again (New token).
- Signed out everywhere at once: someone removed your user or made your token again, signing
in was turned on, or
session-keybeside the config was deleted (what browsers' sign-ins are signed with: deleting it and restarting signs every browser out). A sign-in lasts 30 days. Signed out at every restart: the log says the recorder couldn't keepsession-key(check the config folder's permissions). - No way to sign in, only View: with Without a token set to View, the recorder shows
the dashboard without asking. Sign in in the top bar (or
/signin) is the sign-in page. - Locked out (no Admin token left to you): on the recorder's computer, run
trunk-pro access off(with--configif it uses another config) and restart the recorder. Then add a new Admin in Setup → Access and turn Sign-in back on. - A page from another origin gets 401 although it's in
server.allowedOrigins: with signing in on, it must send a token too (API docs).
Where is the log?
The log always goes to the terminal (stderr) unless you turn that off. Set it up in Setup →
Recording → Log, or in the config's log section:
| Setting | What it does |
|---|---|
| Level | info by default. debug adds calls that weren't recorded; trace adds every control message. --log-level on the command line overrides it for one run. |
| To files | Off by default. Files go in logs/ beside the config file (or Folder), named like Trunk Recorder's (10-06-2026_1415_00.log), a new one each day and at 100 MB. |
| One file, for logrotate | One trunk-pro.log, appended to and never rotated by the app. Send SIGHUP after logrotate moves it. |
| To the system log | syslog, on Linux and macOS |
The folder beside the config file is your app's config folder unless you used --config:
~/Library/Application Support/trunk-pro on macOS, %APPDATA%\trunk-pro on Windows,
~/.config/trunk-pro on Linux. Running as the systemd user service, the terminal output goes to
the journal:
journalctl --user -u trunk-pro -fOn Raspberry Pi OS, whose journal is in RAM only, that says "No journal files were found": use
journalctl --user-unit trunk-pro -f instead (with sudo if it shows nothing).
The journal isn't a terminal, so the log has no colour there. For colour, set Colour to
Console, and follow it with journalctl --user-unit trunk-pro -f -o cat -a: -o cat drops
the journal's own timestamps (each line has one already), -a passes the colour through.
The Control channel log at the bottom of a system's Radio system page is a live view of control messages, not this log.
Making a capture
A capture is a recording of the raw radio signal. It lets someone else replay exactly what your radio heard, which is the most useful thing you can attach to a decoding problem. The easiest way is the IQ capture card at the bottom of the RF page, which works while recording and can send the capture in for you: see Captures.
From the command line, stop recording first (the dongle can only be open once), then:
trunk-pro capture problem.cu8 --freq 858500000 --rate 2400000 --gain 25 --seconds 30Use the same centre, rate and gain as your source in Setup. Thirty seconds at 2.4 MS/s is about 145 MB, so compress it before sharing it. You can replay it yourself to try settings:
trunk-pro replay problem.cu8 --center 858500000 --rate 2400000 --cc 857262500See Command line for all of capture and replay.
Reporting a bug
Open an issue at github.com/TrunkRecorder/trunk-recorder-pro/issues. Include:
- the version (
trunk-pro --version) and your system (macOS, Windows, Linux or Raspberry Pi, and which radio); - what you did, what you expected, and what happened;
- the log around the problem, at
debuglevel if you can; - your config file. It can hold plugin keys and passwords: remove them first;
- for a decoding problem, a short capture (see Captures) and the system's frequencies, or its RadioReference page;
- for a dashboard problem, a screenshot.