Skip to content

[Bug]: trigger.dev service is missing ELECTRIC_SECRET #5648

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ceIia opened this issue Apr 18, 2025 · 1 comment
Open

[Bug]: trigger.dev service is missing ELECTRIC_SECRET #5648

ceIia opened this issue Apr 18, 2025 · 1 comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. ⚙️ Service Issues requesting or PRs adding/fixing service templates. 🔍 Triage Issues that need assessment and prioritization. 💤 Waiting for feedback Issues awaiting a response from the author.

Comments

@ceIia
Copy link

ceIia commented Apr 18, 2025

Error Message and Logs

currently, when adding a Trigger.dev service from the catalog, it doesn't seem to be able to start because the Electric service is stuck in a crash loop because of a missing environment variable:

2025-04-18T17:25:53.856985317Z ** (RuntimeError) You must set ELECTRIC_SECRET unless ELECTRIC_INSECURE=true. Setting ELECTRIC_INSECURE=true risks exposing your database, only use insecure mode in development or you've otherwise secured the Electric API

i've tried adding it to the project's service Environment Variables, but since the docker-compose.yml doesn't seem to be passing it down to Electric, i don't think it'll ever be able to retrieve it.

Steps to Reproduce

  1. Setup coolify v4.0.0-beta.409
  2. Add a new service, select Trigger
  3. Save, and deploy
  4. Observe as it can't start because of the Electric module, and the error should be complaining about the missing variable

Example Repository URL

No response

Coolify Version

v4.0.0-beta.409

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Debian 12

Additional Information

doc about the missing variable (marked as required): https://electric-sql.com/docs/api/config#electric-secret

@ceIia ceIia added 🐛 Bug Reported issues that need to be reproduced by the team. 🔍 Triage Issues that need assessment and prioritization. labels Apr 18, 2025
@Cinzya
Copy link

Cinzya commented Apr 20, 2025

Have you restarted trigger.dev after adding the new environment variable? If you make any edits to the docker compose, you will need to restart your entire service stack for the changes to actually take affect.

@Cinzya Cinzya added ⚙️ Service Issues requesting or PRs adding/fixing service templates. 💤 Waiting for feedback Issues awaiting a response from the author. labels Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Reported issues that need to be reproduced by the team. ⚙️ Service Issues requesting or PRs adding/fixing service templates. 🔍 Triage Issues that need assessment and prioritization. 💤 Waiting for feedback Issues awaiting a response from the author.
Projects
None yet
Development

No branches or pull requests

2 participants