Diagnose a failure
Record the binary version, build variant, operating system, invocation and smallest
failing config. Development builds use gocdm version; published v0.0.26 uses
gocdm -version. Run a noninteractive config check with -dry-run before changing
login services. Review output for personal information and credentials before sharing.
| Symptom | Check and next action |
|---|---|
requires root privileges with -login | From an already-authenticated shell, use -mode=user; getty login mode belongs to the administrator’s direct console service. |
cannot run inside ... graphical ... or SSH | Use user mode in an existing session. Test direct login on a spare real VT. |
interactive TTY | Launch from an interactive terminal; use -dry-run only for planning without one. |
conflicting mode flags | Select one mode; -login=false explicitly requests user mode. |
| No sessions or a missing desktop | Install the desktop, check its .desktop Exec/TryExec and Hidden/NoDisplay fields, or provide aligned config arrays. |
startx or another required tool missing | Install the tool appropriate to that session; external dialog is unnecessary. |
| Authentication rejected | Verify a PAM-enabled build and the intended service; inspect the distribution’s authentication logs. Preserve account and MFA policy. |
| Session environment cannot be built | Check canonical account data and the configured PAM service’s environment modules. Put distribution environment settings in PAM policy. |
| Runtime directory or D-Bus absent | Check PAM/logind/elogind and the desktop session setup; a directory created by hand is not a replacement for a managed runtime session. |
| Saved state ownership/symlink refusal | Inspect ~/.config/gocdm and state.json; repair only the specific confirmed owner/path after checking for symlinks. GoCDM will not recursively chown the tree. |
| Home unavailable | Check the account’s home and access rights. The development launcher warns when falling back to /. |
| Login loop | Use the recovery console and follow recovery. |
Read preparation diagnostics
On development builds, -debug-env emits JSON during actual session preparation.
It reports the mode, session kind, numeric account IDs and their source. Known
environment names report presence, duplicates and limited syntax checks; values
and unknown names are withheld. relative_path or control_characters can help
locate a malformed setting without printing its contents.
These checks do not establish that a runtime directory, D-Bus session or desktop is usable. Inspect the relevant session logs as well. Numeric IDs and configuration paths can still be personal information; review the report before sharing it.
For systemd getty tests, inspect journalctl -u getty@tty2.service from your recovery
session. In a successfully launched desktop, inspect loginctl session-status and
loginctl list-sessions. On other systems use the equivalent PAM/session logs.
If a PAM challenge fails, record the stage and the service name. Prompt text and ordering come from the configured PAM modules. An expired account cannot start a session. A password change requires the configured password stack to complete successfully. Keep responses private when reporting a failure in the issue tracker.