Open pat-s opened 1 week ago
XDG_CONFIG_DIRS is set to /mnt/dynamic:/mnt/session-configmap:/mnt/secret-configmap:/mnt/configmap:/mnt/load-balancer/.
XDG_CONFIG_DIRS
/mnt/dynamic:/mnt/session-configmap:/mnt/secret-configmap:/mnt/configmap:/mnt/load-balancer/
However, as stated in https://docs.posit.co/ide/server-pro/rstudio_pro_sessions/customizing_session_settings.html, files like rstudio-prefs.json are only read when XDG_CONFIG_DIRS points to the directory containing them. This would actually be /mnt/session-configmap/rstudio.
rstudio-prefs.json
/mnt/session-configmap/rstudio
The consequences are that files like config.session.rstudio-prefs.json are never read and result in an non-fatal error during session startup.
config.session.rstudio-prefs.json
Setting
RSTUDIO_CONFIG_DIR: /mnt/session-configmap/rstudio
as a pod env var solves this.
(I've just discovered this recently and have to yet verify this in other instances. The fact falling over this now in a fresh install is a bit strange)
XDG_CONFIG_DIRS
is set to/mnt/dynamic:/mnt/session-configmap:/mnt/secret-configmap:/mnt/configmap:/mnt/load-balancer/
.However, as stated in https://docs.posit.co/ide/server-pro/rstudio_pro_sessions/customizing_session_settings.html, files like
rstudio-prefs.json
are only read whenXDG_CONFIG_DIRS
points to the directory containing them. This would actually be/mnt/session-configmap/rstudio
.The consequences are that files like
config.session.rstudio-prefs.json
are never read and result in an non-fatal error during session startup.Setting
as a pod env var solves this.
(I've just discovered this recently and have to yet verify this in other instances. The fact falling over this now in a fresh install is a bit strange)