ManualReference
Troubleshooting
What a message or a stuck window means, its likely cause and its fix: Chan Desktop, devservers, cs, chan serve, tmux and Linux defaults.
Find the symptom
Messages are quoted as chan shows them, or as they begin. Upper-case words such as PATH stand for your own values.
| You see | Likely cause | Fix |
|---|---|---|
| Starting Chan Desktop again opens no second copy | One copy runs per user account. The running one comes forward instead. | Chan Desktop |
| Chan is not responding | A running copy holds the app and does not answer. | Chan Desktop |
| Chan is still shutting down | A copy that is quitting has not exited after 20 seconds. | Chan Desktop |
| A window you hid is nowhere on screen | Hidden windows keep running, listed on the Computers screen. | Windows |
| Close tab or Close window flips a pane and flashes its A/B button | The pane is empty on this side, and its other side holds tabs. | Windows |
| A browser tab covered by hidden by the session leader or closed by the session leader | The session leader's page hid or closed that window. | Windows |
| A browser tab covered by client session detached | cs session detach disconnected that client. | Collaboration |
| Dimmed window buttons in a browser: The session leader manages this workspace's windows | This page is a follower. | Collaboration |
| Open window opens nothing in a browser | The browser blocked the pop-up. | Allow pop-ups |
A devserver's windows show reconnecting to the chan server | The connection dropped while the connect script still runs. | Devserver |
The devserver's windows close, and its control terminal ends with process exited (N); press Ctrl+D to close this tab | The connect script failed, as ssh does when the network goes. | Devserver |
| Connect is dimmed: Close the control terminal to reconnect | The dead control terminal of the last connection is still open. | Devserver |
| A devserver's icon turns red: Connection lost | Its window feed went silent, as after the computer sleeps, or its script exited. | Devserver |
A devserver's card reads stalled or reconnecting, or Windows and workspaces show again when the connection recovers. | The devserver stopped answering, as when the network or its tunnel stalls. | Connection health |
devserver HOST:PORT did not come up in time | Nothing answered at the Address for about 30 seconds. | Devserver |
devserver speaks management protocol N but this desktop speaks M; update whichever is older | Chan Desktop and the devserver speak different management protocols. | Devserver |
After chan devserver rotate-token, the Computers screen in a browser, or a devserver added with a token in its Address, no longer connects | The devserver dropped the old token at once. | Devserver |
not running inside a chan session; this needs $CHAN_WINDOW_ID, or $CHAN_CONTROL_SOCKET | The shell is not a chan terminal, such as an ssh session. | cs |
the chan window or server that spawned this terminal is no longer running | The window or server that started the terminal has exited, as after a restart. | cs |
this chan terminal has no CHAN_CONTROL_SOCKET | Its server started without a control socket. | cs |
cs NAME is only available in a workspace window; this is a standalone terminal. | The command needs a workspace. | cs |
no live terminal session matched | No terminal has that --tab-name or --tab-group. | cs |
no reply from the window (is it open in a browser?) | The window did not answer in 5 seconds, as when its browser tab is closed. | cs |
error: workspace 'PATH' is inside a Git repository at 'ROOT'., or Mercurial or Subversion | chan serves a repository from its root. | chan serve |
the workspace is held by another process, or This workspace is open in another chan process. Quit it and try again. | Another chan process serves the workspace. | chan serve |
| A lock in place of a workspace's power button: Workspace is open in another Chan process | Another chan process serves the workspace. | chan serve |
port 8787 is already in use | Another process, perhaps your devserver, listens on the default port. | chan serve |
refusing to close PATH: N live terminal(s) | Chan Desktop or a devserver serves the workspace, and its terminals run. | chan serve |
workspace is still releasing; retry, exit status 75 | The workspace is off and its cleanup still runs. | Run it again later |
--no-settings is enforced only by a server this command binds | The serve would hand the workspace to Chan Desktop or a devserver. | chan serve |
multiple local devservers are live and no unique target was found | Several of your devservers run. | chan serve |
tmux -CC adds no card to the Computers screen | tmux control mode is off, as it is by default. | tmux |
[chan] tmux X.Y is older than 3.2; detached | chan needs tmux 3.2 or newer. | tmux |
[chan] tmux control mode denied: no answer | Nobody answered the banner in 60 seconds. | tmux |
xdg-terminal-exec --print-id does not print chan-term.desktop | Another list or entry comes first. | Default apps |
xdg-open opens Markdown files or folders in another app | Another default holds the type. | Default apps |
chan-desktop is not running; start it and run chan-files again, or chan-edit or chan-term | The names of the chan command-line packages cannot start Chan Desktop. | Default apps |
this session has no display | The command ran over SSH or with no display. | Default apps |
The terminal's find bar reads ? of N | No match is selected, as after a resize or heavy output. | Find |
| Files dragged from another app onto the file browser do nothing | The file browser takes no files from outside. | Use Upload |
| External edit detected | Another program changed the open file. | Editor |
| File moved or deleted | The open file went away. | Editor |
| On Windows, a Ctrl+Alt shortcut types a character | Your layout's AltGr, which is Ctrl+Alt, types one on that key. | Assign another key |
Chan Desktop does not open
- A second start brings the running copy forward: its last focused window, or a new standalone terminal when none shows.
- Chan is not responding: quit the running copy, or end its
chan-desktopprocess (Force Quit on macOS, Task Manager on Windows), then start again. - Chan is still shutting down: wait for that copy to exit, or end its process, then start again.
Details and limits
- While the running copy is still starting, a second start opens nothing more: its windows are on their way. On Windows, a newer build started while an older copy is still starting, or while all of the older copy's handoff connections stay busy for five seconds, can run as a second copy beside it.
- Each Windows account runs a copy of its own.
- On Windows a start waits up to 30 seconds for a copy that is still starting.
- Started from a terminal, a start that fails prints the reason there instead of showing a dialog, and exits with status 1.
Windows you cannot find or close
- Show a hidden window from its row on the Computers screen, with h or its eye.
- With every window hidden, start Chan Desktop again, or click its Dock icon on macOS: a standalone terminal opens.
- A pane that flips instead of closing has tabs on its other side: close those too.
- A window the session leader closed is gone, with its terminals. Only the leader shows a window it hid: ask for leadership with
cs session handover.
Devserver connections
- Reconnecting: wait, press Show in Computers to see how the devserver's connection is doing, or, once the drop has lasted 8 s, press Restart connection to run the script again, or Abandon (see connection health).
- Process exited: read why in the control terminal, close it with Ctrl+D, and connect again.
- Connection lost: press o on the card to disconnect, then again to connect.
- Did not come up in time: check that the Address matches the local end of the script's tunnel, as in the recipes.
- Protocol or token: update the older side. After
rotate-token, open the URLchan devserver statusprints, or paste it into the devserver's Address.
Details and limits
- An ssh tunnel dies when the laptop sleeps or the network changes; Eternal Terminal reconnects across both.
- To update a devserver, run
chan upgrade, thenchan devserver restart, on its machine. - A connected devserver's settings are read-only: disconnect before you edit its Address.
- A devserver with no token in its Address reads the new one from its connect script at the next connect.
cs refuses
- Run
csin a chan terminal. Over ssh onlycs terminal statusandcs dump-skillwork. - No longer running or no CHAN_CONTROL_SOCKET: open a new terminal. If that fails too, the server's start-up log says why.
- Standalone terminal: open the directory with
chan open PATHand run the command in that window. - No match:
cs terminal listshows every terminal's name and group. - No reply: show the window from Computers, or name another with
--window.
chan serve and chan open
- Inside a repository: serve the root the message names, or add
--here. - Held by another process:
chan psnames what serves it, andchan close PATHstops it. When your devserver holds it,chan serve --devserver PATHregisters it there. - Port in use: add
--port 9000, or--devserver=8787when your devserver holds the port. - Live terminals: close them first.
--no-settings: add--standalone. Several devservers: add--devserver=PORT.
Details and limits
- A foreground
chan devserver runshares~/.chanwith Chan Desktop, so a workspace Chan Desktop serves shows there as Locked. Give it its ownCHAN_HOME. - The repository refusal exits with status 70 and prints both commands to run.
- A
chan servein the foreground also stops with Ctrl+C. - Closing a workspace with live terminals has no override.
tmux control mode
- Turn it on in Settings → Terminal → tmux control mode (tmux -CC), or with
chan config set terminal.tmux.enabled true. - Use tmux 3.2 or newer where
tmux -CCruns. - Answer the banner within 60 seconds, or trust the program in front, such as
ssh, withterminal.tmux.trust.
Default apps on Linux
- A list named for your desktop, such as
~/.config/hyprland-xdg-terminals.list, comes beforexdg-terminals.list. - The AppImage cannot be the default terminal: install the Arch, Ubuntu, Fedora or Nix package.
xdg-mime query default text/markdownnames the app in effect, andxdg-mime defaultchanges it.- The
chanpackage'schan-term,chan-filesandchan-editneed Chan Desktop running and a display.
Details and limits
- xdg-utils 1.1 reads only
~/.config/mimeapps.list. - With
CHAN_NO_DESKTOP_HANDOFFset, these commands open nothing and say so; unset it. - The full setup is in Default terminal and File browser and Markdown editor.