Actions
Bug #10732
closedPermissions problems when exporting / importing global archive
Status:
Resolved
Priority:
N/A
Assignee:
Category:
Web - Config management
Target version:
Pull Request:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Medium
Priority:
0
Name check:
Fix check:
Regression:
Description
Hi,
Technique editor return a permission error when saving a technique after exporting and importing a global archive from a server to another server.
It seems that permissions on files inside /var/rudder/configuration-repository/ncf/ncf-hooks.d/ was not group executable :
root@ic-rudder:/var/rudder/configuration-repository/ncf# ll ncf-hooks.d/ total 8.0K -rw-r--r-- 1 root rudder 1.6K Apr 27 22:28 post.write_technique.commit.sh -rw-r--r-- 1 root rudder 2.7K Apr 27 22:28 post.write_technique.rudderify.sh
Permissions on the source server was correct.
Here is the error message in the technique editor when saving :
Cause: [Errno 13] Permission denied Traceback (most recent call last): File "/usr/share/ncf/api/ncf_api_flask_app/views.py", line 155, in create_technique result = ncf.write_technique(technique,path) File "/usr/share/ncf/tools/ncf.py", line 635, in write_technique execute_hooks("post", action, path, bundle_name) File "/usr/share/ncf/tools/ncf.py", line 410, in execute_hooks check_output([hookfile,path,bundle_name]) File "/usr/share/ncf/tools/ncf.py", line 82, in check_output process = subprocess.Popen(command, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, env=command_env) File "/usr/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 13] Permission denied
Actions