<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Puppet – Yeri Tiete</title><link>https://yeri.be/tag/puppet/</link><description>Yeri Tiete's blog</description><language>en</language><copyright>© Yeri Tiete</copyright><lastBuildDate>Sun, 03 Jun 2012 11:07:12 +0200</lastBuildDate><atom:link href="https://yeri.be/tag/puppet/index.xml" rel="self" type="application/rss+xml"/><item><title>413 Request Entity Too Large</title><link>https://yeri.be/413-request-entity-too-large/</link><pubDate>Sun, 03 Jun 2012 11:07:12 +0200</pubDate><author>Yeri Tiete</author><guid isPermaLink="true">https://yeri.be/413-request-entity-too-large/</guid><description>&lt;p&gt;Since I started pushing kernel and modules through Puppet (as raw files, instead of .deb packages) I randomly got these errors:&lt;/p&gt;
&lt;pre&gt;[...]
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:44:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:44:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:108:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:42:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:172:in `call'
/usr/lib/ruby/1.8/puppet/application.rb:172:in `controlled_run'
/usr/lib/ruby/1.8/puppet/agent.rb:40:in `run'
/usr/lib/ruby/1.8/puppet/application/agent.rb:337:in `onetime'
/usr/lib/ruby/1.8/puppet/application/agent.rb:311:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:416:in `hook'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:407:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/util/command_line.rb:69:in `execute'
/usr/bin/puppet:4
&lt;span style="color: #ff00ff;"&gt;err: Could not send report: Error 413 on SERVER: &amp;lt;html&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;413 Request Entity Too Large&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;body bgcolor="white"&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;413 Request Entity Too Large&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;hr&amp;gt;&amp;lt;center&amp;gt;nginx/1.1.19&amp;lt;/center&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span style="color: #ff00ff;"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;p&gt;&lt;span style="color: #000000;"&gt;The error seems quite easy to solve by modifying nginx&amp;rsquo; config to allow bigger body sizes.&lt;/span&gt;&lt;/p&gt;</description><content:encoded><![CDATA[<p>Since I started pushing kernel and modules through Puppet (as raw files, instead of .deb packages) I randomly got these errors:</p>
<pre>[...]
/usr/lib/ruby/1.8/puppet/agent/locker.rb:21:in `lock'
/usr/lib/ruby/1.8/puppet/agent.rb:44:in `run'
/usr/lib/ruby/1.8/sync.rb:230:in `synchronize'
/usr/lib/ruby/1.8/puppet/agent.rb:44:in `run'
/usr/lib/ruby/1.8/puppet/agent.rb:108:in `with_client'
/usr/lib/ruby/1.8/puppet/agent.rb:42:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:172:in `call'
/usr/lib/ruby/1.8/puppet/application.rb:172:in `controlled_run'
/usr/lib/ruby/1.8/puppet/agent.rb:40:in `run'
/usr/lib/ruby/1.8/puppet/application/agent.rb:337:in `onetime'
/usr/lib/ruby/1.8/puppet/application/agent.rb:311:in `run_command'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:416:in `hook'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/application.rb:407:in `exit_on_fail'
/usr/lib/ruby/1.8/puppet/application.rb:309:in `run'
/usr/lib/ruby/1.8/puppet/util/command_line.rb:69:in `execute'
/usr/bin/puppet:4
<span style="color: #ff00ff;">err: Could not send report: Error 413 on SERVER: &lt;html&gt;</span>
<span style="color: #ff00ff;">&lt;head&gt;&lt;title&gt;413 Request Entity Too Large&lt;/title&gt;&lt;/head&gt;</span>
<span style="color: #ff00ff;">&lt;body bgcolor="white"&gt;</span>
<span style="color: #ff00ff;">&lt;center&gt;&lt;h1&gt;413 Request Entity Too Large&lt;/h1&gt;&lt;/center&gt;</span>
<span style="color: #ff00ff;">&lt;hr&gt;&lt;center&gt;nginx/1.1.19&lt;/center&gt;</span>
<span style="color: #ff00ff;">&lt;/body&gt;</span>
<span style="color: #ff00ff;">&lt;/html&gt;</span></pre>
<p><span style="color: #000000;">The error seems quite easy to solve by modifying nginx&rsquo; config to allow bigger body sizes.</span></p>
<p><span style="color: #000000;">Edit <em>nginx.conf</em> and add this line:</span></p>
<pre>client_max_body_size 50M;</pre>
<p>(I&rsquo;ve set it to 50M, although that&rsquo;s probably way to big, but so far I&rsquo;ve not been able to reproduce this error).</p>
<p><span style="color: #000000;"> </span></p>
]]></content:encoded><category>Misc</category><category>nginx</category><category>puppet</category></item></channel></rss>