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

Curl return code 35 when fetching the consul binary. #320

Closed
coolguydork opened this issue Feb 11, 2017 · 3 comments
Closed

Curl return code 35 when fetching the consul binary. #320

coolguydork opened this issue Feb 11, 2017 · 3 comments

Comments

@coolguydork
Copy link

Can you please help me? A puppet run is unable to fetch the consul binary.

Error: Execution of '/bin/curl https://releases.hashicorp.com/consul/0.7.4/consul_0.7.4_linux_amd64.zip -o /tmp/consul-0.7.4.zip_20170211-15010-1d3hjx0 -fsSL --max-redirs 5' returned 35: curl: (35) Encountered end of file
Error: /Stage[main]/Consul::Install/Archive[/opt/consul/archives/consul-0.7.4.zip]/ensure: change from absent to present failed: Execution of '/bin/curl https://releases.hashicorp.com/consul/0.7.4/consul_0.7.4_linux_amd64.zip -o /tmp/consul-0.7.4.zip_20170211-15010-1d3hjx0 -fsSL --max-redirs 5' returned 35: curl: (35) Encountered end of file
Notice: /Stage[main]/Consul::Install/File[/opt/consul/archives/consul-0.7.4/consul]: Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Warning: /Stage[main]/Consul::Install/File[/opt/consul/archives/consul-0.7.4/consul]: Skipping because of failed dependencies
Notice: /Stage[main]/Consul::Install/File[/usr/local/bin/consul]: Dependency Archive[/opt/consul/archives/consul-0.7.4.zip] has failures: true
Warning: /Stage[main]/Consul::Install/File[/usr/local/bin/consul]: Skipping because of failed dependencies
Error: Execution of '/bin/curl https://releases.hashicorp.com/consul/0.7.4/consul_0.7.4_web_ui.zip -o /tmp/consul_web_ui-0.7.4.zip_20170211-15010-l9ga2f -fsSL --max-redirs 5' returned 35: curl: (35) Encountered end of file
Error: /Stage[main]/Consul::Install/Archive[/opt/consul/archives/consul_web_ui-0.7.4.zip]/ensure: change from absent to present failed: Execution of '/bin/curl https://releases.hashicorp.com/consul/0.7.4/consul_0.7.4_web_ui.zip -o /tmp/consul_web_ui-0.7.4.zip_20170211-15010-l9ga2f -fsSL --max-redirs 5' returned 35: curl: (35) Encountered end of file
Notice: /Stage[main]/Consul::Install/File[/opt/consul/ui]: Dependency Archive[/opt/consul/archives/consul_web_ui-0.7.4.zip] has failures: true
[root@dev-puppet-08bbf13fb07e278ea ~]# cat /etc/*release*
CentOS Linux release 7.1.1503 (Core) 
Derived from Red Hat Enterprise Linux 7.1 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.1.1503 (Core) 
CentOS Linux release 7.1.1503 (Core) 
cpe:/o:centos:centos:7
[root@dev-puppet-08bbf13fb07e278ea ~]# puppet --version
4.9.2
[root@dev-puppet-08bbf13fb07e278ea dev]# puppet module list --modulepath=modules
Warning: Use of class Puppet::SemVer is deprecated. SemanticPuppet::Version or SemanticPuppet::VersionRange should be used instead
   (file & line not available)
/opt/sys-config/dev/puppet/modules
├── KyleAnderson-consul (v2.1.0)
@solarkennedy
Copy link
Contributor

Works for me. Are you behind a firewall or some sort of SSL proxy?

Run curl yourself and see what it says
curl https://releases.hashicorp.com/consul/0.7.4/consul_0.7.4_web_ui.zip -o /tmp/consul_web_ui-0.7.4.zip_20170211-15010-l9ga2f -v

@coolguydork
Copy link
Author

Very strange. Must be on Vagrant.

  1. Running it from my personal laptop at home, through Vagrant, I get return code 35.
  2. Running it from my office laptop at work, through Vagrant, I get return code 35.
  3. Running it from an EC2 instance in AWS, it works.

@coolguydork
Copy link
Author

This was the solution: https://www.centos.org/forums/viewtopic.php?t=52732

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