Inspector 0.9.3: all times follow the stack's TZ; docs explain why it matters
This commit is contained in:
1 parent
b4da527732
commit
57100d0a7b
10 files changed
+165
-42
No files matched your search
+29
-1
@@ -52,12 +52,39 @@ TZ=America/Los_Angeles
|
||||
|---|---|---|
|
||||
| `INSPECTOR_DATA` | Folder on your server where Inspector keeps its settings, logs, and history. **Unraid:** `/mnt/user/appdata/inspector`. **Other Linux:** `/opt/inspector`. Created automatically. | Yes |
|
||||
| `INSPECTOR_PASSWORD` | Password for the dashboard (username `admin`). Used only on first start; change it later in the dashboard. Leave it out and Inspector generates one and prints it in the container logs. | Recommended |
|
||||
| `TZ` | Your [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones), so times on the dashboard are local. | Recommended |
|
||||
| `TZ` | **Your time zone**, e.g. `America/New_York` or `Europe/Berlin`. Without it Inspector uses UTC, so the maintenance window, alerts and dashboard times are off by your UTC offset. See [Why the time zone matters](#why-the-time-zone-matters). | **Yes** (default `UTC`) |
|
||||
| `INSPECTOR_PORT` | Port on your server for the dashboard. Change it if `8080` is taken. | No (default `8080`) |
|
||||
| `INSPECTOR_TAG` | Version to run, e.g. `0.8.0`. See [Updating](#4-updating). | No (default `latest`) |
|
||||
| `PUID` / `PGID` | User and group that own Inspector's files. Unraid users often use `99` / `100` so the files match other appdata. | No (default `1000` / `1000`) |
|
||||
| `PORTAINER_API_TOKEN` | A Portainer access token. Only needed if you use **Portainer stack redeploy** for VPN-routed apps; see the in-app guide (Help → Portainer). | No |
|
||||
|
||||
### Why the time zone matters
|
||||
|
||||
Inspector uses `TZ` for every time it shows or acts on. If it's wrong, things
|
||||
still work, but at the wrong hour or with confusing times:
|
||||
|
||||
- **The maintenance window runs in this time zone.** A window of `02:00–05:00`
|
||||
with `TZ` left at UTC runs at 02:00 UTC, which is the middle of the evening in
|
||||
the Americas or mid-morning in Asia. Inspector would then restart containers
|
||||
during your nightly backups, and ignore real problems during the day.
|
||||
- **Alerts** (Gotify / Pushover) show the time of the problem in this zone, with
|
||||
its abbreviation, e.g. `10-28 03:15 AM CET`.
|
||||
- **The dashboard and Events page** show times in this zone, and the Events
|
||||
page's days run midnight to midnight in this zone.
|
||||
- **Logs** are stamped in this zone.
|
||||
|
||||
**How to set it:** use your zone's name from the
|
||||
[list of time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
||||
("TZ identifier" column), e.g. `America/New_York`, `America/Chicago`,
|
||||
`Europe/London`, `Europe/Berlin`, `Australia/Sydney`. Abbreviations like `EST` or
|
||||
`CET` don't work. On Unraid, **Settings → Date and Time** shows the zone your
|
||||
server uses.
|
||||
|
||||
**How to check it:** the bottom of every Settings page shows
|
||||
`time zone: <name>`. If it says `UTC` and you're not on UTC, set `TZ` in the
|
||||
stack and click **Update the stack**. If the name you set isn't recognized,
|
||||
Inspector logs a warning and uses UTC.
|
||||
|
||||
## 3. Deploy and sign in
|
||||
|
||||
1. Click **Deploy the stack**.
|
||||
@@ -116,6 +143,7 @@ starts and restarts the ones you add to it.
|
||||
| Logs say *Permission denied on /var/run/docker.sock* | Make sure the stack has no `user:` line, then update the stack. Inspector needs to start normally to set up socket access. |
|
||||
| Red **READ-ONLY** badge at the bottom of Settings | The config folder mount ends in `:ro` or the folder isn't writable. Remove `:ro` and update the stack. |
|
||||
| Can't sign in | Look for the generated password in the container logs. If you've lost it, open `INSPECTOR_DATA/config/config.yml` (e.g. via your Unraid share), set a new `password:` under `dashboard:`, and restart Inspector. |
|
||||
| Times are a few hours off, or the maintenance window runs at the wrong time | `TZ` is missing or wrong. Check `time zone:` at the bottom of Settings, set `TZ` to your zone name (e.g. `Europe/London`), and update the stack. |
|
||||
| A container shows **CONTAINER NOT FOUND** | The name in Inspector doesn't match Docker. Copy the exact name from Portainer → Containers. |
|
||||
|
||||
## Security notes
|
||||
|
||||
Reference in new issue
Block a user