Skip to content

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 seeLikely causeFix
Starting Chan Desktop again opens no second copyOne copy runs per user account. The running one comes forward instead.Chan Desktop
Chan is not respondingA running copy holds the app and does not answer.Chan Desktop
Chan is still shutting downA copy that is quitting has not exited after 20 seconds.Chan Desktop
A window you hid is nowhere on screenHidden windows keep running, listed on the Computers screen.Windows
Close tab or Close window flips a pane and flashes its A/B buttonThe 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 leaderThe session leader's page hid or closed that window.Windows
A browser tab covered by client session detachedcs session detach disconnected that client.Collaboration
Dimmed window buttons in a browser: The session leader manages this workspace's windowsThis page is a follower.Collaboration
Open window opens nothing in a browserThe browser blocked the pop-up.Allow pop-ups
A devserver's windows show reconnecting to the chan serverThe 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 tabThe connect script failed, as ssh does when the network goes.Devserver
Connect is dimmed: Close the control terminal to reconnectThe dead control terminal of the last connection is still open.Devserver
A devserver's icon turns red: Connection lostIts 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 timeNothing answered at the Address for about 30 seconds.Devserver
devserver speaks management protocol N but this desktop speaks M; update whichever is olderChan 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 connectsThe devserver dropped the old token at once.Devserver
not running inside a chan session; this needs $CHAN_WINDOW_ID, or $CHAN_CONTROL_SOCKETThe shell is not a chan terminal, such as an ssh session.cs
the chan window or server that spawned this terminal is no longer runningThe window or server that started the terminal has exited, as after a restart.cs
this chan terminal has no CHAN_CONTROL_SOCKETIts 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 matchedNo 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 Subversionchan 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 processAnother chan process serves the workspace.chan serve
port 8787 is already in useAnother 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 75The workspace is off and its cleanup still runs.Run it again later
--no-settings is enforced only by a server this command bindsThe serve would hand the workspace to Chan Desktop or a devserver.chan serve
multiple local devservers are live and no unique target was foundSeveral of your devservers run.chan serve
tmux -CC adds no card to the Computers screentmux control mode is off, as it is by default.tmux
[chan] tmux X.Y is older than 3.2; detachedchan needs tmux 3.2 or newer.tmux
[chan] tmux control mode denied: no answerNobody answered the banner in 60 seconds.tmux
xdg-terminal-exec --print-id does not print chan-term.desktopAnother list or entry comes first.Default apps
xdg-open opens Markdown files or folders in another appAnother default holds the type.Default apps
chan-desktop is not running; start it and run chan-files again, or chan-edit or chan-termThe names of the chan command-line packages cannot start Chan Desktop.Default apps
this session has no displayThe command ran over SSH or with no display.Default apps
The terminal's find bar reads ? of NNo match is selected, as after a resize or heavy output.Find
Files dragged from another app onto the file browser do nothingThe file browser takes no files from outside.Use Upload
External edit detectedAnother program changed the open file.Editor
File moved or deletedThe open file went away.Editor
On Windows, a Ctrl+Alt shortcut types a characterYour 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-desktop process (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 URL chan devserver status prints, 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, then chan 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 cs in a chan terminal. Over ssh only cs terminal status and cs dump-skill work.
  • 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 PATH and run the command in that window.
  • No match: cs terminal list shows 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 ps names what serves it, and chan close PATH stops it. When your devserver holds it, chan serve --devserver PATH registers it there.
  • Port in use: add --port 9000, or --devserver=8787 when 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 run shares ~/.chan with Chan Desktop, so a workspace Chan Desktop serves shows there as Locked. Give it its own CHAN_HOME.
  • The repository refusal exits with status 70 and prints both commands to run.
  • A chan serve in 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 -CC runs.
  • Answer the banner within 60 seconds, or trust the program in front, such as ssh, with terminal.tmux.trust.

Default apps on Linux

  • A list named for your desktop, such as ~/.config/hyprland-xdg-terminals.list, comes before xdg-terminals.list.
  • The AppImage cannot be the default terminal: install the Arch, Ubuntu, Fedora or Nix package.
  • xdg-mime query default text/markdown names the app in effect, and xdg-mime default changes it.
  • The chan package's chan-term, chan-files and chan-edit need Chan Desktop running and a display.
Details and limits