Project

General

Profile

Bug #19769 » 2021-08-12T17_00_35.802+02_00_Bob.log

Nicolas CHARLES, 2021-08-12 17:02

 

error =>
Inconsistency: An error occurred when translating technique.json file into Rudder language
code: 1
stderr: An error occurred, could not create content from 'technique.json':
Technique from JSON: data did not match any variant of untagged enum MethodElem at line 75 column 3
An error occurred, could not create content: Command was "/opt/rudder/bin/rudderc" "save" "-j" "-i" "/var/rudder/configuration-repository/techniques/ncf_techniques/Bob/1.0/technique.json" "--config-file=/opt/rudder/etc/rudderc.conf"

stdout: {
"command": "save",
"source": "technique.json",
"time": "1628780435545",
"status": "failure",
"logs": {
"logs": []
},
"data": [],
"errors": [
"Technique from JSON: data did not match any variant of untagged enum MethodElem at line 75 column 3"
]
}
{
"command": "save",
"source": null,
"time": "1628780435546",
"status": "failure",
"logs": {
"logs": []
},
"data": [],
"errors": [
"Command was \"/opt/rudder/bin/rudderc\" \"save\" \"-j\" \"-i\" \"/var/rudder/configuration-repository/techniques/ncf_techniques/Bob/1.0/technique.json\" \"--config-file=/opt/rudder/etc/rudderc.conf\" "
]
}

technique data =>
{
"bundle_name":"Bob",
"version":"1.0",
"category":"ncf_techniques",
"description":"",
"name":"Bob",
"method_calls":[
{
"method_name":"file_absent",
"class_context":"",
"component":"File absent",
"parameters":[
{
"name":"path",
"value":""
}
],
"id":"d0605da1-ee38-43b8-88a7-b8c287eca477"
},
{
"method_name":"file_absent",
"class_context":"",
"component":"Truc machine",
"parameters":[
{
"name":"path",
"value":"/tmp/bobby"
}
],
"id":"405d4301-c4a8-45d2-b795-85be093cbe24"
},
{
"condition":"",
"component":"Machin bidule",
"reportingLogic":{
"type":"focus",
"value":"73d3b98f-3d20-4f34-9a71-d7697329f18c"
},
"calls":[
{
"method_name":"file_present",
"class_context":"",
"component":"File present",
"parameters":[
{
"name":"path",
"value":"/tmp/file"
}
],
"id":"36d00fdb-2468-4cb1-9aae-220a46eab9a3"
},
{
"method_name":"file_content",
"class_context":"path__tmp_file_ok",
"component":"File content",
"parameters":[
{
"name":"path",
"value":"/tmp/file"
},
{
"name":"lines",
"value":"bobbyt"
},
{
"name":"enforce",
"value":"true"
}
],
"id":"73d3b98f-3d20-4f34-9a71-d7697329f18c"
}
],
"id":"f383c14e-55cd-4fb1-8a1d-8ea811d6fd87"
}
],
"parameter":[],
"resources":[]
}
(1-1/4)