{"id":185318,"status":"failed","playbook":{"id":2301,"items":{"plays":1,"tasks":1,"results":16,"hosts":16,"files":1,"records":0},"arguments":{"version":null,"verbosity":2,"private_key_file":"/home/ssh-gateway/.ssh/id_rsa","remote_user":"root","connection":"ssh","timeout":null,"ssh_common_args":null,"sftp_extra_args":null,"scp_extra_args":null,"ssh_extra_args":null,"ask_pass":false,"connection_password_file":null,"force_handlers":false,"flush_cache":false,"become":false,"become_method":"sudo","become_user":null,"become_ask_pass":false,"become_password_file":null,"tags":["all"],"skip_tags":[],"check":false,"diff":false,"inventory":["/home/ssh-gateway/ansible/kuly/bash-kvm-inventory-prod.sh"],"listhosts":false,"subset":"*.chi*","extra_vars":"Not saved by ARA as configured by 'ignored_arguments'","vault_ids":[],"ask_vault_pass":false,"vault_password_files":[],"forks":20,"module_path":null,"syntax":false,"listtasks":false,"listtags":false,"step":false,"start_at_task":null,"args":["switch_agent360_to_root.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"},{"id":165,"name":"subset:*.chi*"}],"started":"2024-12-09T12:54:55.944285Z","ended":"2024-12-09T12:55:05.906126Z","duration":"00:00:09.961841","name":null,"ansible_version":"2.16.11","client_version":"1.7.2","python_version":"3.10.10","server_version":"1.7.2","status":"failed","path":"/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":2616,"items":{"tasks":1,"results":16},"started":"2024-12-09T12:54:55.978287Z","ended":"2024-12-09T12:55:05.071134Z","duration":"00:00:09.092847","name":"Playbook to switch agent360 to root","status":"completed"},"task":{"id":5683,"items":{"results":16},"path":"/home/ssh-gateway/ansible/kuly/switch_agent360_to_root.yaml","tags":[],"started":"2024-12-09T12:54:56.078642Z","ended":"2024-12-09T12:55:05.021989Z","duration":"00:00:08.943347","name":"Run commands","uuid":"001851d0-75dc-3ba5-4b57-00000000011e","action":"ansible.builtin.shell","lineno":6,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":4377},"host":{"id":77306,"name":"gold-caterpillar.chi-1.vm.plesk-server.com","changed":0,"failed":1,"ok":0,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"set -o pipefail\nrm -f /etc/sudoers.d/agent360\nrm -f /tmp/*sum*\nmkdir /etc/systemd/system/agent360.service.d/\necho -e \"[Service]\\nUser=root\" > /etc/systemd/system/agent360.service.d/override.conf\nsystemctl daemon-reload\nsystemctl restart agent360.service\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s apache_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s fpm_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s provider_metrics\n","delta":"0:00:03.603949","end":"2024-12-09 06:55:02.152809","invocation":{"module_args":{"_raw_params":"set -o pipefail\nrm -f /etc/sudoers.d/agent360\nrm -f /tmp/*sum*\nmkdir /etc/systemd/system/agent360.service.d/\necho -e \"[Service]\\nUser=root\" > /etc/systemd/system/agent360.service.d/override.conf\nsystemctl daemon-reload\nsystemctl restart agent360.service\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s apache_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s fpm_errors\ncurl -Ls https://deploy.thecode.casa/agent360_plugins/install.sh  | bash -s provider_metrics\n","_uses_shell":true,"argv":null,"chdir":null,"creates":null,"executable":"/bin/bash","expand_argument_vars":true,"removes":null,"stdin":null,"stdin_add_newline":true,"strip_empty_ends":true}},"msg":"non-zero return code","rc":5,"start":"2024-12-09 06:54:58.548860","stderr":"Failed to restart agent360.service: Unit agent360.service not found.\nbash: line 8: agent360: command not found\ngrep: /etc/agent360.ini: No such file or directory\ngrep: /etc/agent360-custom.ini: No such file or directory\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100   777  100   777    0     0   2607      0 --:--:-- --:--:-- --:--:--  2598\r100   777  100   777    0     0   2607      0 --:--:-- --:--:-- --:--:--  2598\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file \nWarning: /usr/local/lib//site-packages/agent360/plugins/apache_errors.py: No \nWarning: such file or directory\n\r100  1973  100  1973    0     0   6733      0 --:--:-- --:--:-- --:--:--  6733\ncurl: (23) Failed writing body (0 != 1973)\nFailed to restart agent360.service: Unit agent360.service not found.\nbash: line 27: /usr/local/bin/agent360: No such file or directory\nRedirecting to /bin/systemctl restart agent360.service\nFailed to restart agent360.service: Unit agent360.service not found.\nbash: line 8: agent360: command not found\ngrep: /etc/agent360.ini: No such file or directory\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100    81  100    81    0     0    277      0 --:--:-- --:--:-- --:--:--   276\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file \nWarning: /usr/local/lib//site-packages/agent360/plugins/fpm_errors.py: No such \nWarning: file or directory\n\r100  3111  100  3111    0     0  10233      0 --:--:-- --:--:-- --:--:-- 10233\ncurl: (23) Failed writing body (0 != 3111)\nFailed to restart agent360.service: Unit agent360.service not found.\nbash: line 27: /usr/local/bin/agent360: No such file or directory\nRedirecting to /bin/systemctl restart agent360.service\nFailed to restart agent360.service: Unit agent360.service not found.\nbash: line 8: agent360: command not found\ngrep: /etc/agent360.ini: No such file or directory\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0\r100    73  100    73    0     0    231      0 --:--:-- --:--:-- --:--:--   231\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\n                                 Dload  Upload   Total   Spent    Left  Speed\n\r  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file \nWarning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py: \nWarning: No such file or directory\n\r100 10685  100 10685    0     0  33390      0 --:--:-- --:--:-- --:--:-- 33390\ncurl: (23) Failed writing body (0 != 10685)\nFailed to restart agent360.service: Unit agent360.service not found.\nbash: line 27: /usr/local/bin/agent360: No such file or directory\nRedirecting to /bin/systemctl restart agent360.service\nFailed to restart agent360.service: Unit agent360.service not found.","stderr_lines":["Failed to restart agent360.service: Unit agent360.service not found.","bash: line 8: agent360: command not found","grep: /etc/agent360.ini: No such file or directory","grep: /etc/agent360-custom.ini: No such file or directory","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0","100   777  100   777    0     0   2607      0 --:--:-- --:--:-- --:--:--  2598","100   777  100   777    0     0   2607      0 --:--:-- --:--:-- --:--:--  2598","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ","Warning: /usr/local/lib//site-packages/agent360/plugins/apache_errors.py: No ","Warning: such file or directory","","100  1973  100  1973    0     0   6733      0 --:--:-- --:--:-- --:--:--  6733","curl: (23) Failed writing body (0 != 1973)","Failed to restart agent360.service: Unit agent360.service not found.","bash: line 27: /usr/local/bin/agent360: No such file or directory","Redirecting to /bin/systemctl restart agent360.service","Failed to restart agent360.service: Unit agent360.service not found.","bash: line 8: agent360: command not found","grep: /etc/agent360.ini: No such file or directory","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0","100    81  100    81    0     0    277      0 --:--:-- --:--:-- --:--:--   276","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ","Warning: /usr/local/lib//site-packages/agent360/plugins/fpm_errors.py: No such ","Warning: file or directory","","100  3111  100  3111    0     0  10233      0 --:--:-- --:--:-- --:--:-- 10233","curl: (23) Failed writing body (0 != 3111)","Failed to restart agent360.service: Unit agent360.service not found.","bash: line 27: /usr/local/bin/agent360: No such file or directory","Redirecting to /bin/systemctl restart agent360.service","Failed to restart agent360.service: Unit agent360.service not found.","bash: line 8: agent360: command not found","grep: /etc/agent360.ini: No such file or directory","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0","100    73  100    73    0     0    231      0 --:--:-- --:--:-- --:--:--   231","  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current","                                 Dload  Upload   Total   Spent    Left  Speed","","  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ","Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py: ","Warning: No such file or directory","","100 10685  100 10685    0     0  33390      0 --:--:-- --:--:-- --:--:-- 33390","curl: (23) Failed writing body (0 != 10685)","Failed to restart agent360.service: Unit agent360.service not found.","bash: line 27: /usr/local/bin/agent360: No such file or directory","Redirecting to /bin/systemctl restart agent360.service","Failed to restart agent360.service: Unit agent360.service not found."],"stdout":"Adding conf, so this is an install\nAdding conf, so this is an install\nAdding conf, so this is an install","stdout_lines":["Adding conf, so this is an install","Adding conf, so this is an install","Adding conf, so this is an install"]},"created":"2024-12-09T12:55:02.288727Z","updated":"2024-12-09T12:55:02.288750Z","started":"2024-12-09T12:54:56.856995Z","ended":"2024-12-09T12:55:02.231283Z","duration":"00:00:05.374288","changed":false,"ignore_errors":false}