diff --git a/nix/host-modules/hive-gateway/error-pages.nix b/nix/host-modules/hive-gateway/error-pages.nix index 3285632c..f1ad62e9 100644 --- a/nix/host-modules/hive-gateway/error-pages.nix +++ b/nix/host-modules/hive-gateway/error-pages.nix @@ -56,6 +56,24 @@ in ''; }; + # Shown when the authelia vhost's upstream refuses the connection. + # Leads with the bootstrap because that is overwhelmingly the cause: + # authelia treats an empty user store as a FATAL startup error, so an + # enabled-but-unbootstrapped swarm crash-loops behind a vhost that is + # working perfectly, and the raw 502 points at the proxy instead. + ssoUnavailable = mkPage { + name = "sso-unavailable"; + title = "sso unavailable"; + accent = "#f9e2af"; + body = '' +
The swarm's identity provider isn't answering. The gateway is fine — nothing is listening behind it.
+Most likely: no users exist yet. Authelia refuses to start with an empty user store, so it never finishes booting. Add the first account on the host running it:
+swarmctl user add <username> \ + --display-name <Name> --email <addr> --group admins+
Otherwise check the container: journalctl -M swarm-authelia -u authelia-swarm. This page recovers on reload once the provider is up.