Bug #7366
closedError when add new technique
Description
When add new technique, I have this error:
An Error occured! Could not write technique 'test' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command [u'/var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.rudderify.sh', u'/var/rudder/configuration-repository/ncf', u'test'] Details: INFO: Alternative source path added: /var/rudder/configuration-repository/ncf ERROR: Could not parse Technique file '/var/rudder/configuration-repository/ncf/50_techniques/test/test.cf' caused by : Error while running post-hook command ['cf-promises', '-pjson', '-f', '/var/rudder/configuration-repository/ncf/50_techniques/test/test.cf'] ERROR: Could not parse Technique file '/var/rudder/configuration-repository/ncf/50_techniques/pip_install/pip_install.cf' caused by : Error while running post-hook command ['cf-promises', '-pjson', '-f', '/var/rudder/configuration-repository/ncf/50_techniques/pip_install/pip_install.cf'] Error: Unable to create Rudder Technique files related to ncf Technique test ('method_calls') Traceback (most recent call last): File "/usr/share/ncf/tools/ncf_rudder.py", line 47, in write_one_technique_for_rudder write_technique_for_rudder(destination_path, metadata) File "/usr/share/ncf/tools/ncf_rudder.py", line 131, in write_technique_for_rudder include_rudder_reporting = not all(method_call['class_context'] == 'any' for method_call in technique["method_calls"]) KeyError: 'method_calls'
I'm on Rudder v.3.2.0~beta1~git201511021758
Updated by Nicolas CHARLES about 9 years ago
Hi david
On which OS does it happen ?
Do you have the ncf_api_venv user created ok ?
If you manually run (as user ncf_api_venv) the folliowing command, what happens ?
/var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.rudderify.sh /var/rudder/configuration-repository/ncf test
Updated by David Durieux about 9 years ago
Centos 7.1
user ncf_api_venv created
Result of the command:
INFO: The /var/rudder/configuration-repository/techniques/ncf_techniques/category.xml file already exists. Not updating. INFO: Alternative source path added: /var/rudder/configuration-repository/ncf Error: Unable to create Rudder Technique files related to ncf Technique test, cannot find ncf Technique test None ERROR: An error happened in /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.rudderify.sh during the step: Creating rudder technique "test" from ncf technique
Updated by Nicolas CHARLES about 9 years ago
Do you have in the folder /var/rudder/configuration-repository/ncf a file containing "bundle agent test" ?
Updated by Nicolas CHARLES about 9 years ago
ok, this is why it does fail. can you try to create a technique directly in the web interface, and then paste the logs outputs of
/var/log/httpd/error.log and /var/log/rudder/apache2/error.log
Thank you !
Updated by David Durieux about 9 years ago
[Tue Nov 10 15:48:58.503910 2015] [:alert] [pid 1720] (2)No such file or directory: mod_wsgi (pid=1720): Unable to change working directory to '/var/lib/ncf-api-venv'.
I have created manually the folder and add rights to ncf-api-venv dans it works.
So seems RPM not create home folder of ncf-api-venv correctly
Updated by Jonathan CLARKE about 9 years ago
- Status changed from New to Rejected
This appears to be a duplicate of #7386 that is now fixed.
Can you please test the latest 3.2.0 nightly build to confirm, David? Thanks.
Updated by Jonathan CLARKE about 9 years ago
- Is duplicate of Bug #7386: Impossible to create Technique with technique editor on CentOS added