Project

General

Profile

Actions

Bug #11021

closed

Cannot generate ps1 technique file (missing 50_techniques directory)

Added by Nicolas CHARLES over 7 years ago. Updated over 2 years ago.

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

Description

Error is

Error: Unable to create Rudder Technique files related to ncf Technique foo ([Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1')
Traceback (most recent call last):
  File "/usr/share/ncf/tools/ncf_dsc.py", line 50, in convert_one_to_dsc
    write_dsc_technique(metadata, methods)
  File "/usr/share/ncf/tools/ncf_dsc.py", line 65, in write_dsc_technique
    file = codecs.open(os.path.realpath(os.path.join("/var/rudder/configuration-repository/dsc/ncf/50_techniques", technique_name + ".ps1" )), "w", encoding="utf-8")
  File "/usr/lib/python2.7/codecs.py", line 896, in open
    file = __builtin__.open(filename, mode, buffering)
IOError: [Errno 2] No such file or directory: u'/var/rudder/configuration-repository/dsc/ncf/50_techniques/foo.ps1'

ERROR: An error happened in /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.51_dscify.sh during the step: Creating rudder dsc technique "foo" from ncf technique

creating /var/rudder/configuration-repository/dsc/ncf/50_techniques solves the issue

Actions

Also available in: Atom PDF