coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: getoutline service template starts into a restart loop

Open lusu007 opened this issue 2 weeks ago โ€ข 3 comments

Error Message and Logs

When installing getoutline using the provided services temlpate, getoutline doesnt start and enters a restart loop with the following message.

{"label":"lifecycle","level":"info","message":"Starting worker service"}
{"label":"lifecycle","level":"info","message":"Starting web service"}
{"label":"lifecycle","level":"info","message":"Listening on http://localhost:3000 / https://outline-ao4ksg8wkgw8oo4goo0ckgoc.grounds.services:3000"}
[MISSING_ENV_FILE] missing .env file (/opt/outline/.env)
[MISSING_ENV_FILE] https://github.com/dotenvx/dotenvx/issues/484
[MISSING_ENV_FILE] missing .env file (/opt/outline/.env)
[MISSING_ENV_FILE] https://github.com/dotenvx/dotenvx/issues/484

Steps to Reproduce

  1. Just install it using the service template

Example Repository URL

No response

Coolify Version

v4.0.0-beta.452

Are you using Coolify Cloud?

Yes (Coolify Cloud)

Operating System and Version (self-hosted)

No response

Additional Information

No response

lusu007 avatar Dec 09 '25 17:12 lusu007

๐Ÿ“ CodeRabbit Plan Mode

Generate an implementation plan and agent prompts for this issue.

  • [ ] Create Plan
Examples

๐Ÿ”— Similar Issues

Related Issues

๐Ÿ‘ค Suggested Assignees

  • terminalsin
  • rihards-simanovics
  • racso-dev
  • gpicron
  • drago1520

๐Ÿงช Issue enrichment is currently in early access.

To disable automatic issue enrichment, add the following to your .coderabbit.yaml:

issue_enrichment:
  auto_enrich:
    enabled: false

coderabbitai[bot] avatar Dec 09 '25 17:12 coderabbitai[bot]

they migrated from dotenv to dotenvx but didn't add an ignore missing, since there will not be a .env in a docker container, without it, you get the above error

https://github.com/outline/outline/pull/9921/files

https://github.com/outline/outline/blob/108e14338b1b5ea29b3f235629e8e5b93ceb2d40/server/scripts/bootstrap.ts#L3 although they add a skip if file is missing in environment.ts, the init in bootstrap.ts is where it will try load from .env itself, which is where they need to add

https://dotenvx.com/docs/advanced/config-ignore

as a workaround i would just manually add an empty .env mount

djsisson avatar Dec 09 '25 17:12 djsisson

It might be better if you open an issue about this on the outline repo with the explanation given above.

This is something that needs to be fixed by the outline developers. A .env mount would be more a workaround / band aid for the problem, but the underlying issue lies in the outline codebase.

Cinzya avatar Dec 09 '25 19:12 Cinzya

There is a fix implemented now. We only need to wait for the next release.

see: outline/outline#10848

lusu007 avatar Dec 11 '25 15:12 lusu007