Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dos2unix: /home/vagrant/artefacts/scripts/ssh_pass.sh: No such file or directory #1

Open
Harinath120 opened this issue Dec 11, 2020 · 7 comments

Comments

@Harinath120
Copy link

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

@ernesen
Copy link
Owner

ernesen commented Dec 11, 2020 via email

@Harinath120
Copy link
Author

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.

@Harinath120
Copy link
Author

Harinath120 commented Dec 11, 2020 via email

@ernesen
Copy link
Owner

ernesen commented Dec 15, 2020 via email

@Harinath120
Copy link
Author

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.

@ksrikanthreddy40
Copy link

ksrikanthreddy40 commented Feb 17, 2021

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)

@izetrom
Copy link

izetrom commented Jan 3, 2022

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants