Project

General

Profile

Actions

Bug #10268

closed

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

Added by François ARMAND over 7 years ago. Updated over 2 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 open1 closed)

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

Updated by François ARMAND over 7 years ago

  • Description updated (diff)
Actions #2

Updated by Josh Watt over 7 years ago

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

Actions #3

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

Actions #4

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

Actions #5

Updated by Nicolas CHARLES over 7 years ago

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

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
Actions #7

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from New to In progress
Actions #8

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
Actions #9

Updated by Vincent MEMBRÉ over 7 years ago

  • Status changed from Pending technical review to Pending release

Applied in changeset commit:7b350be5a891f730fe266769f48fb25d7a98ce38.

Actions #10

Updated by Vincent MEMBRÉ about 7 years ago

  • Status changed from Pending release to Released
  • Priority set to 0
Actions #11

Updated by Alexis Mousset over 2 years ago

  • Target version changed from 0.x to ncf-0.x
Actions #12

Updated by Alexis Mousset over 2 years ago

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

Also available in: Atom PDF