Cannot install modules from Puppet Forge : Failed to load library 'pe_license' for feature 'pe_license'

860 views
Skip to first unread message

Frederic Conrotte

unread,
Jan 27, 2015, 3:30:44 AM1/27/15
to puppet...@googlegroups.com
Hello

I've installed Puppet 3.7.3 with Foreman and when I try to install or search modules on the Puppet forge I get the error
Failed to load library 'pe_license' for feature 'pe_license'

See below

[root@d0puppetmaster modules]# puppet module search ssh --verbose --debug
Debug: Runtime environment: puppet_version=3.7.3, ruby_version=1.8.7, run_mode=user
Notice: Searching https://forgeapi.puppetlabs.com ...
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/modules?query=ssh
Debug: Failed to load library 'pe_license' for feature 'pe_license'
Error: Could not connect to https://forgeapi.puppetlabs.com
  There was a network communications problem
    The error we caught said 'Connection timed out - connect(2)'
    Check your network connection and try again
Error: Try 'puppet help module search' for usage

[root@d0puppetmaster modules]# puppet --version
3.7.3

It does not seems to be a network issue since I can use wget to make the query :

[root@d0puppetmaster modules]# wget https://forgeapi.puppetlabs.com/v3/modules?query=ssh
--2015-01-27 08:27:23--  https://forgeapi.puppetlabs.com/v3/modules?query=ssh
Connecting to 127.0.0.1:8081... connected.
Proxy request sent, awaiting response... 200 OK
Length: 243817 (238K) [application/json]
Saving to: “modules?query=ssh”

100%[===============================================================================================>] 243,817      383K/s   in 0.6s

2015-01-27 08:27:24 (383 KB/s) - “modules?query=ssh” saved [243817/243817]

Google did not give me any clue for the error
Failed to load library 'pe_license' for feature 'pe_license'

Any idea what's going on ?

Thank you

Frederic

Frederic Conrotte

unread,
Jan 27, 2015, 3:39:32 AM1/27/15
to puppet...@googlegroups.com
Or maybe the issue is coming from this ?


'Connection timed out - connect(2)

But apart from https://forgeapi.puppetlabs.com/v3/modules?query=ssh

which URL is accessed that the debug log is not showing ?

Frederic Conrotte

unread,
Jan 27, 2015, 3:49:19 AM1/27/15
to puppet...@googlegroups.com
Ok I found out the issue...

When using Puppet behind a proxy, you have to configure the proxy in puppet.conf user section:
https://ask.puppetlabs.com/question/865/how-do-i-setup-puppet-to-access-puppetforge-modules-thru-a-proxy/

[user]
    http_proxy_host =
    http_proxy_port =
    http_proxy_user =
    http_proxy_password =



Le mardi 27 janvier 2015 09:30:44 UTC+1, Frederic Conrotte a écrit :
Reply all
Reply to author
Forward
0 new messages