This is an automated email from the ASF dual-hosted git repository.

wu-sheng pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-horizon-ui.git


The following commit(s) were added to refs/heads/main by this push:
     new 7761edb  config: don't ship explicit relative state-file paths in the 
example
7761edb is described below

commit 7761edb96082357e9807ba5421364efba027c2ea
Author: Wu Sheng <[email protected]>
AuthorDate: Thu May 21 23:03:01 2026 +0800

    config: don't ship explicit relative state-file paths in the example
    
    horizon.example.yaml hard-coded ./horizon-*.jsonl for audit/setup/alarms/
    debugLog. In the container those resolve under /app, which the non-root
    horizon user cannot write — EACCES on boot. Leaving the file paths unset
    lets the right location win automatically: /data in the published image
    (via the HORIZON_*_FILE env defaults), ./horizon-* for a local binary run.
---
 horizon.example.yaml | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/horizon.example.yaml b/horizon.example.yaml
index 8accd30..07780ed 100644
--- a/horizon.example.yaml
+++ b/horizon.example.yaml
@@ -198,17 +198,16 @@ session:
   cookieName: horizon_sid
   cookieSecure: false           # set true behind HTTPS
 
-audit:
-  file: ./horizon-audit.jsonl
-
-setup:
-  file: ./horizon-setup.json
-
-alarms:
-  file: ./horizon-alarms.json
+# State files (audit log, setup state, alarm state, wire debug log).
+# Leave the `file:` paths unset and the right location is chosen for you:
+#   • published container image → /data/*    (its writable volume)
+#   • local binary run          → ./horizon-* (relative to the working dir)
+# Set an explicit `file:` under each block ONLY if you need a specific
+# location — and make sure the running process can write it (in the image
+# that means a path under /data, since the non-root `horizon` user cannot
+# write /app).
 
 debugLog:
   enabled: false
-  file: ./horizon-wire.jsonl
   maxBodyChars: 8192
   redactAuthHeaders: true

Reply via email to