- ๐ Hi, Iโm @techiescamp
techiescamp / devops-projects Goto Github PK
View Code? Open in Web Editor NEWDevOps Real World Projects for Aspiring DevOps Engineers [Beginner to Advanced]
Home Page: https://devopscube.com/devops-projects/
DevOps Real World Projects for Aspiring DevOps Engineers [Beginner to Advanced]
Home Page: https://devopscube.com/devops-projects/
Issue 01:
amazon-ebs.jenkins: fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Unable to negotiate with 127.0.0.1 port 58791: no matching host key type found. Their offer: ssh-rsa", "unreachable": true}
Issue 02:
amazon-ebs.jenkins: fatal: [default]: FAILED! => {"msg": "failed to transfer file to /Users/bibinwilson/.ansible/tmp/ansible-local-50186_ndddr6c/tmp_1v02xx4 ~bibinwilson/.ansible/tmp/ansible-tmp-1681489405.599305-50189-81149797253717/AnsiballZ_setup.py:\n\nscp: dest open "'~bibinwilson/.ansible/tmp/ansible-tmp-1681489405.599305-50189-81149797253717/AnsiballZ_setup.py'": No such file or directory\r\nscp: failed to upload file /Users/bibinwilson/.ansible/tmp/ansible-local-50186_ndddr6c/tmp_1v02xx4 to '~bibinwilson/.ansible/tmp/ansible-tmp-1681489405.599305-50189-81149797253717/AnsiballZ_setup.py'\r\n"}
This issue is caused due to OpenSSH latest version support with anisble + packer.
References:
Thes issues can be resolved by adding extra args to the ansible provisioner as shown below.
extra_arguments = [ "--extra-vars", "ami-id=${var.ami_id} efs_mount_point=${var.efs_mount_point}", "--scp-extra-args", "'-O'", "--ssh-extra-args", "-o IdentitiesOnly=yes -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa" ]
Issue Description:
I encountered an error when running the playbook that caused the task "Gathering Facts" to fail. The error message I received was:
TASK [Gathering Facts] *********************************************************
fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: command-line: line 0: Bad configuration option: pubkeyacceptedalgorithms", "unreachable": true}
Steps to Reproduce:
amazon-ebs.jenkins
with the provided configuration.Resolution Attempted:
After analyzing the error message, I noticed that the error was caused by the pubkeyacceptedalgorithms
configuration option. To resolve the issue, I removed this option from the configuration.
Additionally, I encountered another error during the playbook execution. The error message is as follows:
TASK [Gathering Facts] *********************************************************
fatal: [default]: FAILED! => {"msg": "failed to transfer file to /home/arun/.ansible/tmp/ansible-local-906_x273od6/tmpedzyw_iq ~arun/.ansible/tmp/ansible-tmp-1689085163.023391-911-48271443937713/AnsiballZ_setup.py:\n\nunknown option -- O\r\nusage: scp [-346BCpqrTv] [-c cipher] [-F ssh_config] [-i identity_file]\n [-J destination] [-l limit] [-o ssh_option] [-P port]\n [-S program] source ... target\n"}
Resolution Attempted:
To overcome this error, I removed the --scp-extra-args
option from the playbook.
Hi, I hit an error during the Jenkins Controller AMI build process. Any suggestions for fixing it?
amazon-ebs.jenkins: TASK [jenkins-controller : Ensure EFS volume is mounted.] **********************
**amazon-ebs.jenkins: fatal: [default]: FAILED! => {"changed": false, "msg": "Error mounting /data: mount.nfs4: Failed to resolve server fs-0a6cc59623295b5df.efs.us-west-2.amazonaws.com: No address associated with hostname\n"}**
amazon-ebs.jenkins:
amazon-ebs.jenkins: PLAY RECAP *********************************************************************
amazon-ebs.jenkins: default : ok=11 changed=7 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
amazon-ebs.jenkins:
==> amazon-ebs.jenkins: Provisioning step had errors: Running the cleanup provisioner, if present...
==> amazon-ebs.jenkins: Terminating the source AWS instance...
==> amazon-ebs.jenkins: Cleaning up any extra volumes...
==> amazon-ebs.jenkins: Deleting temporary security group...
==> amazon-ebs.jenkins: Deleting temporary keypair...
Build 'amazon-ebs.jenkins' errored after 3 minutes 43 seconds: Error executing Ansible: Non-zero exit status: exit status 2
==> Wait completed after 3 minutes 43 seconds
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs.jenkins: Error executing Ansible: Non-zero exit status: exit status 2
==> Builds finished but no artifacts were created.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.