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.

SymptomCheck and next action
requires root privileges with -loginFrom an already-authenticated shell, use -mode=user; getty login mode belongs to the administrator’s direct console service.
cannot run inside ... graphical ... or SSHUse user mode in an existing session. Test direct login on a spare real VT.
interactive TTYLaunch from an interactive terminal; use -dry-run only for planning without one.
conflicting mode flagsSelect one mode; -login=false explicitly requests user mode.
No sessions or a missing desktopInstall the desktop, check its .desktop Exec/TryExec and Hidden/NoDisplay fields, or provide aligned config arrays.
startx or another required tool missingInstall the tool appropriate to that session; external dialog is unnecessary.
Authentication rejectedVerify a PAM-enabled build and the intended service; inspect the distribution’s authentication logs. Preserve account and MFA policy.
Session environment cannot be builtCheck canonical account data and the configured PAM service’s environment modules. Put distribution environment settings in PAM policy.
Runtime directory or D-Bus absentCheck 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 refusalInspect ~/.config/gocdm and state.json; repair only the specific confirmed owner/path after checking for symlinks. GoCDM will not recursively chown the tree.
Home unavailableCheck the account’s home and access rights. The development launcher warns when falling back to /.
Login loopUse 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.