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

strange behavior #44

Open
ghost opened this issue Mar 4, 2016 · 3 comments
Open

strange behavior #44

ghost opened this issue Mar 4, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2016

I try use puppet-forge-server as local proxy for puppetforge.
I run forge server as:
/usr/bin/ruby1.9.1 /usr/local/bin/puppet-forge-server -x https://forgeapi.puppetlabs.com
and try install from another server

puppet module install --version 2.1.1 --target-dir /etc/puppet/.tmp/librarian/cache/source/puppet/forge/forge_locally/puppetlabs-apt/2.1.1 --module_repository http://forge.locally --modulepath
 /etc
/puppet/.tmp/librarian/cache/source/puppet/forge/forge_locally/puppetlabs-apt/2.1.1 --module_working_dir /etc/puppet/.tmp/librarian/cache/source/puppet/forge/forge_locally/puppetlabs-apt/2.1.1 --ignore-dependencies puppetlabs-apt

output from puppet-forge-server:

[2016-03-04 15:45:09] INFO  Cache in RAM memory size: 1, MISS for url: https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-apt
[2016-03-04 15:45:11] INFO  Cache in RAM memory size: 2, MISS for url: https://forgeapi.puppetlabs.com/v3/releases?module=puppetlabs-apt&limit=20&offset=20
127.0.0.1 - - [04/Mar/2016 15:45:12] "GET /v3/releases?module=puppetlabs-apt HTTP/1.1" 200 384884 2.8109
localhost - - [04/Mar/2016:15:45:09 MSK] "GET /v3/releases?module=puppetlabs-apt HTTP/1.0" 200 0
- -> /v3/releases?module=puppetlabs-apt

output from the puppet server:

Notice: Preparing to install into /etc/puppet/.tmp/librarian/cache/source/puppet/forge/forge_locally/puppetlabs-apt/2.1.1 ...
Notice: Downloading from http://forge.locally ...
Error: 399: unexpected token at '{"uri":"/v3/releases/puppetlabs-apt-1.0.1","module":{"uri":"/v3/modules/puppetlabs-apt","name":"apt","owner":{"username":"puppetlabs","uri":"/v3/users/puppetlabs"}},"metadata":{"name":"puppetlabs-apt","version":"1.0.1","author":"Evolving Web / Puppet Labs","summary":"Puppet Labs Apt Module","license":"Apache License 2.0","source":"https://github.com/puppetlabs/puppetlabs-apt","project_page":"https://github.com/puppetlabs/puppetlabs-apt","dependencies":[{"name":"puppetlabs/stdlib","version_requirement":">= 2.2.1"}],"description":"APT Module for Puppet","types":[],"checksums":{"spec/defines/source_spec.rb":"15c0c52e084815a3cc32c716f19878fd","tests/builddep.pp":"4773f57072111e58f2ed833fa4489a88","spec/defines/ppa_spec.rb":"08eeea33f2fc99e56c21d7c605313bfe","spec/classes/apt_spec.rb":"632f0ae60f921728725b2567f29a2aa8","manifests/debian/unstable.pp":"108038596b05dc1d28975884693f73f5","tests/source.pp":"9cecd9aa0dcde250fe49be9e26971a98","templates/source.list.erb":"7cfd5f0839f487c02653c749bc73f7f5","spec/classes/debian_unstable_spec.rb":"11131efffd18db3c96e2bbe3d98a2fb7","tests/release.pp":"53ce5debe6fa5bee42821767599cc768","spec/classes/debian'
Error: Try 'puppet help module install' for usage
@ghost
Copy link
Author

ghost commented Mar 4, 2016

I understood problem:
If use v3 api
From puppet-forge-server answer received is not fully.
From forge.puppetlabs.com answer received is fully.

@i11
Copy link
Contributor

i11 commented Mar 4, 2016

Hi,

Thanks for letting me know. Could you please mention your puppet version and the environment you're running on, so that it would be possible to reproduce the issue.

@ghost
Copy link
Author

ghost commented Mar 5, 2016

Debian 7.8, Puppet 3.8.2, Ruby 1.9.1
Maybe problem in httplibrary? v3 API working by http 1.1 and maybe sent chunked answer?

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

1 participant