Skip to content

Restarts every few minutes with "Detected .env file change" #748

@philgoddard15b

Description

@philgoddard15b

Describe the bug

Pulse restarts every few minutes with a message of "Detected .env file change" and then immediately afterwards ""Shutting down server..."".

To Reproduce
Steps to reproduce the behavior:
New install in Proxmox LXC with the underlying Proxmox host added to monitoring.
Have tried both setup modes (standard/advanced), Debian as well as Ubuntu LXC base. Have deleted LXC and recreated three times with the same result.
The .env file is changing modified date when inspected but the contents of the file are not changing. I took a copy of it and compared it to the file as of the restart and they're identical. Something in the container is changing the modified date which is triggering Pulse to restart.
Setting permissions to 400 for .env (to prevent any changes to it) has no effect and the date is still updated.
Nothing else is running in the container.
Pulse showing a "env override" in the Diagnostics section.
Removing "API_TOKEN" and "API_TOKENS" in this file and reloading the service clears this error.
However this token was created, I believe, by setup - as this is a brand new fresh install.
The problem persists even with this problem resolved and the service has just restarted again now while typing this.
sha1sum of the .env file is 74321c9d5789c9982c4fa56d0ee1a1a0fccb5031 and does not change.

Expected behavior
No restarts.

Environment:

  • Pulse Version: 4.32.4
  • Installation Type: Ubuntu LXC- tried Debian base too.

Additional context
Nov 23 20:17:06 pulse pulse[186]: {"level":"info","component":"pulse","instance":"proxmox","totalNodes":1,"onlineNodes":1,"time":"2025-11-23T20:17:06Z","message":"Starting parallel storage polling"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"local","id":"proxmox-local","usage":23.714985027533892,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"local-zfs","id":"proxmox-local-zfs","usage":28.0326465168029,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"local-ext4","id":"proxmox-local-ext4","usage":41.57999999964724,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"Truenas","id":"proxmox-Truenas","usage":0.92052292688906,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"isos","id":"proxmox-isos","usage":1.2747620996867435,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","storage":"pbs","id":"proxmox-pbs","usage":78.54346413292565,"status":"available","trigger":85,"clear":80,"hasOverride":false,"time":"2025-11-23T20:17:07Z","message":"Checking storage thresholds"}
Nov 23 20:17:07 pulse pulse[186]: {"level":"info","component":"pulse","instance":"proxmox","totalStorage":6,"successfulNodes":1,"failedNodes":0,"preservedStorage":0,"duration":473.274391,"time":"2025-11-23T20:17:07Z","message":"Parallel storage polling completed"}
Nov 23 20:17:09 pulse pulse[186]: {"level":"info","component":"pulse","event":"CREATE","time":"2025-11-23T20:17:09Z","message":"Detected .env file change"}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"Shutting down server..."}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"Stopping monitor"}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"Monitoring loop stopped"}
Nov 23 20:17:14 pulse systemd[1]: Stopping pulse.service - Pulse Monitoring Server...
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","count":10,"time":"2025-11-23T20:17:14Z","message":"Saved active alerts to disk"}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"NotificationManager stopped"}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"Monitor stopped"}
Nov 23 20:17:14 pulse pulse[186]: {"level":"info","component":"pulse","time":"2025-11-23T20:17:14Z","message":"Server stopped"}
Nov 23 20:17:14 pulse systemd[1]: pulse.service: Deactivated successfully.
Nov 23 20:17:14 pulse systemd[1]: Stopped pulse.service - Pulse Monitoring Server.
Nov 23 20:17:14 pulse systemd[1]: Started pulse.service - Pulse Monitoring Server.
Nov 23 20:17:14 pulse pulse[554]: {"level":"info","component":"pulse","file":"/etc/pulse/.env","time":"2025-11-23T20:17:14Z","message":"Loaded .env file for deployment overrides"}

💡 Tip: If you're experiencing connection issues, API errors, or missing data, you can attach diagnostics from Settings → Diagnostics tab → Export for GitHub (sanitized version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions