[Bug]: getoutline service template starts into a restart loop
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
- 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
๐ CodeRabbit Plan Mode
Generate an implementation plan and agent prompts for this issue.
- [ ] Create Plan
๐ Similar Issues
Related Issues
- coollabsio/coolify#6703
- coollabsio/coolify#6094
- coollabsio/coolify#6816
- coollabsio/coolify#5829
- coollabsio/coolify#7027
๐ค 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
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
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.
There is a fix implemented now. We only need to wait for the next release.
see: outline/outline#10848