Troubleshooting
Most incidents are handled from the portal, Diagnostics page (see Diagnostics), without SSH: health, live calls, live SIP capture, call trace, banned addresses, reloading and restarting the telephony engine. Each action there is recorded in the audit log, and also exists in the API and the MCP server.
Typical incidents
| Symptom | Where to look | What to do |
|---|---|---|
| A customer has no more inbound or outbound calls | Health: its trunk is not REGED, with the provider’s last refusal | 401/403: fix the username or password on the trunk page; 404: account unknown to the provider; 408/503 or FAIL_WAIT: the provider does not answer (address, network). Then Re-register. |
| A whole site has no phones, the portal answers | Banned IP addresses: the site’s address, the account targeted and the faulty device | Fix the device (password, domain), then Unban; an address that must never be banned goes in the allow list. The customer admin sees the same block in their users’ Phones tab and can Unblock the address of their site. |
| A bot is trying passwords | Live capture, Banned IP addresses | Ban an address by hand, for the duration chosen. |
| “My call didn’t go through”, “it cut off” | The customer’s Call log, then the call’s Trace | The trace shows the steps followed, the cause and the SIP code. A call flow error: Replay publication, in the ⋯ menu of the customer’s page. |
| Choppy audio, gaps, one-way audio | The customer’s Call log, the call’s Trace, Audio quality per leg | The flagged leg tells you where to look: the site’s network for an extension, the provider for a SIP trunk; see Diagnostics. |
| A phone configured by hand does not register | Open the customer’s area, Users, Phones tab, SIP settings and troubleshooting | Compare username, password, server and domain, port (and outbound proxy, shown when the customer’s domain is not under the instance suffix) with the phone’s; each time the password is shown is written to the audit log. |
| A phone does not register, a call fails without explanation | Live capture | The customer’s SIP messages, as text, as a ladder diagram, or as a pcap for Wireshark. |
| A phone set to record has no recordings | sudo kanadr verifier and the service log | kanadr verifier reports an unreadable recording template; the service adds recording to the customers that lack it when it restarts. Full volume: see Recordings. |
| Importing recordings, uploading an announcement or a voicemail message fails with “internal error”; the home page reports telephony engine folders closed to writing | sudo kanadr verifier (droits line), journalctl -u kanadr (the refused path and the folder’s permissions) | The telephony engine creates its folders without group write access; Kanadr requests their repair itself, and every package update repeats it. By hand: sudo kanadr-droits-fichiers, then try again. |
No update is offered any more; on the server, sudo apt update answers 401 Unauthorized | Settings, Updates card: “The update repository refuses this instance” | License missing or expired for more than 30 days, or download token expired: load a valid license, or install a token; see Access to the repository. |
| A call is stuck | Live calls | Hang up. |
| Nothing works in the telephony engine | Health | Reload configuration, then as a last resort Restart the telephony engine. |
On the VM
| For | Command |
|---|---|
| Check everything at once | sudo kanadr verifier |
| Service state | systemctl status kanadr kanadr-moteur nginx postgresql |
| Kanadr logs | journalctl -u kanadr (level set by KANADR_LOG) |
| Telephony engine logs | sudo kanadr console --journal |
| Telephony engine console | sudo kanadr console |
| Image first boot | journalctl -u kanadr-premier-demarrage |
| Active/passive | sudo kanadr bascule etat, /var/log/kanadr-bascule.log |
| Audit log integrity | sudo kanadr audit verifier |
| Calls without an amount, received before their rate plan | sudo kanadr revaloriser (see Rate plans) |
The kanadr commands run with the service’s settings: see Server
settings.
Accounts
- Forgotten password: the “Forgot your password?” link on the sign-in page, or Send
invitation (the account’s Manage button) on the customer’s page. Without email set up:
sudo kanadr inviter --courriel …prints the link. - Two-step verification phone lost: an administrator resets it in the portal, or
sudo kanadr reinitialiser-second-facteur --courriel …on the VM. - Account locked after 5 failures: it unlocks by itself after 15 minutes.
Engine administration interface
Kanadr drives the telephony engine, whose administration interface stays closed. For in-depth
troubleshooting, the procedure that opens it for the time of an intervention is shipped on the
machine: /usr/share/doc/kanadr/advanced-troubleshooting.md.
Vendor support
For an intervention by the vendor, open time-limited access: portal, Diagnostics page,
Support access section, or sudo kanadr acces-assistance ouvrir --heures 24. It is closed by
default, can be closed at any time, and each of its actions is in the audit log.