Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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

SymptomWhere to lookWhat to do
A customer has no more inbound or outbound callsHealth: its trunk is not REGED, with the provider’s last refusal401/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 answersBanned IP addresses: the site’s address, the account targeted and the faulty deviceFix 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 passwordsLive capture, Banned IP addressesBan 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 TraceThe 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 audioThe customer’s Call log, the call’s Trace, Audio quality per legThe 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 registerOpen the customer’s area, Users, Phones tab, SIP settings and troubleshootingCompare 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 explanationLive captureThe customer’s SIP messages, as text, as a ladder diagram, or as a pcap for Wireshark.
A phone set to record has no recordingssudo kanadr verifier and the service logkanadr 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 writingsudo 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 UnauthorizedSettings, 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 stuckLive callsHang up.
Nothing works in the telephony engineHealthReload configuration, then as a last resort Restart the telephony engine.

On the VM

ForCommand
Check everything at oncesudo kanadr verifier
Service statesystemctl status kanadr kanadr-moteur nginx postgresql
Kanadr logsjournalctl -u kanadr (level set by KANADR_LOG)
Telephony engine logssudo kanadr console --journal
Telephony engine consolesudo kanadr console
Image first bootjournalctl -u kanadr-premier-demarrage
Active/passivesudo kanadr bascule etat, /var/log/kanadr-bascule.log
Audit log integritysudo kanadr audit verifier
Calls without an amount, received before their rate plansudo 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.