Skip to content

Maintenance, Jobs & Monitoring

FynnCloud runs automated housekeeping tasks via Vapor Queues (backed by Redis) and exposes real-time diagnostics, health alerts, and manual job triggers to administrators.

Administrators can inspect the last-run timestamp of scheduled jobs via Administration → System / Jobs (GET /api/scheduled-jobs) and manually trigger supported jobs on demand (POST /api/scheduled-jobs/:id/trigger or /run):

Job Schedule Purpose & Details
SessionLastAccessFlushJob Every 1 minute Flushes batched session lastAccessedAt updates from memory/Redis to PostgreSQL to avoid write amplification on every API request
LDAPDirectorySyncJob Every 15 minutes Synchronizes LDAP user and group catalogs when LDAP + ssoUserSync / ssoGroupImport are enabled
UploadCleanupJob Hourly (:00) Cleans up abandoned multipart upload sessions, temporary local chunks, and incomplete S3 multipart uploads older than 24 hours
QuotaRecalculationJob Hourly (:30) Reconciles users.current_storage_usage by summing both file_metadata (including trashed files) and file_versions
ExpiredTokenCleanupJob Daily (01:00) Purges expired OAuth codes, refresh tokens, share unlock tokens, and revoked session rows
TrashCleanupJob Daily (02:00) Permanently deletes soft-deleted items older than STORAGE_TRASH_RETENTION_DAYS (default 30 days). Automatically skips when AIO backup.lock is active.
SyncLogPruneJob Daily (03:00) Evicts stale device sync cursors inactive for 90 days, then prunes sync_logs older than 365 days that all remaining active devices have acknowledged
ActivityPruneJob Daily (03:30) Purges file_activities audit rows older than 180 days
AppNotificationPruneJob Daily (03:45) Purges app_notifications dismissed or expired more than 30 days ago

Event-Driven Queued Jobs (3 AsyncJob Workers)

Section titled “Event-Driven Queued Jobs (3 AsyncJob Workers)”
Queued Job Triggered By Purpose
ProcessFileEmbeddingJob File upload, overwrite, or reindex-files Extracts document text or image bytes and writes pgvector embeddings
GenerateThumbnailJob Image/media upload or generate-thumbnails Renders preview thumbnails under _system/thumbnails/
SendEmailJob Share invites, password resets, admin test mail Dispatches templated SMTP emails asynchronously with retries

Run one-off maintenance commands directly against the fynncloud-server binary (e.g. docker exec fynncloud-server ./FynnCloudServer <command>):

Terminal window
# Run pending Fluent database migrations non-interactively
./FynnCloudServer migrate -y
# Re-enqueue semantic search embeddings for all eligible files
./FynnCloudServer reindex-files
# Generate missing preview thumbnails (pass --force to regenerate all existing thumbnails)
./FynnCloudServer generate-thumbnails
./FynnCloudServer generate-thumbnails --force

FynnCloud continuously evaluates runtime configuration and infrastructure health and surfaces actionable alerts in Administration → Overview (GET /api/alerts):

Alert Key Trigger Condition
jwtSecretDefault AUTH_JWT_SECRET / JWT_SECRET is unset (ephemeral secret invalidates all logins on restart)
ldapDefaultPassword LDAP is enabled with a Bind DN configured but SSO_LDAP_BIND_PASSWORD is empty
s3CredentialsMissing STORAGE_S3_BUCKET is set but STORAGE_AWS_ACCESS_KEY_ID or STORAGE_AWS_SECRET_ACCESS_KEY is empty
Alert Key Scope Trigger Condition
redisUnreachable All Redis PING failed (sessions, rate limiting, Pub/Sub, and job tracking degraded)
oidcMisconfigured All OIDC enabled but ssoOidcIssuerUrl or ssoOidcClientId is empty
ldapMisconfigured All LDAP enabled but ssoLdapHost or ssoLdapBaseDn is empty
aiMisconfigured All aiEnabled=true but aiApiUrl is empty (or points to openai.com with empty aiApiKey)
embeddingsMisconfigured All aiEmbeddingEnabled=true but aiEmbeddingUrl is empty
livekitMisconfigured All livekitUrl is set but livekitApiKey or livekitApiSecret is empty (calls fall back to P2P)
sqliteInProduction Production Server is running on SQLite instead of PostgreSQL
corsAllowAll Production SERVER_CORS_ALLOWED_ORIGINS resolved to empty/wildcard
httpNotHttps Production Incoming request lacks HTTPS scheme (X-Forwarded-Proto: https)
rateLimitDisabled Production RATE_LIMIT_ENABLED=false
frontendUrlLocalhost Production APP_FRONTEND_URL still contains localhost
subscriptionInGracePeriod All Installed subscription expired and is within its 7-day grace period
userLimitReached All Total user count has reached the free-tier limit (10 users) or the active subscription’s user ceiling
Alert Key Scope Trigger Condition
legacySocketProxy All App orchestration uses DOCKER_SOCKET_PROXY_URL instead of fynncloud-aio
openRegistrationInProduction Production ACCESS_REGISTRATION_ENABLED=true allows open public self-registration
instanceNameDefault All brandingAppName is still "FynnCloud"

  • GET /health — Unauthenticated liveness probe (200 OK) used by Docker healthchecks, load balancers, and Kubernetes probes.
  • GET /api/admin/overview (admin) — Returns live counts and byte totals (totalUsers, adminUsers, totalGroups, totalStorageBytes, activeFiles, activeFolders, trashFiles, trashBytes, fileVersions, fileVersionBytes, activeShareLinks, internalShares).
  • GET /api/admin/system/diagnostics & /bundle (admin, AIO only) — Generates redacted AIO host diagnostics and a downloadable support bundle (secrets stripped automatically).
  • Structured logs: Set LOG_FORMAT=json on fynncloud-server for log aggregators (Loki, Datadog, Vector, Elastic).
  • Free Tier: Self-hosted FynnCloud supports up to 10 user accounts with full functionality out of the box—no license key required.
  • Subscriptions: Install a signed subscription key via Administration → Subscription (or SUBSCRIPTION_KEY / APP_LICENSE_KEY) to raise the maximum user limit.
  • 7-Day Grace Period: When a paid subscription expires, FynnCloud enters a 7-day grace period (subscriptionInGracePeriod warning alert) so administrators can renew without immediately disrupting existing users.