Bug #12715
closedAPI generate sometimes error 500 when try create or update a directive
Description
when I try to clone a directive from a server to another with the api,
I have sometimes (not always cause I just have to relaunch my query) an error 500
the data I send come from the first server with query get rudder/api/latest/directives
logs : 2018-05-30 11:40:19,250 - rudder-sync - INFO - createDirective: [Ubuntu] [Perms] Symlinks and permissions 2018-05-30 11:40:19,261 - rudder-sync - WARNING - apiQuery: eRRoR 500 : PUT https://10.66.239.8/rudder/api/latest/directives 2018-05-30 11:40:19,261 - rudder-sync - WARNING - apiQuery: request's answer: {"action":"createDirective","result":"error","errorDetails":"Could not create Directive <- Could not extract values from request <- Missing required attribute 'name' for <section>: JObject(List(JField(var,JObject(List(JField(value,JString(symlink)), JField(name,JString(FILE_AND_FOLDER_MANAGEMENT_ACTION)))))))"} {'displayName': '[Ubuntu] [Perms] Symlinks and permissions', 'enabled': 'true', 'id': '345ac34c-080f-40e0-a2c0-c2f07bfc4af6', 'longDescription': '', 'parameters': '{"section": {"sections": [{"section": {"sections": ' '[{"section": {"vars": [{"var": {"value": "/etc/krb5.conf", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": ' '"File"}}, {"section": {"vars": [{"var": {"value": "0", "name": ' '"FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", ' '"name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ' '".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": ' '"File cleaning options"}}, {"section": {"vars": [{"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": ' '{"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, ' '{"var": {"value": "", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": ' '"1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": ' '"false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": ' '"Permissions"}}, {"section": {"vars": [{"var": {"value": "", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, ' '{"var": {"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": ' '"Post-modification hook"}}], "vars": [{"var": {"value": ' '"symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, ' '{"var": {"value": "true", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": ' '{"value": "/etc/forge/krb5.conf", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File ' 'to manage"}}, {"section": {"sections": [{"section": {"vars": ' '[{"var": {"value": "/etc/bugzilla/localconfig", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, ' '{"section": {"vars": [{"var": {"value": "0", "name": ' '"FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", ' '"name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ' '".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": ' '"File cleaning options"}}, {"section": {"vars": [{"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": ' '{"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, ' '{"var": {"value": "", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": ' '"1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": ' '"false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": ' '"Permissions"}}, {"section": {"vars": [{"var": {"value": "", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, ' '{"var": {"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": ' '"Post-modification hook"}}], "vars": [{"var": {"value": ' '"symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, ' '{"var": {"value": "true", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": ' '{"value": "/srv/bugzilla/localconfig", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File ' 'to manage"}}, {"section": {"sections": [{"section": {"vars": ' '[{"var": {"value": "/etc/gitweb.conf", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, ' '{"section": {"vars": [{"var": {"value": "0", "name": ' '"FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", ' '"name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ' '".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": ' '"File cleaning options"}}, {"section": {"vars": [{"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": ' '{"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, ' '{"var": {"value": "", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": ' '"1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": ' '"false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": ' '"Permissions"}}, {"section": {"vars": [{"var": {"value": ' '"apachectl restart", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, {"var": ' '{"value": "true", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": ' '"Post-modification hook"}}], "vars": [{"var": {"value": ' '"symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, ' '{"var": {"value": "true", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": ' '{"value": "/etc/forge/gitweb.conf", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File ' 'to manage"}}, {"section": {"sections": [{"section": {"vars": ' '[{"var": {"value": "/etc/forge/AuthzGIT", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, ' '{"section": {"vars": [{"var": {"value": "0", "name": ' '"FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", ' '"name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ' '".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": ' '"File cleaning options"}}, {"section": {"vars": [{"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": ' '{"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, ' '{"var": {"value": "", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": ' '"1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": ' '{"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": ' '"false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": ' '"Permissions"}}, {"section": {"vars": [{"var": {"value": "", ' '"name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, ' '{"var": {"value": "false", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": ' '"Post-modification hook"}}], "vars": [{"var": {"value": ' '"symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, ' '{"var": {"value": "true", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": ' '{"value": "/etc/forge/AuthzSVN", "name": ' '"FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File ' 'to manage"}}], "name": "sections"}}', 'priority': 5, 'shortDescription': '', 'tags': [], 'techniqueName': 'fileManagement', 'techniqueVersion': '4.0'} 2018-05-30 11:40:19,262 - rudder-sync - WARNING - apiQuery: request's datas: None debug: curl -k -H "X-API-Token: token-XXX" -X PUT "https://10.66.239.8/rudder/api/latest/directives" -d "{'id': '345ac34c-080f-40e0-a2c0-c2f07bfc4af6', 'displayName': '[Ubuntu] [Forge] [14.4.5] [Perms] Symlinks and permissions', 'parameters': '{"section": {"sections": [{"section": {"sections": [{"section": {"vars": [{"var": {"value": "/etc/krb5.conf", "name": "FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, {"section": {"vars": [{"var": {"value": "0", "name": "FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", "name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": "File cleaning options"}}, {"section": {"vars": [{"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", "name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": "1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": "Permissions"}}, {"section": {"vars": [{"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": "Post-modification hook"}}], "vars": [{"var": {"value": "symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, {"var": {"value": "true", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": {"value": "/etc/forge/krb5.conf", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File to manage"}}, {"section": {"sections": [{"section": {"vars": [{"var": {"value": "/etc/bugzilla/localconfig", "name": "FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, {"section": {"vars": [{"var": {"value": "0", "name": "FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", "name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": "File cleaning options"}}, {"section": {"vars": [{"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", "name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": "1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": "Permissions"}}, {"section": {"vars": [{"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": "Post-modification hook"}}], "vars": [{"var": {"value": "symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, {"var": {"value": "true", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": {"value": "/srv/bugzilla/localconfig", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File to manage"}}, {"section": {"sections": [{"section": {"vars": [{"var": {"value": "/etc/gitweb.conf", "name": "FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, {"section": {"vars": [{"var": {"value": "0", "name": "FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", "name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": "File cleaning options"}}, {"section": {"vars": [{"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", "name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": "1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": "Permissions"}}, {"section": {"vars": [{"var": {"value": "apachectl restart", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, {"var": {"value": "true", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": "Post-modification hook"}}], "vars": [{"var": {"value": "symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, {"var": {"value": "true", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": {"value": "/etc/forge/gitweb.conf", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File to manage"}}, {"section": {"sections": [{"section": {"vars": [{"var": {"value": "/etc/forge/AuthzGIT", "name": "FILE_AND_FOLDER_MANAGEMENT_PATH"}}], "name": "File"}}, {"section": {"vars": [{"var": {"value": "0", "name": "FILE_AND_FOLDER_DELETION_DAYS"}}, {"var": {"value": "none", "name": "FILE_AND_FOLDER_DELETION_OPTION"}}, {"var": {"value": ".*", "name": "FILE_AND_FOLDER_DELETION_PATTERN"}}], "name": "File cleaning options"}}, {"section": {"vars": [{"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_CHECK_PERMISSIONS"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_GROUP"}}, {"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_OWNER"}}, {"var": {"value": "000", "name": "FILE_AND_FOLDER_MANAGEMENT_PERM"}}, {"var": {"value": "1", "name": "FILE_AND_FOLDER_MANAGEMENT_RECURSIVE"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SGID"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_SUID"}}], "name": "Permissions"}}, {"section": {"vars": [{"var": {"value": "", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_COMMAND"}}, {"var": {"value": "false", "name": "FILE_AND_FOLDER_MANAGEMENT_POST_HOOK_RUN"}}], "name": "Post-modification hook"}}], "vars": [{"var": {"value": "symlink", "name": "FILE_AND_FOLDER_MANAGEMENT_ACTION"}}, {"var": {"value": "true", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_ENFORCE"}}, {"var": {"value": "/etc/forge/AuthzSVN", "name": "FILE_AND_FOLDER_MANAGEMENT_SYMLINK_SOURCE"}}], "name": "File to manage"}}], "name": "sections"}}', 'tags': [], 'priority': 5, 'longDescription': '', 'shortDescription': '', 'enabled': 'true', 'techniqueVersion': '4.0', 'techniqueName': 'fileManagement'}"
Updated by Benoît PECCATTE over 6 years ago
- Severity set to Minor - inconvenience | misleading | easy workaround
- User visibility set to Operational - other Techniques | Technique editor | Rudder settings
- Priority changed from 0 to 32
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
Updated by François ARMAND about 6 years ago
- Effort required set to Very Small
- Priority changed from 32 to 58
The "very small" is to be able to qualify the reproducibility of the bug (since we have some example data).
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
- Priority changed from 58 to 57
Updated by Vincent MEMBRÉ about 6 years ago
- Priority changed from 57 to 0
In fact it seems that it miss some values to be defined in the json, I'll look deeper into it. But we need at least to improve error message
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.17 to 4.1.18
Updated by Vincent MEMBRÉ almost 6 years ago
- Target version changed from 4.1.18 to 4.1.19
Updated by Alexis Mousset almost 6 years ago
- Target version changed from 4.1.19 to 4.1.20
Updated by François ARMAND almost 6 years ago
- Target version changed from 4.1.20 to 4.1.21
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 4.1.21 to 4.1.22
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 4.1.22 to 4.1.23
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 4.1.23 to 4.1.24
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 4.1.24 to 588
Updated by Nicolas CHARLES over 5 years ago
- Target version changed from 588 to 5.0.13
Updated by Vincent MEMBRÉ over 5 years ago
- Target version changed from 5.0.13 to 5.0.14
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.15 to 5.0.16
Updated by Jérémy HOCDÉ about 5 years ago
the problem is still relevant in 5.0.15
what annoys me is that it is not systematic, it's really random
so not easy to reproduce
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 5.0.16 to 5.0.17
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.17 to 5.0.18
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.18 to 5.0.19
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.19 to 5.0.20
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 5.0.20 to 797
Updated by Benoît PECCATTE over 3 years ago
- Target version changed from 797 to 6.1.14
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.14 to 6.1.15
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.15 to 6.1.16
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.16 to 6.1.17
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.17 to 6.1.18
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.18 to 6.1.19
Updated by François ARMAND almost 3 years ago
- Status changed from New to Rejected
We were not able to reproduce it, but the related system had a lots of performance problem related to LDAP. We have greatly improved LDAP perf since them, so I'm closing that ticket. Feel free to open it again if necessary.