temporalio / temporal

Temporal service

Home Page:https://docs.temporal.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dynamic-config-value invalid JSON value for key

suityou01 opened this issue · comments

Expected Behavior

When I launch the temporal server from the command line and supply a valid key/value for the dynamic-config-value flag the server starts and applies this config value

https://docs.temporal.io/cli/cmd-options#dynamic-config-value

Actual Behavior

The server fails to start and gives the error

"Error: invalid JSON value for key "persistence.defaultStore"

Steps to Reproduce the Problem

  1. Install temporal
curl -sSf https://temporal.download/cli.sh | sh
  1. Launch with the following dynamic config flags
temporal server start-dev --ip 0.0.0.0 --dynamic-config-value \
	 frontend.workerVersioningDataAPIs=true --dynamic-config-value \
	 persistance.numHistoryShards=2 --dynamic-config-value \
	 persistence.defaultStore="default" --dynamic-config-value \
	 persistence.visibilityStore="default" --dynamic-config-value \
	 persistence.secondaryVisibilityStore="default" --dynamic-config-value \
	 persistence.datastores.default.sql.user="root" --dynamic-config-value \
	 persistence.datastores.default.sql.password="root" --dynamic-config-value \
         persistence.datastores.default.sql.pluginName="mysql" --dynamic-config-value \
         persistence.datastores.default.sql.databaseName="temporal" --dynamic-config-value \
         persistence.datastores.default.sql.connectAddr="mysql" --dynamic-config-value \
         persistence.datastores.default.sql.connectProtocol="tcp"

Specifications

  • Version: temporal version 0.11.0 (server 1.22.4) (ui 2.21.3)
  • Platform: Docker container running debian based image