[GH-ISSUE #134] AUTH_SECRET missing from celery service in docker-compose.prod.yml #1054

Closed
opened 2026-05-03 01:56:20 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Quaerendir on GitHub (Apr 6, 2026).
Original GitHub issue: https://github.com/reconurge/flowsint/issues/134

Bug: AUTH_SECRET missing from celery service environment in docker-compose.prod.yml

Description

The celery service in docker-compose.prod.yml is missing the AUTH_SECRET environment variable, which causes it to crash on startup with the following error:

ValueError: AUTH_SECRET environment variable is not set. Please set it in your .env file.

This happens because flowsint_core/core/auth.py validates the presence of AUTH_SECRET at import time — and celery imports from flowsint_core on startup.

Steps to reproduce

  1. Clone the repo
  2. Copy .env.example to .env and set all required variables including AUTH_SECRET
  3. Run docker compose -f docker-compose.prod.yml up
  4. flowsint-celery-prod crashes immediately and restarts in a loop

Expected behavior

Celery worker starts successfully.

Actual behavior

ValueError: Couldn't import 'flowsint_core.core.celery': AUTH_SECRET environment variable is not set.

Fix

Add AUTH_SECRET to the celery service environment block in docker-compose.prod.yml:

celery:
  environment:
    - AUTH_SECRET=${AUTH_SECRET}

Note: the api service already correctly passes this variable — it was simply omitted from celery.

Environment

  • OS: Windows 10 / Docker Desktop with WSL2 backend
  • Flowsint version: latest main
Originally created by @Quaerendir on GitHub (Apr 6, 2026). Original GitHub issue: https://github.com/reconurge/flowsint/issues/134 ## Bug: `AUTH_SECRET` missing from `celery` service environment in `docker-compose.prod.yml` ### Description The `celery` service in `docker-compose.prod.yml` is missing the `AUTH_SECRET` environment variable, which causes it to crash on startup with the following error: ``` ValueError: AUTH_SECRET environment variable is not set. Please set it in your .env file. ``` This happens because `flowsint_core/core/auth.py` validates the presence of `AUTH_SECRET` at import time — and `celery` imports from `flowsint_core` on startup. ### Steps to reproduce 1. Clone the repo 2. Copy `.env.example` to `.env` and set all required variables including `AUTH_SECRET` 3. Run `docker compose -f docker-compose.prod.yml up` 4. `flowsint-celery-prod` crashes immediately and restarts in a loop ### Expected behavior Celery worker starts successfully. ### Actual behavior ``` ValueError: Couldn't import 'flowsint_core.core.celery': AUTH_SECRET environment variable is not set. ``` ### Fix Add `AUTH_SECRET` to the `celery` service environment block in `docker-compose.prod.yml`: ```yaml celery: environment: - AUTH_SECRET=${AUTH_SECRET} ``` Note: the `api` service already correctly passes this variable — it was simply omitted from `celery`. ### Environment - OS: Windows 10 / Docker Desktop with WSL2 backend - Flowsint version: latest `main`
Author
Owner

@dextmorgn commented on GitHub (Apr 6, 2026):

Hey @Quaerendir, thanks for spotting this !

Fixed with this commit.

<!-- gh-comment-id:4191041895 --> @dextmorgn commented on GitHub (Apr 6, 2026): Hey @Quaerendir, thanks for spotting this ! Fixed with [this commit](https://github.com/reconurge/flowsint/commit/6852ee3213e4d6642595706994d41b72e4fe023f).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/flowsint#1054