Bug #18399
closedFailed to initialize puppet class cache, will use lazy initialization instead
Description
Hi,
after Upgrade from Foreman 1.13 (Katello 3.3) i get the following error in smartproxy log. i get the error when i take a restart the server and complete process are running. if i restart later foreman-proxy the error is gone.
Failed to initialize puppet class cache, will use lazy initialization instead
I, [2017-02-06T01:03:03.540493 ] INFO -- : Successfully initialized 'dhcp_isc'
I, [2017-02-06T01:03:03.540645 ] INFO -- : Successfully initialized 'dhcp'
I, [2017-02-06T01:03:03.540760 ] INFO -- : Successfully initialized 'puppetca'
I, [2017-02-06T01:03:03.540935 ] INFO -- : Started puppet class cache initialization
I, [2017-02-06T01:03:03.542029 ] INFO -- : Successfully initialized 'puppet_proxy_puppet_api'
I, [2017-02-06T01:03:03.542153 ] INFO -- : Successfully initialized 'puppet'
D, [2017-02-06T01:03:03.542277 ] DEBUG -- : Log buffer API initialized, available capacity: 2000/1000
I, [2017-02-06T01:03:03.542356 ] INFO -- : Successfully initialized 'logs'
E, [2017-02-06T01:03:03.642049 ] ERROR -- : Failed to initialize puppet class cache, will use lazy initialization instead
I, [2017-02-06T01:03:03.677632 ] INFO -- : WEBrick 1.3.1
I, [2017-02-06T01:03:03.677860 ] INFO -- : ruby 2.0.0 (2015-12-16) [x86_64-linux]
D, [2017-02-06T01:03:03.678172 ] DEBUG -- : TCPServer.new(0.0.0.0, 9090)
D, [2017-02-06T01:03:03.678343 ] DEBUG -- : TCPServer.new(::, 9090)
W, [2017-02-06T01:03:03.678500 ] WARN -- : TCPServer Error: Address already in use - bind(2)
any information how i get that error removed?
thanks
Sven
Files
Updated by Justin Sherrill almost 8 years ago
- Project changed from Katello to Foreman
- Category deleted (
Upgrades)
Moving this to foreman as I do not believe this is related to katello
Updated by Sven Vogel almost 8 years ago
Justin Sherrill wrote:
Moving this to foreman as I do not believe this is related to katello
where is it now?
Updated by Dominic Cleal almost 8 years ago
- Project changed from Foreman to Smart Proxy
- Category set to Puppet
Do Puppet class imports work? The underlying error may be logged or shown when importing explicitly.
Please note the version of the smart proxy that you're using, not what you upgraded from.
Updated by Atasian van Endern almost 8 years ago
- Priority changed from Normal to High
Dominic Cleal wrote:
Do Puppet class imports work? The underlying error may be logged or shown when importing explicitly.
Please note the version of the smart proxy that you're using, not what you upgraded from.
Good Evening together,
its seems this is a bug in general not only after a upgrade. I have exactly the same Error on my fresh installed Servers using the foreman-installer.
1x CentOS 7.3.1611 with Foreman 1.14.1
2x Ubuntu 16.04.02 with Foreman 1.14.1
The class import does not work.
Updated by Atasian van Endern almost 8 years ago
Sorry my mistake. The class import works well. Just this Error appears on startup.
Updated by Anonymous almost 8 years ago
This error means that proxy couldn't initialize its internal class cache on startup and will attempt it again later. Has puppet server finished starting when smart-proxy is launched? If not, this could cause the error message you are seeing.
Updated by Atasian van Endern almost 8 years ago
Dmitri Dolguikh wrote:
This error means that proxy couldn't initialize its internal class cache on startup and will attempt it again later. Has puppet server finished starting when smart-proxy is launched? If not, this could cause the error message you are seeing.
I dont know how to check that exacly. Foreman-Proxy and Puppet starts at the same time and but from the logs foreman_proxy is initialized before puppet.
14.2.2017, 16:59:59 INFO Successfully initialized 'foreman_proxy'
14.2.2017, 16:59:59 INFO Successfully initialized 'tftp'
14.2.2017, 16:59:59 INFO Successfully initialized 'puppetca'
14.2.2017, 16:59:59 INFO Started puppet class cache initialization
14.2.2017, 16:59:59 INFO Successfully initialized 'puppet_proxy_puppet_api'
14.2.2017, 16:59:59 INFO Successfully initialized 'puppet'
14.2.2017, 16:59:59 INFO Successfully initialized 'logs'
14.2.2017, 16:59:59 ERROR Failed to initialize puppet class cache, will use lazy initialization instead
This is what you meen or?
Updated by Dominic Cleal almost 8 years ago
- Priority changed from High to Normal
Updated by Sven Vogel almost 8 years ago
Yes this error only appears on startup. i wrote this above already. after restart from proxy the error is gone.
any fixes?
Updated by Anonymous almost 8 years ago
It's a transient error, which is meant to catch issues with cache initialization on proxy startup. If you are getting classes back, then proxy is working ok, then this error can be ignored.
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Assignee set to Anonymous
- Pull request https://github.com/theforeman/smart-proxy/pull/512 added
Updated by Anonymous almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset a823c703ece5278849e49486021dfa8e3e32362b.
Updated by Dominic Cleal almost 8 years ago
- Translation missing: en.field_release set to 209