{"id":156379,"status":"failed","playbook":{"id":1911,"items":{"plays":1,"tasks":8,"results":1094,"hosts":138,"files":6,"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":null,"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":["update_provider_metrics.yaml"]},"labels":[{"id":1,"name":"remote_user:root"},{"id":2,"name":"check:False"},{"id":3,"name":"tags:all"}],"started":"2024-09-12T09:25:47.971179+01:00","ended":"2024-09-12T09:28:46.592669+01:00","duration":"00:02:58.621490","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/update_provider_metrics.yaml","controller":"ssh-gw-4.layershift.com","user":"root"},"play":{"id":2211,"items":{"tasks":8,"results":1094},"started":"2024-09-12T09:25:48.209794+01:00","ended":"2024-09-12T09:28:39.894657+01:00","duration":"00:02:51.684863","name":"Playbook to run update script","status":"completed"},"task":{"id":4598,"items":{"results":138},"path":"/home/ssh-gateway/ansible/kuly/update_provider_metrics.yaml","tags":[],"started":"2024-09-12T09:26:30.105065+01:00","ended":"2024-09-12T09:26:52.330872+01:00","duration":"00:00:22.225807","name":"Run update","uuid":"001851d0-75dc-bafd-73b0-000000000098","action":"ansible.builtin.shell","lineno":11,"handler":false,"status":"failed","warnings":[],"deprecations":[],"exceptions":[],"file":3707},"host":{"id":65601,"name":"versatile-thunder.sin-1.vm.plesk-server.com","changed":0,"failed":1,"ok":2,"skipped":0,"unreachable":0},"delegated_to":[],"content":{"changed":false,"cmd":"set -o pipefail\ncurl -Ls https://tgz.thecode.casa/agent360_plugins/install.sh  | bash -s provider_metrics\n","delta":"0:00:02.420036","end":"2024-09-12 16:26:45.402468","invocation":{"module_args":{"_raw_params":"set -o pipefail\ncurl -Ls https://tgz.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-09-12 16:26:42.982432","stderr":"bash: 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 --:--:-- --:--:-- --:--:--     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 10702  100 10702    0     0   7962      0  0:00:01  0:00:01 --:--:--  7962\ncurl: (23) Failed writing body (0 != 10702)\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   345  100   345    0     0    668      0 --:--:-- --:--:-- --:--:--   667\r100   345  100   345    0     0    668      0 --:--:-- --:--:-- --:--:--   667\nsudo: unknown user: agent360\nsudo: error initializing audit plugin sudoers_audit\nRedirecting to /bin/systemctl restart agent360.service\nFailed to restart agent360.service: Unit agent360.service not found.","stderr_lines":["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 --:--:-- --:--:-- --:--:--     0Warning: Failed to create the file ","Warning: /usr/local/lib//site-packages/agent360/plugins/provider_metrics.py: ","Warning: No such file or directory","","100 10702  100 10702    0     0   7962      0  0:00:01  0:00:01 --:--:--  7962","curl: (23) Failed writing body (0 != 10702)","  % 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   345  100   345    0     0    668      0 --:--:-- --:--:-- --:--:--   667","100   345  100   345    0     0    668      0 --:--:-- --:--:-- --:--:--   667","sudo: unknown user: agent360","sudo: error initializing audit plugin sudoers_audit","Redirecting to /bin/systemctl restart agent360.service","Failed to restart agent360.service: Unit agent360.service not found."],"stdout":"Conf already added, so this is an upgrade","stdout_lines":["Conf already added, so this is an upgrade"]},"created":"2024-09-12T09:26:51.616069+01:00","updated":"2024-09-12T09:26:51.616091+01:00","started":"2024-09-12T09:26:40.100288+01:00","ended":"2024-09-12T09:26:51.609849+01:00","duration":"00:00:11.509561","changed":false,"ignore_errors":false}