copiousfreetime / stickler

a tool to organize and maintain an internal gem distribution server
MIT License
143 stars 29 forks source link

413 Request Entity Too Large error #19

Closed jsmestad closed 12 years ago

jsmestad commented 12 years ago

When pushing a gem, for example webrat-0.7.3.gem, I receive a 413 HTTP error. Am I setting something up wrong somewhere?

$ stickler push webrat-0.7.3.gem 
Pushing gem(s) to http://gems.site.net/ ...
  /Users/justinsmestad/Documents/api/vendor/cache/webrat-0.7.3.gem -> ERROR: Failure pushing /Users/justinsmestad/Documents/api/vendor/cache/webrat-0.7.3.gem to remote repository : response code => 413, response message =>     '<html>
<head><title>413 Request Entity Too Large</title></head> 
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.0.10</center>
</body>
</html>
'
copiousfreetime commented 12 years ago

That looks like an error from nginx iteself, not from stickler. I would see if you have a maximum entity body request somewhere in your nginx config.

copiousfreetime commented 12 years ago

@jsmestad any luck? Did you find it in the nginx config? You probably want to look at client_max_body_size

jsmestad commented 12 years ago

@copiousfreetime yep that fixed it. thanks!

nmccready commented 10 years ago

Can you post the nginx.conf setting that fixed this?

copiousfreetime commented 10 years ago

@nmccready I'm guessing it was client_max_body_size. Hopefully @jsmestad can confirm that.