Advertisement
thiagofaioli

Erro Packer DigitalOcean

Feb 2nd, 2023
1,018
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 13.77 KB | None | 0 0
  1. $ packer --version
  2. 1.8.5
  3. $ ansible --version
  4. ansible [core 2.14.1]
  5.   config file = /etc/ansible/ansible.cfg
  6.   configured module search path = ['/home/faioli/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  7.   ansible python module location = /usr/lib/python3.11/site-packages/ansible
  8.   ansible collection location = /home/faioli/.ansible/collections:/usr/share/ansible/collections
  9.   executable location = /usr/bin/ansible
  10.   python version = 3.11.1 (main, Jan  6 2023, 00:00:00) [GCC 12.2.1 20221121 (Red Hat 12.2.1-4)] (/usr/bin/python3)
  11.   jinja version = 3.0.3
  12.   libyaml = True
  13.  
  14.  
  15.  
  16.  
  17.  
  18. 2023/02/02 16:32:57 [INFO] (telemetry) Starting provisioner ansible
  19. 2023/02/02 16:32:57 packer-provisioner-ansible plugin: ansible-playbook version: 2.14.1
  20. ==> digitalocean.autogenerated_1: Provisioning with Ansible...
  21.     digitalocean.autogenerated_1: Setting up proxy adapter for Ansible....
  22. 2023/02/02 16:32:57 packer-provisioner-ansible plugin: Creating inventory file for Ansible run...
  23. 2023/02/02 16:32:57 packer-provisioner-ansible plugin: SSH proxy: serving on 127.0.0.1:43337
  24. ==> digitalocean.autogenerated_1: Executing Ansible: ansible-playbook -e packer_build_name="autogenerated_1" -e packer_builder_type=digitalocean --ssh-extra-args '-oHostKeyAlgorithms=+ssh-rsa -oPubkeyAcceptedKeyTypes=+ssh-rsa' --vault-password-file=***** -e ansible_ssh_private_key_file=/tmp/ansible-key1861898679 -i /tmp/packer-provisioner-ansible3091749051 /home/faioli/Trampo/Catarse/GIT/infra/packer/ansible/dev/roles/dev-catarse-sandbox_v1/playbook.yml
  25.     digitalocean.autogenerated_1:
  26.     digitalocean.autogenerated_1: PLAY [esse é o play para dev-catarse-sandbox_v1] *******************************
  27.     digitalocean.autogenerated_1:
  28.     digitalocean.autogenerated_1: TASK [Gathering Facts] *********************************************************
  29. 2023/02/02 16:32:57 packer-provisioner-ansible plugin: SSH proxy: accepted connection
  30. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using none
  31. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using publickey
  32. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using publickey
  33. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using publickey
  34. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using publickey
  35. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: authentication attempt from 127.0.0.1:60192 to 127.0.0.1:43337 as root using publickey
  36. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo ~root && sleep 0'
  37. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [DEBUG] Opening new ssh session
  38. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [DEBUG] starting remote command: /bin/sh -c 'echo ~root && sleep 0'
  39. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [INFO] RPC endpoint: Communicator ended with: 0
  40. 2023/02/02 16:32:58 [INFO] 6 bytes written for 'stdout'
  41. 2023/02/02 16:32:58 [INFO] 0 bytes written for 'stderr'
  42. 2023/02/02 16:32:58 [INFO] RPC client: Communicator ended with: 0
  43. 2023/02/02 16:32:58 [INFO] RPC endpoint: Communicator ended with: 0
  44. 2023/02/02 16:32:58 [INFO] 0 bytes written for 'stdin'
  45. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  46. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 6 bytes written for 'stdout'
  47. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  48. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin'
  49. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240 `" && echo ansible-tmp-1675366378.4474046-1263537-260134773164240="` echo /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240 `" ) && sleep 0'
  50. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [DEBUG] Opening new ssh session
  51. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [DEBUG] starting remote command: /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240 `" && echo ansible-tmp-1675366378.4474046-1263537-260134773164240="` echo /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240 `" ) && sleep 0'
  52. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [INFO] RPC endpoint: Communicator ended with: 0
  53. 2023/02/02 16:32:58 [INFO] 129 bytes written for 'stdout'
  54. 2023/02/02 16:32:58 [INFO] 0 bytes written for 'stderr'
  55. 2023/02/02 16:32:58 [INFO] RPC client: Communicator ended with: 0
  56. 2023/02/02 16:32:58 [INFO] RPC endpoint: Communicator ended with: 0
  57. 2023/02/02 16:32:58 [INFO] 0 bytes written for 'stdin'
  58. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 129 bytes written for 'stdout'
  59. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  60. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  61. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin'
  62. 2023/02/02 16:32:58 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.11'"'"'; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0'
  63. 2023/02/02 16:32:58 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:58 [DEBUG] Opening new ssh session
  64. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [DEBUG] starting remote command: /bin/sh -c 'echo PLATFORM; uname; echo FOUND; command -v '"'"'python3.11'"'"'; command -v '"'"'python3.10'"'"'; command -v '"'"'python3.9'"'"'; command -v '"'"'python3.8'"'"'; command -v '"'"'python3.7'"'"'; command -v '"'"'python3.6'"'"'; command -v '"'"'python3.5'"'"'; command -v '"'"'/usr/bin/python3'"'"'; command -v '"'"'/usr/libexec/platform-python'"'"'; command -v '"'"'python2.7'"'"'; command -v '"'"'/usr/bin/python'"'"'; command -v '"'"'python'"'"'; echo ENDFOUND && sleep 0'
  65. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [INFO] RPC endpoint: Communicator ended with: 0
  66. 2023/02/02 16:32:59 [INFO] 66 bytes written for 'stdout'
  67. 2023/02/02 16:32:59 [INFO] 0 bytes written for 'stderr'
  68. 2023/02/02 16:32:59 [INFO] RPC client: Communicator ended with: 0
  69. 2023/02/02 16:32:59 [INFO] RPC endpoint: Communicator ended with: 0
  70. 2023/02/02 16:32:59 [INFO] 0 bytes written for 'stdin'
  71. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 66 bytes written for 'stdout'
  72. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  73. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  74. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin'
  75. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: new exec request: /bin/sh -c '/usr/bin/python3.8 && sleep 0'
  76. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 1234 bytes written for 'stdin'
  77. 2023/02/02 16:32:59 [INFO] 1234 bytes written for 'stdin'
  78. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [DEBUG] Opening new ssh session
  79. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [DEBUG] starting remote command: /bin/sh -c '/usr/bin/python3.8 && sleep 0'
  80. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [INFO] RPC endpoint: Communicator ended with: 0
  81. 2023/02/02 16:32:59 [INFO] 0 bytes written for 'stderr'
  82. 2023/02/02 16:32:59 [INFO] 464 bytes written for 'stdout'
  83. 2023/02/02 16:32:59 [INFO] RPC client: Communicator ended with: 0
  84. 2023/02/02 16:32:59 [INFO] RPC endpoint: Communicator ended with: 0
  85. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 464 bytes written for 'stdout'
  86. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  87. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  88. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: new subsystem request: sftp
  89. 2023/02/02 16:32:59 packer-provisioner-ansible plugin: starting sftp subsystem
  90. 2023/02/02 16:32:59 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:32:59 [DEBUG] Opening new ssh session
  91. 2023/02/02 16:33:00 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:33:00 [DEBUG] starting remote command: /usr/lib/sftp-server -e
  92. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 297787 bytes written for 'stdin'
  93. 2023/02/02 16:33:02 [INFO] 297787 bytes written for 'stdin'
  94. 2023/02/02 16:33:02 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:33:02 [INFO] RPC endpoint: Communicator ended with: 0
  95. 2023/02/02 16:33:02 [INFO] 569 bytes written for 'stdout'
  96. 2023/02/02 16:33:02 [INFO] 0 bytes written for 'stderr'
  97. 2023/02/02 16:33:02 [INFO] RPC client: Communicator ended with: 0
  98. 2023/02/02 16:33:02 [INFO] RPC endpoint: Communicator ended with: 0
  99. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 569 bytes written for 'stdout'
  100. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  101. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  102. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: new exec request: /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240/ > /dev/null 2>&1 && sleep 0'
  103. 2023/02/02 16:33:02 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:33:02 [DEBUG] Opening new ssh session
  104. 2023/02/02 16:33:02 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:33:02 [DEBUG] starting remote command: /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240/ > /dev/null 2>&1 && sleep 0'
  105. 2023/02/02 16:33:02 packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64 plugin: 2023/02/02 16:33:02 [INFO] RPC endpoint: Communicator ended with: 0
  106. 2023/02/02 16:33:02 [INFO] 0 bytes written for 'stdout'
  107. 2023/02/02 16:33:02 [INFO] 0 bytes written for 'stderr'
  108. 2023/02/02 16:33:02 [INFO] RPC client: Communicator ended with: 0
  109. 2023/02/02 16:33:02 [INFO] RPC endpoint: Communicator ended with: 0
  110. 2023/02/02 16:33:02 [INFO] 0 bytes written for 'stdin'
  111. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdout'
  112. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stderr'
  113. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] RPC client: Communicator ended with: 0
  114. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: [INFO] 0 bytes written for 'stdin'
  115.     digitalocean.autogenerated_1: fatal: [default]: FAILED! => {"msg": "failed to transfer file to /home/faioli/.ansible/tmp/ansible-local-1263531k4fwaxkf/tmpweqx6oq7 /root/.ansible/tmp/ansible-tmp-1675366378.4474046-1263537-260134773164240/AnsiballZ_setup.py:\n\n"}
  116.     digitalocean.autogenerated_1:
  117.     digitalocean.autogenerated_1: PLAY RECAP *********************************************************************
  118.     digitalocean.autogenerated_1: default                    : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
  119.     digitalocean.autogenerated_1:
  120. 2023/02/02 16:33:02 packer-provisioner-ansible plugin: shutting down the SSH proxy
  121. 2023/02/02 16:33:02 [INFO] (telemetry) ending ansible
  122. ==> digitalocean.autogenerated_1: Provisioning step had errors: Running the cleanup provisioner, if present...
  123. ==> digitalocean.autogenerated_1: Destroying droplet...
  124. ==> digitalocean.autogenerated_1: Deleting temporary ssh key...
  125. 2023/02/02 16:33:03 [INFO] (telemetry) ending digitalocean.autogenerated_1
  126. ==> Wait completed after 3 minutes 29 seconds
  127. 2023/02/02 16:33:03 machine readable: error-count []string{"1"}
  128. ==> Some builds didn't complete successfully and had errors:
  129. 2023/02/02 16:33:03 machine readable: digitalocean.autogenerated_1,error []string{"Error executing Ansible: Non-zero exit status: exit status 2"}
  130. ==> Builds finished but no artifacts were created.
  131. 2023/02/02 16:33:03 [INFO] (telemetry) Finalizing.
  132. Build 'digitalocean.autogenerated_1' errored after 3 minutes 29 seconds: Error executing Ansible: Non-zero exit status: exit status 2
  133.  
  134. ==> Wait completed after 3 minutes 29 seconds
  135.  
  136. ==> Some builds didn't complete successfully and had errors:
  137. --> digitalocean.autogenerated_1: Error executing Ansible: Non-zero exit status: exit status 2
  138.  
  139. ==> Builds finished but no artifacts were created.
  140. 2023/02/02 16:33:04 waiting for all plugin processes to complete...
  141. 2023/02/02 16:33:04 /home/faioli/.config/packer/plugins/github.com/digitalocean/digitalocean/packer-plugin-digitalocean_v1.1.1_x5.0_linux_amd64: plugin process exited
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement