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

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

Open
diamar opened this issue Nov 12, 2023 · 1 comment
Open

Comments

@diamar
Copy link

diamar commented Nov 12, 2023

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):

  • Windows 10
@hollins4
Copy link

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"

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

2 participants