Skip to content

error.flexfs

error.flexfs receives the panic and error reports that flexFS binaries send when run with --reportErrors, stores each report under its report folder, and optionally forwards a summary of each to a Slack channel. It is the receiving end of the --reportErrors mechanism exposed by the other binaries.

These flags apply to every subcommand.

FlagTypeDefaultDescriptionVisibility
--reportErrorsboolfalseReport errors and panics to Paradigm4Public
SubcommandDescriptionVisibility
deinit credsRemove the credentials filePublic
deinit systemdRemove the systemd service unitPublic
init credsInitialize the credentials filePublic
init systemdCreate and enable a systemd service unitPublic
licensePrint license informationPublic
startStart the error report serverPublic
versionPrint the build versionPublic
Terminal window
error.flexfs deinit creds [flags]

Removes the credentials file for the error server. If the credentials file is referenced by a systemd unit, the command refuses unless --force is passed, in which case it removes the references too.

FlagTypeDefaultDescriptionVisibility
--credsFilestring~/.flexfs/error/credsCredentials file pathPublic
--forceboolfalseRemove creds even if referenced by systemd (removes references too)Public
Terminal window
sudo error.flexfs deinit systemd

Removes the systemd service unit (flexfs-error.service) for the error server. Requires root.

Terminal window
error.flexfs init creds [flags]

Initializes a credentials file for the error server with a Slack webhook for report forwarding. If --slackWebhook is omitted, the command prompts for one; leaving the prompt empty runs the server with no Slack forwarding.

FlagTypeDefaultDescriptionVisibility
--credsFilestring~/.flexfs/error/credsCredentials file pathPublic
--forceboolfalseOverwrite existing credentials filePublic
--slackWebhookstring""Slack incoming webhook URL for report forwarding (will prompt if omitted)Public
Terminal window
sudo error.flexfs init systemd [flags]

Creates and enables a systemd service unit (flexfs-error.service) for the error server. Requires root.

FlagTypeDefaultDescriptionVisibility
--forceboolfalseOverwrite existing systemd unit filePublic
--nowboolfalseStart the service immediately after enablingPublic
--startFlagsstring""Additional flags to pass to the start commandPublic
Terminal window
error.flexfs start [flags]

Starts the error report server, binding the HTTPS endpoint that flexFS binaries post reports to.

FlagTypeDefaultDescriptionVisibility
--bindAddrstring0.0.0.0:443Address and port to bindPublic
--credsFilestring~/.flexfs/error/credsCredentials file pathPublic
--maxReportSizestring8MMaximum accepted report size, given as a size (4M, 8M) or bytes (8388608).Public
--minDiskAvailstring1GMinimum available space required on the report folder filesystem (e.g. 2%, 512M; 0 = disabled)Public
--noSSLboolfalseDisable SSL for the REST APIPublic
--pprofboolfalseEnable pprof profilerInternal
--pprofPortint6062Pprof server portInternal
--reportFolderstring~/.flexfs/error/reportsReport folder pathPublic
--slackDebouncestring60sMinimum time between Slack notifications for the same remote address (e.g. 60s, 5m; 0 = disabled)Internal
--slackExcerptLinesint40Lines of a report’s message to forward to SlackInternal
--slackWebhookstring""Slack incoming webhook URL (overrides credentials file)Internal
--sslCertstring~/.flexfs/ssl/certSSL certificate file pathPublic
--sslKeystring~/.flexfs/ssl/keySSL private key file pathPublic
--verbose, -vboolfalseEnable verbose loggingPublic

The server writes each report under --reportFolder, which cannot be written safely on a filesystem that has run out of space. It therefore guards that filesystem:

  • On startup, it refuses to start if the available space is already below --minDiskAvail.
  • While running, it re-checks every minute and shuts down gracefully as soon as available space drops below --minDiskAvail.

Setting --minDiskAvail to 0 disables both checks.