- From: Motiejus Jakštys <
>
- To:
- Subject: [chef] Re: Re: initial installation problems on Debian Squeeze
- Date: Thu, 12 Apr 2012 10:17:28 +0300
On Wed, Apr 11, 2012 at 11:31:50PM +0300, Motiejus Jakštys wrote:
>
On Wed, Apr 11, 2012 at 01:04:39PM -0400, Bryan McLellan wrote:
>
> 2012/4/10 Motiejus Jakštys
>
> <
>:
>
> > Need some ideas where to look. It would be best to get more verbose
>
> > output from
>
> > apt-get, how do I do that?
>
>
>
> Since you're using the apt bootstrap, /etc/chef/client.rb is created
>
> by the chef debian package. You could edit this bootstrap template and
>
> add this right after the the 'apt-get install -y chef' line:
>
>
>
> sed -ie 's/ :info/ :debug/' /etc/chef/client.rb
>
>
>
> That should change the log level for the chef client to debug, and
>
> when knife bootstrap runs chef_client, it should read this value and
>
> produce extra output from the apt-get run during the chef-client run.
>
>
>
Good advise, helped me to troubleshoot some other problems already.
>
:) Thanks.
>
>
This does the same, but does not depend on spaces and has no quotes:
>
sed -i /^log_level/s/info/debug/ /etc/chef/client.rb
After 30 minutes it does not change log level, because it does not re-read the
configuration file. And same failure.. without logging information.
If template looks like this:
apt-get install -y chef
sed -i /^log_level/s/info/debug/ /etc/chef/client.rb
/etc/init.d/chef-client restart
(last two lines added by me), I can see the debug log, and.. It works fine.
If I just restart chef-client, it also works fine (without changing the
debug level).
Should I report a bug?
Relevance: if I do not restart chef-client in the template, it does not
install
necessary packages on the initial bootstrap (and I see no way to get the debug
info, unless I build my own chef-client package with log_level :debug). If I
restart chef-client by hand or restart the node, it goes fine.
Though set up properly (everything works), can an enforced http proxy trigger
apt-get update error? It's set up properly (in apt preferences), but still,
first run..
Motiejus
Archive powered by MHonArc 2.6.16.