- Notifications
You must be signed in to change notification settings - Fork909
Description
If you repeat ametadata
block, such as doing this:
metadata {display_name="CPU Usage"key="0_cpu_usage"script="coder stat cpu"interval=10timeout=1 }metadata {display_name="CPU Usage"key="0_cpu_usage"script="coder stat cpu"interval=10timeout=1 }
The cli output is:
error: internal provisionerserver error
This error is entirely unhelpful. The error in the backend logs is:
error= insert resource: insert agent metadata: pq: duplicate key value violates unique constraint "workspace_agent_metadata_pkey", params: {WorkspaceAgentID:b1951800-89a4-4465-ae67-c8aabd9f32a8 DisplayName:CPU Usage Key:0_cpu_usage Script:coder stat cpu Timeout:1 Interval:10 DisplayOrder:0}: pq: duplicate key value violates unique constraint "workspace_agent_metadata_pkey"
Metadata
Metadata
Assignees
Labels
No labels