Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

jenkins::plugin incorrectly assumes port 80 on puppet apply #457

Closed
bgshacklett opened this issue Dec 24, 2015 · 1 comment
Closed

jenkins::plugin incorrectly assumes port 80 on puppet apply #457

bgshacklett opened this issue Dec 24, 2015 · 1 comment

Comments

@bgshacklett
Copy link

I've got a pretty simple Puppet config for Jenkins:

node 'default' {
    include jenkins

    jenkins::plugin { 'Workflow: Aggregator':
        version => '1.12',
    }
}

When applying this configuration with sudo puppet apply /etc/puppet/manifests/site.pp, Puppet complains that port 80 is not reachable on localhost, even though the default port should be 8080:

bgshacklett@trusty-server:/etc/puppet/manifests$ sudo puppet apply /etc/puppet/manifests/site.pp 
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults
Warning: Scope(Apt::Source[jenkins]): $include_src is deprecated and will be removed in the next major release, please use $include => { 'src' => false } instead
Warning: Scope(Apt::Source[jenkins]): $key_source is deprecated and will be removed in the next major release, please use $key => { 'source' => http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key } instead.
Warning: Scope(Jenkins::Plugin[Workflow: Aggregator]): jenkins::plugin::create_user is deprecated and has no effect
Warning: Scope(Apt::Key[Add key: 150FDE3F7787E7D11EF4E12A9B7D32F2D50582E6 from Apt::Source jenkins]): $key_source is deprecated and will be removed in the next major release. Please use $source instead.
Notice: Scope(Archive::Download[Workflow: Aggregator.hpi]): No checksum for this archive
Notice: Compiled catalog for trusty-server in environment production in 0.56 seconds
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: curl: (7) Failed to connect to localhost port 80: Connection refused
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <html><head>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <title>404 Not Found</title>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: </head><body>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <h1>Not Found</h1>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <p>The requested URL /download/plugins/Workflow: was not found on this server.</p>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <hr>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: <address>Apache/2.2.14 (Ubuntu) Server at updates.jenkins-ci.org Port 443</address>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: </body></html>
Notice: /Stage[main]/Main/Node[default]/Jenkins::Plugin[Workflow: Aggregator]/Archive::Download[Workflow: Aggregator.hpi]/Exec[download archive Workflow: Aggregator.hpi and check sum]/returns: executed successfully
Notice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 events
Notice: Finished catalog run in 4.80 seconds
@jhoblitt
Copy link
Member

Hi @bgshacklett , the error message in the log you posted is caused by curl being unable to download a plugin which does not exist on the jenkins infrastructure. You should double check the name of the plugin you specified.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants