Skip to content

Commit f2699ec

Browse files
gaoyue1989warlocgaoBorisPolonsky
authored
fix: Resolve plugin-daemon NPE due to incorrect data persistence configuration in multi-replica environments during upgrades (#207)
Co-authored-by: warlocgao <warlocgao@tencent.com> Co-authored-by: Boris Polonsky <BorisPolonsky@users.noreply.github.com>
1 parent 3e0c4d9 commit f2699ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

charts/dify/templates/config.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,7 @@ SERVER_PORT: "5002"
702702
PLUGIN_REMOTE_INSTALLING_HOST: "0.0.0.0"
703703
PLUGIN_REMOTE_INSTALLING_PORT: "5003"
704704
MAX_PLUGIN_PACKAGE_SIZE: "52428800"
705-
PLUGIN_STORAGE_LOCAL_ROOT: {{ .Values.pluginDaemon.persistence.mountPath | quote }}
706-
PLUGIN_WORKING_PATH: {{ printf "%s/cwd" .Values.pluginDaemon.persistence.mountPath | clean | quote }}
705+
PLUGIN_WORKING_PATH: "/app/cwd"
707706
DIFY_INNER_API_URL: "http://{{ template "dify.api.fullname" . }}:{{ .Values.api.service.port }}"
708707
{{- include "dify.marketplace.config" . }}
709708
{{- end }}
@@ -761,6 +760,6 @@ VOLCENGINE_TOS_ACCESS_KEY: {{ .Values.externalTOS.accessKey | quote }}
761760
# VOLCENGINE_TOS_SECRET_KEY: {{ .Values.externalTOS.secretKey | quote }}
762761
{{- else }}
763762
PLUGIN_STORAGE_TYPE: local
764-
STORAGE_LOCAL_PATH: {{ .Values.pluginDaemon.persistence.mountPath | quote }}
763+
PLUGIN_STORAGE_LOCAL_ROOT: {{ .Values.pluginDaemon.persistence.mountPath | quote }}
765764
{{- end }}
766765
{{- end }}

0 commit comments

Comments
 (0)