rdbreak / rhcsa8env

This is a RHCSA8 study environment built with Vagrant/Ansible
https://join.slack.com/t/redhat-certs/shared_invite/zt-7ju3rz7b-_G3Njp3PDwdBG_81SwPeLA
MIT License
293 stars 176 forks source link

Ends installation because sshpass is not found, but ssh pass is installed #83

Open diamar opened 9 months ago

diamar commented 9 months ago

Describe the bug When installing on windows, I get a message that sshpass can not be found and exits out of the script. Server 2 and Repo seemed installed and running in Virtualbox. Server 1 was not installed. I've tried running this on PowerShell as administrator (per instructions) and on Cygwin. Cygwin has sshpass installed.

Also, I am using the Vagrantfile-new-by-bkarankar because I had this error: "Error: rsync: write failed on "/vagrant/disk-0-1.vdi": No space left on device (28)".

To Reproduce Steps to reproduce the behavior:

  1. Follow directions and after Vagrant up it runs for a while until it ends abruptly because of the sshpass error.
  2. This is the error: repo: Install 1 Package repo: repo: Total size: 25 k repo: Installed size: 35 k repo: Downloading Packages: repo: Running transaction check repo: Transaction check succeeded. repo: Running transaction test repo: Transaction test succeeded. repo: Running transaction repo: Preparing : 1/1 repo: Installing : epel-release-8-19.el8.noarch 1/1 repo: Running scriptlet: epel-release-8-19.el8.noarch 1/1 repo: Many EPEL packages require the CodeReady Builder (CRB) repository. repo: It is recommended that you run /usr/bin/crb enable to enable the CRB r epository. repo: repo: Verifying : epel-release-8-19.el8.noarch 1/1 repo: Installed products updated. repo: repo: Installed: repo: epel-release-8-19.el8.noarch repo: repo: Complete! repo: Updating Subscription Management repositories. repo: Unable to read consumer identity repo: repo: This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repo: repo: Extra Packages for Enterprise Linux 8 - x86_64 4.1 MB/s | 16 MB 00:03 repo: Last metadata expiration check: 0:00:05 ago on Sat 11 Nov 2023 03:47:1 5 PM PST. repo: Package httpd-2.4.37-30.module+el8.3.0+7001+0766b9e7.x86_64 is already installed. repo: No match for argument: sshpass repo: Error: Unable to find a match: sshpass 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.

Desktop (please complete the following information):

hollins4 commented 2 months ago

I fixed this issue by removing sshpass application from the Vagrantfile

Remove sshpass from this line:

repo.vm.provision :shell, :inline => "yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y; sudo yum install -y python3-pip python3-devel httpd sshpass vsftpd", run: "always"