[GH-ISSUE #1976] [DOCS]: digitalocean/terraform: .env file not passed to deployed instance #1284

Closed
opened 2026-02-22 18:24:05 -05:00 by yindo · 4 comments
Owner

Originally created by @tertek on GitHub (Jul 26, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1976

How are you running AnythingLLM?

Docker (remote machine)

What happened?

I have followed the guide to deploy to DO via Terraform. I have created .env file from example and added relevant variables.
Terraform creates the instance. But when I ssh into the droplet and run cat /home/anythingllm/.env there is no output at all.
When I access the application on port 3001, I need to go through onboarding.

Are there known steps to reproduce?

Follow instructions on https://github.com/Mintplex-Labs/anything-llm/blob/master/cloud-deployments/digitalocean/terraform/DEPLOY.md

Originally created by @tertek on GitHub (Jul 26, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/1976 ### How are you running AnythingLLM? Docker (remote machine) ### What happened? I have followed the guide to deploy to DO via Terraform. I have created `.env` file from example and added relevant variables. Terraform creates the instance. But when I ssh into the droplet and run `cat /home/anythingllm/.env` there is no output at all. When I access the application on port 3001, I need to go through onboarding. ### Are there known steps to reproduce? Follow instructions on https://github.com/Mintplex-Labs/anything-llm/blob/master/cloud-deployments/digitalocean/terraform/DEPLOY.md
yindo added the questiongood first issue labels 2026-02-22 18:24:05 -05:00
yindo closed this issue 2026-02-22 18:24:05 -05:00
Author
Owner

@timothycarambat commented on GitHub (Jul 26, 2024):

When I access the application on port 3001, I need to go through onboarding.

You should always go through onboarding on the first boot - this is not unexpected behavior?

@timothycarambat commented on GitHub (Jul 26, 2024): > When I access the application on port 3001, I need to go through onboarding. You should always go through onboarding on the first boot - this is not unexpected behavior?
Author
Owner

@tertek commented on GitHub (Jul 29, 2024):

When I access the application on port 3001, I need to go through onboarding.

You should always go through onboarding on the first boot - this is not unexpected behavior?

Thank you for letting me clarify:
Yes, onboarding is expected behaviour BUT there are no values taken from .env, hence the onboarding is default.I suppose in case the .env is populated as expected, than onboarding should only ask for values that are missing?

The actual issue is that terraform somehow does not pass the /docker/.env to the instances working directory.
Relevant code is here but I am not proficient with terraform as well, so maybe someone else knows what is odd here:

https://github.com/Mintplex-Labs/anything-llm/blob/296f04156455346a35cec4440239325523265d33/cloud-deployments/digitalocean/terraform/main.tf#L29-L49

@tertek commented on GitHub (Jul 29, 2024): > > When I access the application on port 3001, I need to go through onboarding. > > You should always go through onboarding on the first boot - this is not unexpected behavior? Thank you for letting me clarify: Yes, onboarding is expected behaviour BUT there are no values taken from .env, hence the onboarding is default.I suppose in case the .env is populated as expected, than onboarding should only ask for values that are missing? The actual issue is that terraform somehow does not pass the `/docker/.env` to the instances working directory. Relevant code is here but I am not proficient with terraform as well, so maybe someone else knows what is odd here: https://github.com/Mintplex-Labs/anything-llm/blob/296f04156455346a35cec4440239325523265d33/cloud-deployments/digitalocean/terraform/main.tf#L29-L49
Author
Owner

@saravanan30erd commented on GitHub (Aug 8, 2024):

@tertek created a quick fix here https://github.com/Mintplex-Labs/anything-llm/pull/2075 could you please test it now and let me know?

@saravanan30erd commented on GitHub (Aug 8, 2024): @tertek created a quick fix here https://github.com/Mintplex-Labs/anything-llm/pull/2075 could you please test it now and let me know?
Author
Owner

@tertek commented on GitHub (Aug 9, 2024):

@saravanan30erd tested and it worked. Thanks. Closing this the PR will follow up on this.

@tertek commented on GitHub (Aug 9, 2024): @saravanan30erd tested and it worked. Thanks. Closing this the PR will follow up on this.
yindo changed title from [DOCS]: digitalocean/terraform: .env file not passed to deployed instance to [GH-ISSUE #1976] [DOCS]: digitalocean/terraform: .env file not passed to deployed instance 2026-06-05 14:39:54 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#1284