Project

General

Profile

Actions

Bug #17973

closed

error in technique editor when upgrading from 6.0.0~rc5 to 6.1.1 on centos7

Added by Nicolas CHARLES over 4 years ago. Updated almost 3 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Web - Technique editor
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:

Description

Technique editor says

An Error occured! Error while fetching techniques
Details:

Could not get techniques metadata <- An Error occured while extracting data from techniques ncf API <- parameter name cannot be empty <- Unexpected: parameter 'name' cannot be empty

triggering an internal technique relaod also fails

curl  -H "X-API-TOKEN:  $(cat /var/rudder/run/api-token)" https://localhost/rudder/api/latest/internal/techniques/reload -X POST -k 
{"action":"techniques","result":"error","errorDetails":"Could not get generic methods metadata <- Inconsistency: An error occured while updating generic methods library with command '/usr/share/ncf/ncf write_all_techniques':\n code: 1\n stderr: Traceback (most recent call last):\n  File \"/usr/share/ncf/ncf\", line 102, in <module>\n    write_all_techniques(\"\", False)\n  File \"/usr/share/ncf/ncf\", line 72, in write_all_techniques\n    techniques = ncf.get_all_techniques_metadata(True,migrate_old)\n  File \"/usr/share/ncf/tools/ncf.py\", line 439, in get_all_techniques_metadata\n    result = parse_technique_metadata(content)\n  File \"/usr/share/ncf/tools/ncf.py\", line 140, in parse_technique_metadata\n    return parse_bundlefile_metadata(technique_content, \"technique\")\n  File \"/usr/share/ncf/tools/ncf.py\", line 181, in parse_bundlefile_metadata\n    parameter = json.loads(match.group(2))\n  File \"/usr/lib64/python2.7/json/__init__.py\", line 338, in loads\n    return _default_decoder.decode(s)\n  File \"/usr/lib64/python2.7/json/decoder.py\", line 366, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n  File \"/usr/lib64/python2.7/json/decoder.py\", line 382, in raw_decode\n    obj, end = self.scan_once(s, idx)\nValueError: Expecting ':' delimiter: line 1 column 78 (char 77)\n\n stdout: "}

Actions

Also available in: Atom PDF