From 3c51128d3e33d0901ec9f61bbdc8e2ee5c531243 Mon Sep 17 00:00:00 2001 From: Paul Faure Date: Fri, 13 Mar 2026 23:38:42 -0400 Subject: [PATCH 1/2] enhancement: log effective data and config paths at startup Log the resolved OCIS_BASE_DATA_PATH and OCIS_CONFIG_DIR at startup so operators can immediately see where data is being written. This catches misconfigured Docker volume mounts where data silently falls back to ~/.ocis inside the container instead of /var/lib/ocis. Fixes: #12044 Co-Authored-By: Claude Opus 4.6 --- changelog/unreleased/fix-log-data-path-at-startup.md | 10 ++++++++++ ocis/pkg/runtime/service/service.go | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 changelog/unreleased/fix-log-data-path-at-startup.md diff --git a/changelog/unreleased/fix-log-data-path-at-startup.md b/changelog/unreleased/fix-log-data-path-at-startup.md new file mode 100644 index 00000000000..b3232e8411a --- /dev/null +++ b/changelog/unreleased/fix-log-data-path-at-startup.md @@ -0,0 +1,10 @@ +Enhancement: Log effective data and config paths at startup + +oCIS now logs the effective data path and config path at startup so +operators can immediately verify that data is written to the expected +location. This helps catch misconfigured Docker volume mounts where +data silently falls back to an ephemeral container path instead of +the intended persistent mount. + +https://github.com/owncloud/ocis/pull/XXXX +https://github.com/owncloud/ocis/issues/12044 diff --git a/ocis/pkg/runtime/service/service.go b/ocis/pkg/runtime/service/service.go index 14478ebe49a..145a1a9e394 100644 --- a/ocis/pkg/runtime/service/service.go +++ b/ocis/pkg/runtime/service/service.go @@ -27,6 +27,7 @@ import ( "github.com/thejerf/suture/v4" ociscfg "github.com/owncloud/ocis/v2/ocis-pkg/config" + "github.com/owncloud/ocis/v2/ocis-pkg/config/defaults" "github.com/owncloud/ocis/v2/ocis-pkg/log" ogrpc "github.com/owncloud/ocis/v2/ocis-pkg/service/grpc" "github.com/owncloud/ocis/v2/ocis-pkg/shared" @@ -370,6 +371,13 @@ func Start(ctx context.Context, o ...Option) error { return err } + // Log the effective data and config paths at startup so operators can + // verify that data is written to the expected location. + s.Log.Info(). + Str("data_path", defaults.BaseDataPath()). + Str("config_path", defaults.BaseConfigPath()). + Msg("effective data and config paths") + // cancel the context when a signal is received. var cancel context.CancelFunc = func() {} if ctx == nil { From eb9cc2bffdf92765db3a46626faaac16b4c11fa0 Mon Sep 17 00:00:00 2001 From: Paul Faure Date: Fri, 13 Mar 2026 23:40:55 -0400 Subject: [PATCH 2/2] docs: update changelog with actual PR number Co-Authored-By: Claude Opus 4.6 --- changelog/unreleased/fix-log-data-path-at-startup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/unreleased/fix-log-data-path-at-startup.md b/changelog/unreleased/fix-log-data-path-at-startup.md index b3232e8411a..6e388bddc11 100644 --- a/changelog/unreleased/fix-log-data-path-at-startup.md +++ b/changelog/unreleased/fix-log-data-path-at-startup.md @@ -6,5 +6,5 @@ location. This helps catch misconfigured Docker volume mounts where data silently falls back to an ephemeral container path instead of the intended persistent mount. -https://github.com/owncloud/ocis/pull/XXXX +https://github.com/owncloud/ocis/pull/12117 https://github.com/owncloud/ocis/issues/12044