Bug: Manual Entries in environment file (.env) overwritten/removed by GUI settings changes #355

Closed
opened 2026-02-28 04:42:44 -05:00 by deekerman · 0 comments
Owner

Originally created by @pritchey on GitHub (Jan 18, 2024).

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). 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.
deekerman 2026-02-28 04:42:44 -05:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/anything-llm#355
No description provided.