Project

General

Profile

Actions

Bug #10268

closed

technique editor return error 500 and /var/rudder/ncf/50_techniques/ empty

Bug #10268: technique editor return error 500 and /var/rudder/ncf/50_techniques/ empty

Added by François ARMAND over 9 years ago. Updated over 4 years ago.

Status:
Released
Priority:
2
Category:
Web - Technique editor
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

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.


Related issues 1 (0 open — 1 closed)

Related to Rudder - Bug #8142: Technique editor no more usable if mismatched/unclosed ${} $() in inputRejectedActions

Updated by François ARMAND over 9 years ago Actions #1

  • Description updated (diff)

Updated by Josh Watt over 9 years ago Actions #2

FWIW, it's actually version 4.0.2, running on Ubuntu 16.04 x64.

Updated by Josh Watt over 9 years ago Actions #3

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 9 years ago Actions #4

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 9 years ago Actions #5

  • Related to Bug #8142: Technique editor no more usable if mismatched/unclosed ${} $() in input added

Updated by Vincent MEMBRÉ over 9 years ago Actions #6

  • 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 9 years ago Actions #7

  • Status changed from New to In progress

Updated by Vincent MEMBRÉ over 9 years ago Actions #8

  • 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 9 years ago Actions #9

  • Status changed from Pending technical review to Pending release

Updated by Vincent MEMBRÉ about 9 years ago Actions #10

  • Status changed from Pending release to Released
  • Priority set to 0

Updated by Alexis Mousset over 4 years ago Actions #11

  • Target version changed from 0.x to ncf-0.x

Updated by Alexis Mousset over 4 years ago Actions #12

  • Project changed from 41 to Rudder
  • Category changed from Technique editor - API to Web - Technique editor
Actions

Also available in: PDF Atom