dashsquad

Troubleshooting

Common problems and errors in dashsquad, their causes, and how to fix them.

This page lists common problems, their causes and their fixes. Open an entry to read the fix.

Where the HQ keeps its files

An HQ that Desktop starts keeps its files in ~/.dashsquad/<hq id>/. The folder name <hq id> is the ID of the HQ. The HQ uses free ports and writes them to ~/.dashsquad/<hq id>/ports.json. A standalone HQ (npm run gateway) keeps its files in ~/.dash/gateway/ and uses ports 9300 and 9200. Some entries on this page give paths for a standalone HQ. For an HQ that Desktop starts, use ~/.dashsquad/<hq id>/ in place of ~/.dash/gateway/.

Common issues

Desktop start

Conversation sync

The entries for the HTTP and WebSocket codes are for people who build their own client. Refer to the HQ mobile API for the full contract.

Steer and Follow Up

Secrets and credentials

Remote access (relay)

Phones and the web app connect to your HQ only through the hosted relay. Refer to Remote access.

Remote HQs

Tool errors

Browser

Plugins

The paths in this section are for a standalone HQ. For an HQ that Desktop starts, use ~/.dashsquad/<hq id>/ in place of ~/.dash/gateway/.

Sub-agents

The paths in this section are for a standalone HQ. For an HQ that Desktop starts, use ~/.dashsquad/<hq id>/ in place of ~/.dash/gateway/.

Session issues

The paths in this section are for a standalone HQ. For an HQ that Desktop starts, use ~/.dashsquad/<hq id>/ in place of ~/.dash/gateway/.

Docker issues

Debug logs

Desktop writes its log to ~/.dashsquad/desktop/mc.log. An HQ that Desktop starts writes its log to ~/.dashsquad/<hq id>/logs/hq.log. Look at these files first when a problem occurs. To open the HQ log folder, click Show the log on the Your HQ did not start screen.

A standalone HQ writes its output to the terminal. Add the --verbose flag to get debug output:

npm run gateway -- --verbose

WhatsApp session recovery

If an HQ log reports WhatsApp recovery required, the affected channel has stopped before it connects. Other channels can continue.

  • legacy: the older session has no verified location record. Keep all existing session files; identical account details do not prove which copy contains the latest saved keys.
  • pairing or ownership: the saved session belongs to a different pairing or HQ. Do not rename folders or edit the record to reuse it.
  • initialization, state or path: a required file is missing, unreadable, incomplete, or points through an unsupported link. An empty file cannot safely restore a session.

Preserve the HQ folder and any older WhatsApp session folders. Ask for recovery assistance with the affected channel name and the reason above. Do not send credential files, replace them with an old pairing snapshot, delete them, or hand-edit a session record. Automatic selection or migration of an unverified older session is not supported.

HQ cannot safely read or preserve configuration

If HQ reports this error for channels.json, speech.json, or message-routing.json, it has refused a change because it cannot safely read or preserve the saved settings. A failed change does not reset those settings to defaults.

  1. Keep a copy of the affected file before you repair it. See HQ data folders to locate your HQ's files.
  2. Check that your user can read the file and write to its folder. Restore valid JSON from your backup if the file is damaged.
  3. For channels.json, restart HQ after repair. HQ will not start with a malformed or unreadable channel registry. For speech or message routing, retry the setting change after you fix the file or permissions.

When a readable speech or routing file contains invalid JSON, HQ preserves it under a unique .corrupt- filename before it uses defaults. If it cannot preserve that copy, it reports the error and refuses the change. Keep recovery copies until you have checked the restored settings.

On this page