voxpupuli / puppet-wildfly

Puppet module to install, configure and manage Wildfly (8/9/10+), JBoss EAP (6.1+/7.0+) and some Wildfly based products like apiman, Keycloak and Infinispan.
Apache License 2.0
29 stars 79 forks source link

Error: Could not run: cannot load such file -- faraday_middleware #58

Closed phillipfurtado closed 8 years ago

phillipfurtado commented 9 years ago

Hi, I'm getting this error below, do you know why?

Error: /Stage[main]/Wildfly::Install/Archive[/tmp/wildfly-8.2.0.Final.tar.gz]/ensure: change from absent to present failed: cannot load such file -- faraday_middleware

...

Error: Could not run: cannot load such file -- faraday_middleware


My setup: centos 6.5, ruby-gems 1.8.3, puppet 4

This what I'm doing:

class { 'wildfly': version => '8.2.0', java_home => '/usr/lib/jvm/java-1.8.0-openjdk', install_source => 'http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.tar.gz', group => 'wildfly', user => 'wildfly', dirname => '/opt/wildfly', mode => 'standalone', config => 'standalone.xml', java_xmx => '512m', java_xms => '256m', java_maxpermsize => '256m', users_mgmt => { 'wildfly' => { username => 'wildfly', password => 'wildfly'}}, }

jairojunior commented 9 years ago

puppet-archive requires faraday_middleware gem, but we are working to remove this dependency.

You could install this with gem install faraday_middleware

phillipfurtado commented 9 years ago

I did that, but still not working, tried again using puppet 3 and its works fine. Probably because puppet 3 already comes with compatible ruby/gem version that works fine with faraday_middleware.

jairojunior commented 9 years ago

That's odd.

Might be related to how this works on Puppet 4: https://github.com/puppet-community/puppet-archive/blob/master/lib/puppet_x/bodeco/util.rb#L01

Thank you for the heads up. I'll keep an eye on this.

ebaptistella commented 9 years ago

+1

I have the same problem!

$ Docker --version Docker version 1.7.1, build 786b29d root@sysmo-appservice-ubuntu:/# puppet --version 3.4.3 root@sysmo-appservice-ubuntu:/# ruby --version ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux] root@sysmo-appservice-ubuntu:/# python --version Python 2.7.6 root@sysmo-appservice-ubuntu:/# cat /etc/issue Ubuntu 14.04.2 LTS \n \l

What should I do?

jairojunior commented 9 years ago

Puppet 4 uses an all-in-one (puppet, ruby, gems, facter, hiera) installer, but archive includes a package { 'faraday_middleware': provider => 'gem' }. It should work, I'll check this later.

@ebaptistella couldn't you install with gem install faraday_middleware?

smbambling commented 9 years ago

I updated and the PR was approved to get the correct provider to install the faraday and faraday_middleware gems for the archive module yesterday.

https://github.com/puppet-community/puppet-archive/commit/213780f388d639124318d344556f515c9b9941d1

smbambling commented 9 years ago

It just requires the archive module. The metadata.json can be used to auto pull drops via r10 or other tools. But you can over ride the archive module that is used I. Your Puppetfile or manually pulling it down. I current use the archive module listed above without issue

xaniasd commented 9 years ago

Thanks, I'll do that!

albac commented 9 years ago

I just ran into the same issue, shouldn't the metadata.json from wildfly point to puppet-community/puppet-archive instead of nanliu/puppet-archive? nanliu version is a just a fork and it is behind. The overwrite on Puppetfile worked! thanks!

jairojunior commented 9 years ago

Good point, @albac, but latest forge version still uses a metadata.json that has nanliu as author.

jairojunior commented 8 years ago

Archive/faraday dependency removed.