Bug #10268
closedtechnique editor return error 500 and /var/rudder/ncf/50_techniques/ empty
Description
We have an user on irc who, when saving a techniqe from editor, waited a long time and nothing happen. When reloading the page, he now gets:
An Error occured! Unknown internal error during techniques fetching Details: Cause: No JSON object could be decoded Traceback (most recent call last): File "/usr/share/ncf/api/ncf_api_flask_app/views.py", line 115, in get_techniques techniques = ncf.get_all_techniques_metadata(alt_path = path) File "/usr/share/ncf/tools/ncf.py", line 554, in get_all_techniques_metadata method_calls = parse_technique_methods(file) File "/usr/share/ncf/tools/ncf.py", line 294, in parse_technique_methods promises = json.loads(out) File "/usr/lib/python2.7/json/__init__.py", line 339, in loads return _default_decoder.decode(s) File "/usr/lib/python2.7/json/decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded
Moreover, /var/rudder/ncf/local only contains ncf.conf, ncf_hash_file but no 50_techniques. The content of /var/rudder/configuration-repository/ncf/ seems ok.
And "rudder agent update && rudder agent run" does not copy back the content.
Updated by Josh Watt over 7 years ago
FWIW, it's actually version 4.0.2, running on Ubuntu 16.04 x64.
Updated by Josh Watt over 7 years ago
results of "*find /var/rudder/configuration-repository/ncf/50_techniques -type f -exec cf-promises -pjson -f {} \;*" are at http://pastebin.com/nMuR8YH2
Updated by Nicolas CHARLES over 7 years ago
Dear Josh,
It is expected in Rudder 4.x to not have /var/rudder/ncf/local/50_tehcnique - generated techniques are now store in /var/rudder/configuration-repository
Your pastebin shows l484
error: Variable reference bracket mismatch '${rudder.param.header)' error: Variable reference close mismatch '${rudder.param.header)' error: Variable reference bracket mismatch '${rudder.param.header)' error: Variable reference close mismatch '${rudder.param.header)'
In Technique RDC_Authentication_Config___S1 you are not correctly closing the bracket, using ')' instead of '}' , which causes the issue
Updated by Nicolas CHARLES over 7 years ago
- Related to Bug #8142: Technique editor no more usable if mismatched/unclosed ${} $() in input added
Updated by Vincent MEMBRÉ over 7 years ago
- Project changed from Rudder to 41
- Category changed from Web - Technique editor to Technique editor - API
- Assignee set to Vincent MEMBRÉ
- Target version changed from 4.0.4 to 0.x
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from New to In progress
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from In progress to Pending technical review
- Assignee changed from Vincent MEMBRÉ to François ARMAND
- Pull Request set to https://github.com/Normation/ncf/pull/539
Updated by Vincent MEMBRÉ over 7 years ago
- Status changed from Pending technical review to Pending release
Applied in changeset commit:7b350be5a891f730fe266769f48fb25d7a98ce38.
Updated by Vincent MEMBRÉ almost 7 years ago
- Status changed from Pending release to Released
- Priority set to 0
Updated by Alexis Mousset about 2 years ago
- Target version changed from 0.x to ncf-0.x
Updated by Alexis Mousset about 2 years ago
- Project changed from 41 to Rudder
- Category changed from Technique editor - API to Web - Technique editor