[GH-ISSUE #617] Bug: Manual Entries in environment file (.env) overwritten/removed by GUI settings changes #353

Closed
opened 2026-02-22 18:19:05 -05:00 by yindo · 0 comments
Owner

Originally created by @pritchey on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/617

Configuration items that are manually added to the environment file (.env) are removed if the web interface GUI is used to make changes to any settings that trigger rewriting the .env file.

Settings to recreate:

  1. Manually edit the .env file and add a manual edit setting (such as 'DISABLE_TELEMETRY="true"'.
  2. Restart the Docker container so the change is picked up by the running container.
  3. Go into a settings and make a change that requires saving the change back to the .env file.
  4. Manually edit the .env file and your manually added setting is gone.

This most likely happens for any of the manually added settings (disabling telemetry, password complexity, enabling HTTPS support, etc.). I've tested/confirmed it for telemetry.

Two suggested approaches:

  1. Check for and re-write those settings out if set.
  2. Add those settings in the GUI so they are naturally re-written out when the file is updated.
Originally created by @pritchey on GitHub (Jan 18, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/617 Configuration items that are manually added to the environment file (.env) are removed if the web interface GUI is used to make changes to any settings that trigger rewriting the .env file. Settings to recreate: 1. Manually edit the .env file and add a manual edit setting (such as 'DISABLE_TELEMETRY="true"'. 2. Restart the Docker container so the change is picked up by the running container. 3. Go into a settings and make a change that requires saving the change back to the .env file. 4. Manually edit the .env file and your manually added setting is gone. This most likely happens for any of the manually added settings (disabling telemetry, password complexity, enabling HTTPS support, etc.). I've tested/confirmed it for telemetry. Two suggested approaches: 1. Check for and re-write those settings out if set. 2. Add those settings in the GUI so they are naturally re-written out when the file is updated.
yindo added the bug label 2026-02-22 18:19:05 -05:00
yindo closed this issue 2026-02-22 18:19:05 -05:00
yindo changed title from Bug: Manual Entries in environment file (.env) overwritten/removed by GUI settings changes to [GH-ISSUE #617] Bug: Manual Entries in environment file (.env) overwritten/removed by GUI settings changes 2026-06-05 14:34:52 -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#353