Project

General

Profile

Bug #14354

Updated by Alexis Mousset about 5 years ago

When trying to save a technique, error is: 
 <pre> 
 [2019-10-02 11:40:36] INFO    policy.generation - Flag file '/opt/rudder/etc/policy-update-running' successfully removed An Error occured! Could not write technique 'a_simple_technique' from path /var/rudder/configuration-repository/ncf, cause is: Error while running post-hook command /var/rudder/configuration-repository/ncf/ncf-hooks.d/post.write_technique.50_rudderify.sh /var/rudder/configuration-repository/ncf a_simple_technique 
 [2019-10-02 11:40:36] INFO    policy.generation - Successful policy update '5' [started 2019-10-02 11:40:33 - ended 2019-10-02 11:40:36] Details: 

 INFO: Alternative source path added: /var/rudder/configuration-repository/ncf 
 [2019-10-02 11:41:29] INFO    com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec) 
 [2019-10-02 11:41:52] ERROR com.normation.cfclerk.services.impl.GitTechniqueReader - Can ERROR: Could not find the parent (root) category '/ncf_techniques/bob/1.0' for package 'bob/1.0' 
 [2019-10-02 11:41:52] INFO parse Technique 'a_simple_technique' 
  caused by : Error while running post-hook command cf-promises -pjson -f /var/rudder/configuration-repository/ncf/50_techniques/a_simple_technique/a_simple_technique.cf 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Unable to make directory: /var/lib/ncf-api-venv/.cfagent (mkdir: Permission denied) 
    error: Fatal CFEngine error:    com.normation.cfclerk.services.impl.TechniqueRepositoryImpl - Reloading technique library, no modified techniques found 
 [2019-10-02 11:41:52] INFO    com.normation.rudder.services.policies.DeployOnTechniqueCallback - Update No access to WORKSPACE/inputs dir 

 Error: Unable to create Rudder Technique library after creating files for related to ncf Technique bob a_simple_technique, cannot find ncf Technique a_simple_technique 
 [2019-10-02 11:42:38] INFO    com.normation.rudder.rest.RestAuthentication - User(admin,c7ad44cbad762a5da0a452f9e854fdc1e0e7a52a38015f23f3eab1d80b931dd472634dfac71cd34ebc35d16ab7fb8a90c81f975113d6c7538dc69dd8de9077ec) 
 None 

 </pre> 

 And it is saved in the technique editor but does not show up in directive tree.

Back