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

Cannot install rsync on Alpine #11218

Closed
adamretter opened this issue Nov 26, 2019 · 3 comments
Closed

Cannot install rsync on Alpine #11218

adamretter opened this issue Nov 26, 2019 · 3 comments

Comments

@adamretter
Copy link

Vagrantfile:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.define "linux64-musl" do |musl64|
    musl64.vm.box = "alpine/alpine64"
    musl64.vm.box_version = "3.6.0"
    musl64.vm.provision :shell, path: "build-linux-alpine.sh"
  end

  config.vm.define "linux32-musl" do |musl32|
    musl32.vm.box = "alpine/alpine32"
    musl32.vm.box_version = "3.6.0"
    musl32.vm.provision :shell, path: "build-linux-alpine.sh"
  end

  config.vm.synced_folder "../..", "/rocksdb", type: "rsync"

end

Then run vagrant up linux64-musl and eventually you see the error:

==> linux64-musl: Installing rsync to the VM...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

apk add rsync

Stdout from the command:

# -*- mode: ruby -*-
  rsync (missing):
    required by: world[rsync]


Stderr from the command:

WARNING: Ignoring APKINDEX.066df28d.tar.gz: No such file or directory
WARNING: Ignoring APKINDEX.b53994b4.tar.gz: No such file or directory
ERROR: unsatisfiable constraints:

This issue - maier/vagrant-alpine#29 seems to explain that rsync cannot be installed without first doing either an apk update or apk SHOULD use --no-cache.

I think this might also be related to #9574

@adamretter
Copy link
Author

@jbonhag thank you :-)

@jbonhag
Copy link
Contributor

jbonhag commented Dec 17, 2019

@adamretter No problem, thanks for the suggestion! 😄This should go out in our next release.

gitebra pushed a commit to gitebra/vagrant that referenced this issue Dec 17, 2019
* commit '11c667a81df1842b4fb45b3ba8be2a46a3a09e01':
  Update CHANGELOG
  Update CHANGELOG
  Fixes hashicorp#11128: Error if machine folder inaccessible (hashicorp#11239)
  Update CHANGELOG
  Fixes hashicorp#11218: Update apk cache when installing rsync (hashicorp#11220)
  Update CHANGELOG
  Wrap all environment variables headers with <code> (hashicorp#11261)
  Fixes hashicorp#11228: Allow to force check for box updates
  Don't prompt for input when installing Ansible
@ghost
Copy link

ghost commented Jan 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants