Open Harinath120 opened 3 years ago
Hi Harinath, Which OS are you running from. Did you use git commands to bring the artifacts on to your laptop?
Give me as much details so that I can help with your request
Sent from Yahoo Mail for iPhone
On Friday, December 11, 2020, 11:22 AM, Harinath120 notifications@github.com wrote:
dos2unix: /home/vagrant/artefacts/scripts/ssh_pass.sh: No such file or directory ansible.sample.com: dos2unix: ansible.sample.com: Skipping /home/vagrant/artefacts/scripts/ssh_pass.sh, not a regular file. ansible.sample.com: chmod: ansible.sample.com: cannot access ‘/home/vagrant/artefacts/scripts/ssh_pass.sh’ ansible.sample.com: : No such file or directory ansible.sample.com: /tmp/vagrant-shell: 59: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 60: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 61: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 62: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 63: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 64: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_server.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_clients.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_java.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_jenkins.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_docker.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_gitlab.yaml could not be found The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
Hi my name harinath, when i am trying to vagrant up i got this error
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi I am using windows 10, I installed vagrant and VirtualBox in windows, open bash shell, and clone your repository and do vagrant up VM are up but I get an error on the dos2unix command. I sent the exact error for you.
Did you use git commands to bring the artifacts on to your laptop? yes, I clone your repository and I found script files as well.
how I will resolve this issue.
Hi,
I am using windows 10, I installed vagrant and VirtualBox in windows, open bash shell, and clone your repository and do vagrant up VM are up but I get an error on the dos2unix command. I sent the exact error for you.
Did you use git commands to bring the artifacts on to your laptop? yes, I clone your repository and I found script files as well.
how I will resolve this issue.
Thanks&Regards,
HarinathReddy Konepalli.
On Fri, Dec 11, 2020 at 9:01 AM Ernese Norelus notifications@github.com wrote:
Hi Harinath, Which OS are you running from. Did you use git commands to bring the artifacts on to your laptop?
Give me as much details so that I can help with your request
Sent from Yahoo Mail for iPhone
On Friday, December 11, 2020, 11:22 AM, Harinath120 < notifications@github.com> wrote:
dos2unix: /home/vagrant/artefacts/scripts/ssh_pass.sh: No such file or directory ansible.sample.com: dos2unix: ansible.sample.com: Skipping /home/vagrant/artefacts/scripts/ssh_pass.sh, not a regular file. ansible.sample.com: chmod: ansible.sample.com: cannot access ‘/home/vagrant/artefacts/scripts/ssh_pass.sh’ ansible.sample.com: : No such file or directory ansible.sample.com: /tmp/vagrant-shell: 59: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 60: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 61: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 62: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 63: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 64: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_server.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_clients.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_java.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_jenkins.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_docker.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_gitlab.yaml could not be found The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
Hi my name harinath, when i am trying to vagrant up i got this error
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ernesen/infra-ansible/issues/1#issuecomment-742943614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJR3CCZI5ISHJKD5R4LVOHLSUGHBDANCNFSM4UV67A2A .
Hi Harinath, The purpose of the dos2unix is to navigate between dos to unix characters, you can install dos2unix on to your image if not already installed. You might have alter the code a bit, give that a try. If you can’t solve I may propose to have a debugging session with with you if I can squeeze some time from my busy schedule. May I ask your time zone. I’m in Singapore GMT + 8.
Sent from Yahoo Mail for iPhone
On Friday, December 11, 2020, 1:19 PM, Harinath120 notifications@github.com wrote:
Hi,
I am using windows 10, I installed vagrant and VirtualBox in windows, open bash shell, and clone your repository and do vagrant up VM are up but I get an error on the dos2unix command. I sent the exact error for you.
Did you use git commands to bring the artifacts on to your laptop? yes, I clone your repository and I found script files as well.
how I will resolve this issue.
Thanks&Regards,
HarinathReddy Konepalli.
On Fri, Dec 11, 2020 at 9:01 AM Ernese Norelus notifications@github.com wrote:
Hi Harinath, Which OS are you running from. Did you use git commands to bring the artifacts on to your laptop?
Give me as much details so that I can help with your request
Sent from Yahoo Mail for iPhone
On Friday, December 11, 2020, 11:22 AM, Harinath120 < notifications@github.com> wrote:
dos2unix: /home/vagrant/artefacts/scripts/ssh_pass.sh: No such file or directory ansible.sample.com: dos2unix: ansible.sample.com: Skipping /home/vagrant/artefacts/scripts/ssh_pass.sh, not a regular file. ansible.sample.com: chmod: ansible.sample.com: cannot access ‘/home/vagrant/artefacts/scripts/ssh_pass.sh’ ansible.sample.com: : No such file or directory ansible.sample.com: /tmp/vagrant-shell: 59: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 60: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 61: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 62: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 63: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 64: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_server.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_clients.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_java.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_jenkins.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_docker.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_gitlab.yaml could not be found The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
Hi my name harinath, when i am trying to vagrant up i got this error
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ernesen/infra-ansible/issues/1#issuecomment-742943614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJR3CCZI5ISHJKD5R4LVOHLSUGHBDANCNFSM4UV67A2A .
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Ernese Norelus,
I am from Bangalore India. I am working as a DevOps engineer, but unfortunately, I lost my job due to Covid19 layoffs.
my timezone is Time zone in India (GMT+5:30).
Thank you so much to replay me about issues I faced when I set up environments. now dos2unix problem was resolved, it's working fine, but I got an error in Jenkins setup and GitLab setup. it shows there are no packages.
when running the ansible Jenkins playbook I got this error.
TASK [Install key for the Jenkins apt repository] **
ansible.sample.com: fatal: [jenkins.sample.com]: FAILED! => {"changed": false, "msg": "Failed to validate the SSL certificate for pkg.jenkins.io:443. Make sure your managed systems have a valid CA certificate installed. If the website serving the url uses SNI you need python >= 2.7.9 on your managed machine (the python executable used (/usr/bin/python) is version: 2.7.6 (default, Nov 13 2018, 12:45:42) [GCC 4.8.4]) or you can install the urllib3
, pyOpenSSL
, ndg-httpsclient
, and pyasn1
python modules to perform SNI verification in python >= 2.6. You can use validate_certs=False if you do not need to confirm the servers identity but this is unsafe and not recommended. Paths checked for this platform: /etc/ssl/certs, /etc/pki/ca-trust/extracted/pem, /etc/pki/tls/certs, /usr/share/ca-certificates/cacert.org, /etc/ansible. The exception msg was: hostname 'pkg.jenkins.io' doesn't match 'd.sni.fastly.net'.", "status": -1, "url": "https://pkg.jenkins.io/debian/jenkins-ci.org.key"}
with gitlab 👍
ansible.sample.com: TASK [Install GitLab CE] *** ansible.sample.com: fatal: [gitlab.sample.com]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: W:Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/dists/trusty/main/source/Sources gnutls_handshake() failed: Handshake failed\n, W:Failed to fetch https://packages.gitlab.com/gitlab/gitlab-ee/ubuntu/dists/trusty/main/binary-amd64/Packages gnutls_handshake() failed: Handshake failed\n, E:Some index files failed to download. They have been ignored, or old ones used instead."}
I am unable to resolve this issue .Please help me to resolve this issue.
First of all thanks for detail steps and it looks very interesting CI/CD. I got the same jenkins and jenkins error. Before that for java package install error. TASK [Install Oracle Java 8] **** fatal: [jenkins.sample.com]: FAILED! => {"changed": false, "msg": "No package matching 'oracle-java8-installer' is available"}
PLAY RECAP ** jenkins.sample.com : ok=8 changed=1 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
It is due to below reason. Is there any another solution?
The playbooks which utilize WebUpd8team PPA no longer work after Oracle changed their licensing scheme. See the following notice on the WebUpd8team PPA page: "Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle). For this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation)
hi, i have the same issue in first asked, i'm kind of lost, i'm a beginner in devops so i never used vagrant or ansible before, can you maybe help me ? i clone your repo on github, so i think i have issues with my environnement, but i don't know why, thanks in advance for your reply !
dos2unix: /home/vagrant/artefacts/scripts/ssh_pass.sh: No such file or directory ansible.sample.com: dos2unix: ansible.sample.com: Skipping /home/vagrant/artefacts/scripts/ssh_pass.sh, not a regular file. ansible.sample.com: chmod: ansible.sample.com: cannot access ‘/home/vagrant/artefacts/scripts/ssh_pass.sh’ ansible.sample.com: : No such file or directory ansible.sample.com: /tmp/vagrant-shell: 59: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 60: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 61: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 62: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 63: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: /tmp/vagrant-shell: 64: /tmp/vagrant-shell: /home/vagrant/artefacts/scripts/ssh_pass.sh: not found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_server.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/nfs_clients.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_java.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_jenkins.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_docker.yaml could not be found ansible.sample.com: ERROR! the playbook: /home/vagrant/artefacts/playbooks/install_gitlab.yaml could not be found The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong.
Hi my name harinath, when i am trying to vagrant up i got this error